mirror of
https://github.com/NASAWorldWind/WebWorldWind.git
synced 2026-01-25 15:23:04 +00:00
34 lines
1.1 KiB
Plaintext
34 lines
1.1 KiB
Plaintext
This file explains how to install and run Grunt for building Web World Wind artifacts.
|
|
On OS X and Linux you will need to run the given commands as root (using sudo). On Windows
|
|
you can run them as given.
|
|
|
|
The below 3 installations are per-machine.
|
|
|
|
Install Node (https://nodejs.org/download/)
|
|
— Download and install the appropriate installation file.
|
|
|
|
Install r.js (http://requirejs.org/docs/node.html)
|
|
npm install -g requirejs
|
|
|
|
Install grunt-cli (http://gruntjs.com/getting-started)
|
|
npm update
|
|
npm install -g grunt-cli
|
|
|
|
|
|
The below installations are per-project — must be performed with each new full-project checkout -
|
|
with cwd as the project folder.
|
|
|
|
Install requirejs plugin (http://jaketrent.com/post/run-requirejs-with-gruntjs/)
|
|
npm install grunt-contrib-requirejs
|
|
|
|
Install jsdoc 3.3.0 plugin (https://github.com/krampstudio/grunt-jsdoc)
|
|
npm install grunt-jsdoc@beta
|
|
|
|
Install compress plugin (https://github.com/gruntjs/grunt-contrib-compress)
|
|
npm install grunt-contrib-compress
|
|
|
|
You should now be able to run Grunt:
|
|
grunt jsdoc
|
|
grunt requirejs
|
|
grunt compress
|
|
To run all tasks, just run grunt without any arguments. |