mirror of
https://github.com/NASAWorldWind/WebWorldWind.git
synced 2026-01-18 15:12:57 +00:00
* Extend package.json with additional metadata Add command scripts in package.json Update the dev dependencies Update GruntSetup.txt, which should be moved to README.md eventually * Remove unused third party libraries * Remove build.js use ‘npm run build’ or ‘grunt’ instead * Start cleaning the root folder (test-main.js) * Updated markdown build guide to reflect the new streamlined build process - Added package-lock.json file generated by npm. It is suggested to commit it into the repository. See: https://docs.npmjs.com/files/package-lock.json - Removed build.js from Gruntfile.js. It's unnecessary now thanks to the new build process. - package.json had spaces in "type" and "url" declarations that were automatically removed in build process. - Added .idea/ folder to .gitignore. Consider removing the folder from the repository altogether. * Removed zip file compress task from build process. * Removed grunt-contrib-compress node module from package.json - The module is an unused dependency now, since we're not going to backup the whole codebase + artifacts in a zip file anymore. * Removed .idea/ folder mistakenly added to .gitignore. - Only files that are unrelated to run configurations are added to gitignore. * Further corrections to .gitignore. Removed WebWorldWind.zip reference. * Further corrections to .gitignore. Removed WebWorldWind.zip reference. * .gitignore cleanup. .iml file correction.
567 B
567 B
This file explains how to build the Web WorldWind artifacts.
-
Install Node (https://nodejs.org/download/) Download and install the appropriate installation file. The build is known to work with v6.9.2 (LTS).
-
Install the dependencies
npm install
Then you can use the commands below to build artifacts.
-
Build all artifacts (worldwind.js, worldwind.min.js):
npm run build -
Only run the tests:
npm run test -
Only generate the documentation:
npm run doc -
Automatically run the tests when a file changes:
npm run test:watch