Subversion Repositories wimsdev

Rev

Rev 9886 | Rev 10963 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
10445 obado 1
We use `Bower` to automatically download JS packages/plugins,
2
And then we use `Grunt` to perform special tasks (concat, minify, ...)
9822 obado 3
 
10445 obado 4
# Installation
5
--------------
9822 obado 6
 
10445 obado 7
## Install Dependencies :
8
*  You need to install node, npm and git.
9
*  See here : [install Bower](http://bower.io#install-bower)
9822 obado 10
 
10445 obado 11
## Install Bower :
12
    npm install -g bower
9822 obado 13
 
10445 obado 14
## Install Grunt :
15
    npm update
16
    npm install -g grunt-cli
9886 obado 17
 
18
 
10445 obado 19
# Upgrade
20
---------
21
from `_packages` directory :
9886 obado 22
 
10445 obado 23
    npm update
24
    npm install -g bower
25
    npm install -g grunt-cli
26
    bower update -p
9886 obado 27
 
9822 obado 28
 
10445 obado 29
# Manage Bower Packages
30
-----------------------
9886 obado 31
 
10445 obado 32
## list all installed plugins :
33
    bower list
9822 obado 34
 
10445 obado 35
## update Javascripts plugins via Bower :
36
    bower update --save
9886 obado 37
 
10445 obado 38
## update Javascripts plugins for production (without devDepedencies) :
39
    bower update -p
9886 obado 40
 
41
 
10445 obado 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/)
54
* [Grunt HowTo (video fr)](http://www.grafikart.fr/tutoriels/grunt/grunt-introduction-470)
55
* [Grunt "getting started"](http://gruntjs.com/getting-started)