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