This is the theory, because I am larning the tool right now, but in my opinion, it seems like a new complex mechanism. In order to use it, you must use the command line (after my progress with Linux, I am used to).
Anyway, using Gulp.js mean to be clean with your project, because it can be easy if everything is ordered. Also, you can read this great introduction.
There is a lot of gulp.js plugins that increase functionality, and that’s good because it expand knowledge, and it make developers an “easy” life. Well, you need to know how to use it, becuase it is ready!
Every pluing is designed for one task, so in order to create several tasks, you need to know what plugin you need to use. Also, the way of loading the plugins is by using npm. not a problem any more!
The first plugin to meet is gulp-util, the main plugin, and it is the base in case you need to code a new plugin! Good to know!
Another interesting plugin is gulp-empty, if you want to remove empty dirs.
In Linux I already wrote how to install Node.js, while Windows users only need to download the installer, and next, next, next, … end.
Node is ready to work! First thing to do is downloading gulp.js with the command npm install -g gulp:
If you need to use npm behind a proxy, you must visit this blog entrance.
It is recommended to install gulp.js also locally, in the working dir. I will do it with the project preseented here.
Now, everything is ready.
TypeScript and gulp.js
Next step is writting the gulp.ts file, with the task that must be done, with the files of this project: http://www.manejandodatos.es/2015/11/adding-jquery-plugins-using-requirejs-and-typescript.
But this is material for a new entrance!