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