Subversion Repositories wimsdev

Rev

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 "bower" to automatically download JS packages/plugins,
1
We use `Bower` to automatically download JS packages/plugins,
2
And then we use "Grunt" to perform special tasks (concat, minify, ...)
2
And then we use `Grunt` to perform special tasks (concat, minify, ...)
3
 
3
 
4
****************
-
 
5
* Installation *
4
# Installation
6
****************
5
--------------
7
 
6
 
8
# Install Dependencies :
7
## Install Dependencies :
9
#  You need to install node, npm and git.
8
*  You need to install node, npm and git.
10
#  see here : http://bower.io#install-bower
9
*  See here : [install Bower](http://bower.io#install-bower)
11
 
10
 
12
# Install Bower :
11
## Install Bower :
13
  npm install -g bower
12
    npm install -g bower
14
 
13
 
15
# Install Grunt :
14
## Install Grunt :
-
 
15
    npm update
-
 
16
    npm install -g grunt-cli
16
 
17
 
17
 
18
 
-
 
19
# Upgrade
18
***************************************
20
---------
19
* Download/update Packages with Bower *
21
from `_packages` directory :
20
***************************************
-
 
21
 
22
 
-
 
23
    npm update
-
 
24
    npm install -g bower
22
### list all installed plugins :
25
    npm install -g grunt-cli
23
  bower list
26
    bower update -p
24
 
27
 
25
#### update Javascripts plugins via Bower :
-
 
26
  bower update --save
-
 
27
 
28
 
28
#### update Javascripts plugins for production (without devDepedencies) :
29
# Manage Bower Packages
29
  bower update -p
30
-----------------------
30
 
31
 
31
#### add a new Javascript plugin via Bower :
32
## list all installed plugins :
32
  bower install <package> --save
33
    bower list
33
 
34
 
34
## Complete documentation at Bower here :
35
## update Javascripts plugins via Bower :
35
##  http://bower.io/docs/creating-packages/
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
#### Grunt HowTo (FR) :
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)