##// END OF EJS Templates
package.json: add npm scripts
ergo -
Show More
@@ -1,33 +1,34 b''
1 {
1 {
2 "name": "errormator",
2 "name": "errormator",
3 "description": "JS layer for AppEnlight",
3 "description": "JS layer for AppEnlight",
4 "devDependencies": {
4 "devDependencies": {
5 "bower": "^1.8.8",
5 "bower": "^1.8.8",
6 "bower-requirejs": "1.2.0",
6 "bower-requirejs": "1.2.0",
7 "grunt": "1.0.1",
7 "grunt": "1.0.1",
8 "grunt-angular-templates": "1.0.4",
8 "grunt-angular-templates": "1.0.4",
9 "grunt-bower-concat": "1.0.0",
9 "grunt-bower-concat": "1.0.0",
10 "grunt-bower-requirejs": "2.0.0",
10 "grunt-bower-requirejs": "2.0.0",
11 "grunt-contrib-concat": "1.0.1",
11 "grunt-contrib-concat": "1.0.1",
12 "grunt-contrib-copy": "1.0.0",
12 "grunt-contrib-copy": "1.0.0",
13 "grunt-contrib-jshint": "1.0.0",
13 "grunt-contrib-jshint": "1.0.0",
14 "grunt-contrib-less": "1.3.0",
14 "grunt-contrib-less": "1.3.0",
15 "grunt-contrib-nodeunit": "1.0.0",
15 "grunt-contrib-nodeunit": "1.0.0",
16 "grunt-contrib-requirejs": "1.0.0",
16 "grunt-contrib-requirejs": "1.0.0",
17 "grunt-contrib-uglify": "1.0.1",
17 "grunt-contrib-uglify": "1.0.1",
18 "grunt-contrib-watch": "1.0.0",
18 "grunt-contrib-watch": "1.0.0",
19 "grunt-remove-logging": "0.2.0",
19 "grunt-remove-logging": "0.2.0",
20 "ini": "1.3.4",
20 "ini": "1.3.4",
21 "karma": "0.13.22",
21 "karma": "0.13.22",
22 "underscore": "1.8.3",
22 "underscore": "1.8.3",
23 "yo": "1.8.4"
23 "yo": "1.8.4"
24 },
24 },
25 "dependencies": {
25 "dependencies": {
26 "grunt-cli": "^1.3.2"
26 "grunt-cli": "^1.3.2"
27 },
27 },
28 "scripts": {
28 "scripts": {
29 "bower": "bower install",
29 "bower": "bower install",
30 "build": "grunt",
30 "build": "grunt",
31 "watch": "grunt watch"
31 "watch": "grunt watch",
32 "watch:dev": "grunt watch:dev"
32 }
33 }
33 }
34 }
@@ -1,45 +1,43 b''
1 Javascript frontend for AppEnlight
1 Javascript frontend for AppEnlight
2 ===================================
2 ===================================
3
3
4 To fetch all the requirememts you need to have nodejs and npm installed on your dev machine, then from this dir execute::
4 To fetch all the requirememts you need to have nodejs and npm installed on your dev machine, then from this dir execute::
5
5
6 npm install
6 npm install
7 npm install -g bower
7 npm run bower
8 npm install -g grunt-cli
9 bower install
10
8
11 This will fetch all the required components to build front with grunt.
9 This will fetch all the required components to build front with grunt.
12
10
13
11
14 To build production version (builds both js and css) just run::
12 To build production version (builds both js and css) just run::
15
13
16 grunt
14 npm run build
17
15
18 To work on dev code version (builds js with comments and css) run:
16 To work on dev code version (builds js with comments and css) run:
19
17
20 grunt watch
18 npm rum grunt watch
21
19
22 You generally shouldn't need to run those separately but still:
20 You generally shouldn't need to run those separately but still:
23
21
24 To work on just Javascript version with comments run:
22 To work on just Javascript version with comments run:
25
23
26 grunt watch:dev
24 grunt watch:dev
27
25
28 To work on just CSS files run:
26 To work on just CSS files run:
29
27
30 grunt watch:css
28 grunt watch:css
31
29
32 Ubuntu/Debian and broken node - running from node_modules instead system ones
30 Ubuntu/Debian and broken node - running from node_modules instead system ones
33 -----------------------------------------------------------------------------
31 -----------------------------------------------------------------------------
34
32
35 Download this:
33 Download this:
36
34
37 http://nodejs.org/dist/v0.10.32/node-v0.10.32-linux-x64.tar.gz
35 http://nodejs.org/dist/v0.10.32/node-v0.10.32-linux-x64.tar.gz
38
36
39 unpack to your home into "node" directory then edit your .bashrc file to include:
37 unpack to your home into "node" directory then edit your .bashrc file to include:
40
38
41 export PATH=$PATH:~/node/bin
39 export PATH=$PATH:~/node/bin
42
40
43 now you will be able to execute all the comands above just fine
41 now you will be able to execute all the comands above just fine
44
42
45
43
General Comments 0
You need to be logged in to leave comments. Login now