- npm
OSX: brew install npm
Display info: npm config set loglevel info
- bower
$ npm install -g bower
- NPM modules
$ npm install -g browserify
$ npm install -g uglifyjs
$ npm install -g less
$ git clone https://github.com/masters-info-nantes/CRATE.git
$ git clone https://github.com/masters-info-nantes/jquery-crate.git
$ git clone https://github.com/masters-info-nantes/crate-core.git
- crate-core
Download lseqtree-0.3.4.tgz file here
$ cd crate-core
$ npm cache add lseqtree-0.3.4.tgz # lseqtree in npm is too fat https://github.com/Chat-Wane/CRATE/files/74787/lseqtree-0.3.4.tgz
$ npm install lseqtree
$ npm install
$ npm run build
- jquery-crate
Before build create-core if changes
$ cd ../jquery-crate
$ npm link ../crate-core
$ npm install brfs
$ npm install
$ npm run build
$ bower link # to prepare a local repo
- Crate
Before build jquery-crate if changes
$ cd ../CRATE
$ bower link jquery-crate # to get the local repo jquery-crate
$ bower install
$ lessc css/style.less css/generatedstyle.css
- Create a file named .bowerrc next to the bower.json in the project
{
"proxy":"http://cache.etu.univ-nantes.fr:3128",
"https-proxy":"http://cache.etu.univ-nantes.fr:3128"
}
npm config set proxy http://cache.etu.univ-nantes.fr:3128
npm config set https-proxy http://cache.etu.univ-nantes.fr:3128