Sample Scrypted Plugin with Visual Studio Code support
npm commands
- npm run scrypted-webpack
- npm run scrypted-deploy
- npm run scrypted-debug
scrypted distribution via npm
- Ensure package.json is set up properly for publishing on npm.
- NODE_ENV=production npm run scrypted-webpack
- git add dist/main.js
- git commit
- npm publish
Visual Studio Code configuration
-
Install the Duktape Debugger Extension
-
Edit .vscode/settings.json to specify the IP Address of the Scrypted server.
-
Launch Scrypted Debugger from the launch menu.