User Tools

Site Tools


tools:taaabs

This is an old revision of the document!


Taaabs

Common Prerequisites

Taaabs is a single page application using Polymer and running in a browser. Taaabs is written in HTML and JavaScript. Taaabs use gulp as Task-Runner/build tool, npm and bower for dependency management. Theses tools needs Node.js runtime environment.

node and npm should be installed with your distribution package manager (apt-get, yum, pacman…) if possible and if the version packaged for your distribution is the actual stable Node.js version. At least you need a node version >= 0.12.7 and npm version >= 2.14.1.

You can check theses version with node –version and npm –version.

If your distribution package manager cannot, no problem, you can download and install node (since v0.12, npm is packaged inside node, so you don't need to install it separatly) Download Node.js.

Assuming now you have node, npm properly installed.

We use npm for installing build tools and build dependencies.

Gulp

Then, you need to install gulp, as an executable application. [sudo] npm install -g gulp will install gulp for you in /usr/lib/node_modules/ and the executable will be available as a link on /usr/bin.

Now you can try the command gulp in your terminal. If you see in the standard output something like “local gulp not found”, you have succefully installed gulp.

If you got a message like gulp: command not found, please read Installing npm packages globally and thisFixing npm permissions

The gulp working principle is to check the configuration file of a project and perform the tasks described there. This configuration file is named by convention 'gulpfile.js'. To run the task 'foo' described in the configuration, you write gulp foo.

Bower

Then, you can install bower, as an executable application. [sudo] npm install -g bower will install bower for you in the same way as explained before.

Now you can try the command bower in your terminal. If bower is installed correctly you can see a short manual about how to use bower. A thorough reading of this message is not necessary, but might be entertaining.

tools/taaabs.1441372283.txt.gz · Last modified: 2015/09/04 15:11 by rcazenav

CNRS INSA de Lyon Université Lyon 1 Université Lyon 2 École centrale de Lyon