Modified Jeremy's Dev Environment

@Jeremy Brown

Hey everyone,


I have modified the dev environment after installing your initial dev environment.

In the image attached, you will see the src folder. inside it is components folder that of course can be component files used in any widget. This is for say one client project with many widgets to build and install. So instead of having separate project folders for each, you can do this. there is another folder called widgets inside src.

The upload script actually takes the folder names and uses that as the widget names to send to filemaker. so widget.config.js has been modified as well as other files.

If you run “npm run deploy-to-fm” it will loop through each folder inside the widgets folder and builds each one separately as in one of the screenshots and then uploads then goes to the next. it only builds the files that are imported for each widget folder so in this example building clients wont import anything from test-widget. It only builds files indie client folder as well as global files like the global css or js files that can be imported for every widget.

It also passes params of the widget name currently uploading, total count of widgets being uploaded and current widget index number so in filemaker and can check if the widget index being sent to it is the same as totalWidgets uploading and then pop up dialog of how many widgets and list of widgets uploaded so you dont get dialog each time that FM script “UploadToHTML” is triggered.

I can share the project folder if needed as i had claude sonnet help me build it out. It seems to work so far but testing it with limited data and all.