Subversion Repositories wimsdev

Rev

Rev 16493 | Rev 17733 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

We use `Yarn` to automatically download JS packages/plugins,
And then we use `Grunt` to perform special tasks (concat, minify, verify ...)

# Installation
--------------

## Install Yarn :
*  See here : [install Yarn](https://yarnpkg.com)
    brew install yarn

## Install Grunt :
    yarn upgrade
    yarn global add grunt-cli


# Manage Packages
-----------------------

## Audit each dependency if there is a known issue to fix:
    yarn audit

## Update Javascripts plugins:
    yarn upgrade
*nb : After each jquery-ui update, look at these URL:*

* Tabs : [searchform](http://localhost/wims/?cmd=new&module=home&search_keywords=oef&search_category=A&search_lang=fr#searchform)
* Menu : [H6/algebra/docnatural.fr](http://localhost/wims/?module=H6/algebra/docnatural.fr)


# Download new Package(s)
-------------------------
    yarn add <package>


# Migrate files from _packages/ to wims/
  #  After each update, Grunt is handy to automatically compress js + css, and move each files at is wims destination. simply call "grunt"

    grunt
    yarn run build

# Cleaning
----------
    yarn cache clean
    yarn autoclean --force


#  Documentations
-----------------
* [Yarn docs](https://yarnpkg.com/docs)
* [Grunt HowTo (video fr)](http://www.grafikart.fr/tutoriels/grunt/grunt-introduction-470)
* [Grunt "getting started"](http://gruntjs.com/getting-started)