Cannot find instructions to set up dev environment for plugin
-
I know its out there, I actually found and / or pieced together the steps about 6 months ago .... Cannot for the life of me find it again, after a couple of hours of trying ... that will teach me to clean up bookmarks ....
I've installed nodejs onto Win 11 and I know there is a build-plugin.js file to be run. Its the steps in the middle ...
Can some kind soul provide a link ? Thanks in advance.
-
@stuartofmt The procedure is pretty much described for the EndStop plugin : https://github.com/Duet3D/DSF-Plugins/tree/master/EndstopsMonitorPlugin
-
@Falcounet said in Cannot find instructions to set up dev environment for plugin:
@stuartofmt The procedure is pretty much described for the EndStop plugin : https://github.com/Duet3D/DSF-Plugins/tree/master/EndstopsMonitorPlugin
Thanks ! That got me going.
I ended up with some errors due to having a later version of nodejs and / or npm. After searching, guess what ? I found a reply I had made in a post where I had linux bash script to do the job. Of course I'd deleted the script when I discovered my Pi was not the way to go. Anyway, in that thread was also the answer to the SSL related error.
To anyone stubling on this thread, here is a windows batch file that works for the current ( as of this date) versions.
:: Simple batch file to create a dev environment for DWC :: Needed for plugin development :: Tested with npm 9.5.0, nodejs 18.5.0 and DWC 3.4.5 :: Start with a new directory if exist DWC\ ( rmdir /s DWC ) mkdir DWC :: download DWC from github git clone -b master --depth=1 https://github.com/Duet3D/DuetWebControl DWC cd DWC :: Setup DWC cmd.exe /c npm install :: Check everything is basically OK cmd.exe /c npm audit --only prod :: Run DWC SET NODE_OPTIONS=--openssl-legacy-provider cmd.exe /c npm run serve
-
undefined stuartofmt marked this topic as a question
-
undefined stuartofmt has marked this topic as solved