NPM commands and tools - ArnoVanDerVegt/wheel GitHub Wiki
NPM
Starting electron
To start the electron version you can run:
$ npm start
Rebuilding
To make sure that the node version works with the electron en serial port versions the rebuild command can be used.
$ npm run rebuild
Testing
The test command can be used to run the unit and integration tests.
$ npm test
Coverage
The run tests and check the test coverage, the cover command can be used. After the tests are finished the coverage report can be found in the coverage/lcov-report/index.html file.
$ npm run cover
Starting the server
To start the server you can run:
$ node server.js
Tools
The directory tools in the root of the project contains scripts to pack images, help files and JavaScripts.
Images
The images script updates the css files and javascript files with image data.
$ node images.js
Template
The template script packs all example and Wheel library files into a single javascript file.
$ node template.js
Pack
The pack script packs all javascript and css files and creates new javascript and css files in the /site/ide direcory.
$ node pack.js mini