Rev 9886 | Rev 10963 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9886 | Rev 10445 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | We use |
1 | We use `Bower` to automatically download JS packages/plugins, |
2 | And then we use |
2 | And then we use `Grunt` to perform special tasks (concat, minify, ...) |
3 | 3 | ||
4 | **************** |
- | |
5 |
|
4 | # Installation |
6 |
|
5 | -------------- |
7 | 6 | ||
8 |
|
7 | ## Install Dependencies : |
9 |
|
8 | * You need to install node, npm and git. |
10 |
|
9 | * See here : [install Bower](http://bower.io#install-bower) |
11 | 10 | ||
12 |
|
11 | ## Install Bower : |
13 | npm install -g bower |
12 | npm install -g bower |
14 | 13 | ||
15 |
|
14 | ## Install Grunt : |
- | 15 | npm update |
|
- | 16 | npm install -g grunt-cli |
|
16 | 17 | ||
17 | 18 | ||
- | 19 | # Upgrade |
|
18 |
|
20 | --------- |
19 |
|
21 | from `_packages` directory : |
20 | *************************************** |
- | |
21 | 22 | ||
- | 23 | npm update |
|
- | 24 | npm install -g bower |
|
22 |
|
25 | npm install -g grunt-cli |
23 | bower |
26 | bower update -p |
24 | 27 | ||
25 | #### update Javascripts plugins via Bower : |
- | |
26 | bower update --save |
- | |
27 | 28 | ||
28 |
|
29 | # Manage Bower Packages |
29 |
|
30 | ----------------------- |
30 | 31 | ||
31 |
|
32 | ## list all installed plugins : |
32 |
|
33 | bower list |
33 | 34 | ||
34 | ## |
35 | ## update Javascripts plugins via Bower : |
35 |
|
36 | bower update --save |
36 | 37 | ||
- | 38 | ## update Javascripts plugins for production (without devDepedencies) : |
|
- | 39 | bower update -p |
|
37 | 40 | ||
38 | *************************** |
- | |
39 | * Make Tasks with GRUNT * |
- | |
40 | *************************** |
- | |
41 | 41 | ||
42 |
|
42 | # Download new Package(s) |
- | 43 | ------------------------- |
|
- | 44 | bower install <package> --save |
|
- | 45 | ||
- | 46 | ||
- | 47 | # Migrate files from _packages/ to wims/ |
|
- | 48 | # After each update, Grunt is handy to automatically compress js + css, and move each files at is wims destination. simply call "grunt" |
|
- | 49 | grunt |
|
- | 50 | ||
- | 51 | # Documentations |
|
- | 52 | ------------------------ |
|
- | 53 | * [Bower docs](http://bower.io/docs/creating-packages/) |
|
43 | http://www.grafikart.fr/tutoriels/grunt/grunt-introduction-470 |
54 | * [Grunt HowTo (video fr)](http://www.grafikart.fr/tutoriels/grunt/grunt-introduction-470) |
- | 55 | * [Grunt "getting started"](http://gruntjs.com/getting-started) |