Subversion Repositories wimsdev

Rev

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

Rev Author Line No. Line
13570 obado 1
We use `Yarn` 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
 
13570 obado 7
## Install Yarn :
8
*  See here : [install Yarn](https://yarnpkg.com)
9
    brew install yarn
9822 obado 10
 
10445 obado 11
## Install Grunt :
12
    npm update
13
    npm install -g grunt-cli
9886 obado 14
 
15
 
10963 obado 16
# Upgrade package manager
17
-------------------------
10445 obado 18
from `_packages` directory :
9886 obado 19
 
13570 obado 20
    yarn update
9886 obado 21
 
9822 obado 22
 
10445 obado 23
# Manage Bower Packages
24
-----------------------
9886 obado 25
 
13570 obado 26
## Audit each dependency if there is a known issue to fix :
27
    yarn audit
9822 obado 28
 
10963 obado 29
## Update Javascripts plugins via Bower :
13570 obado 30
    yarn upgrade
10963 obado 31
*nb : After each jquery-ui update, look at these URL :*
9886 obado 32
 
10963 obado 33
* Tabs : [searchform](http://localhost/wims/wims.cgi?cmd=new&module=home&search_keywords=oef&search_category=A&search_lang=fr#searchform)
34
* Menu : [H6/algebra/docnatural.fr](http://localhost/wims/wims.cgi?module=H6/algebra/docnatural.fr)
35
 
9886 obado 36
 
10445 obado 37
# Download new Package(s)
38
-------------------------
13570 obado 39
    yarn add <package>
10445 obado 40
 
41
 
42
# Migrate files from _packages/ to wims/
43
  #  After each update, Grunt is handy to automatically compress js + css, and move each files at is wims destination. simply call "grunt"
10963 obado 44
 
10445 obado 45
    grunt
46
 
47
#  Documentations
10963 obado 48
-----------------
13570 obado 49
* [Yarn docs](https://yarnpkg.com/docs)
10445 obado 50
* [Grunt HowTo (video fr)](http://www.grafikart.fr/tutoriels/grunt/grunt-introduction-470)
51
* [Grunt "getting started"](http://gruntjs.com/getting-started)