forked from WorldWindLabs/SpaceBirds
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GruntSetup.txt
executable file
·41 lines (29 loc) · 1.37 KB
/
GruntSetup.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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.
Arturo's mod:
To have a development web server add to the per-project installations:
npm install grunt-contrib-connect
npm install grunt-contrib-watch
Run with "grunt server". It automatically refreshes each time some file is edited.