-
Notifications
You must be signed in to change notification settings - Fork 70
Building and Testing 3DuF
Node and npm: Download and install
Other than npm install
, all npm run
commands can be executed from the command line in any folder in the application directory.
Note that the gh-pages branch corresponds to the version of 3DuF on 3Duf.org
From the application's root folder (the one with package.json in it), run: sudo npm install
. Please note that running the command without administrator privileges will not complete the dependency installations.
To compile and bundle the main app script (3DuFapp.js), run: npm run compile
.
To watch the source code and re-compile on changes, run: npm run watch_compile
To run the full suite of unit tests, run: npm test
To watch the source code and re-run tests on changes, run: npm run watch_test
To check test coverage, run: npm run cover
, and then open coverage/lcov-report/index.html in a web browser.