Duet3D Logo

    Duet3D

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Documentation
    • Order

    Cannot find instructions to set up dev environment for plugin

    Plugins for DWC and DSF
    2
    3
    54
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • stuartofmt
      stuartofmt last edited by

      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.

      Falcounet 1 Reply Last reply Reply Quote 0
      • Falcounet
        Falcounet @stuartofmt last edited by

        @stuartofmt The procedure is pretty much described for the EndStop plugin : https://github.com/Duet3D/DSF-Plugins/tree/master/EndstopsMonitorPlugin

        stuartofmt 1 Reply Last reply Reply Quote 0
        • stuartofmt
          stuartofmt @Falcounet last edited by

          @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
          
          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Unless otherwise noted, all forum content is licensed under CC-BY-SA