Subversion Repositories wimsdev

Rev

Rev 10963 | Rev 13570 | 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,
11388 obado 2
And then we use `Grunt` to perform special tasks (concat, minify, verify ...)
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
 
10963 obado 19
# Upgrade package manager
20
-------------------------
10445 obado 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
 
10963 obado 32
## List all installed plugins :
10445 obado 33
    bower list
9822 obado 34
 
10963 obado 35
## Update Javascripts plugins via Bower :
10445 obado 36
    bower update --save
10963 obado 37
*nb : After each jquery-ui update, look at these URL :*
9886 obado 38
 
10963 obado 39
* Tabs : [searchform](http://localhost/wims/wims.cgi?cmd=new&module=home&search_keywords=oef&search_category=A&search_lang=fr#searchform)
40
* Menu : [H6/algebra/docnatural.fr](http://localhost/wims/wims.cgi?module=H6/algebra/docnatural.fr)
41
 
42
## Update Javascripts plugins for production (without devDepedencies) :
10445 obado 43
    bower update -p
9886 obado 44
 
45
 
10445 obado 46
# Download new Package(s)
47
-------------------------
48
    bower install <package> --save
49
 
50
 
51
# Migrate files from _packages/ to wims/
52
  #  After each update, Grunt is handy to automatically compress js + css, and move each files at is wims destination. simply call "grunt"
10963 obado 53
 
10445 obado 54
    grunt
55
 
56
#  Documentations
10963 obado 57
-----------------
10445 obado 58
* [Bower docs](http://bower.io/docs/creating-packages/)
59
* [Grunt HowTo (video fr)](http://www.grafikart.fr/tutoriels/grunt/grunt-introduction-470)
60
* [Grunt "getting started"](http://gruntjs.com/getting-started)