@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