Netsells custom gulp file. This module is intended to speed up development by making tasks consistent, as well as providing documentation and source control as improvements are made.
If working on multiple projects using the this gulpfile, I would recommend installing this module globally (
npm install -g netsells-gulp) so that you don't need to install all the dependencies in each project.
More tasks will be added eventually, as well as improvements in performance.
The gulpfile itself needs only be the following:
var gulp = ;gulptasks =config:;
You can specify the default component to compile, or you can specify the
--c=<component> flag after the gulp command. This works for any specific gulp too, e.g.
gulp watch, etc.
gulp watch command also accepts a
--build flag which will run the
default task specified in your config.
This module will handle the rest, as long as you provide a valid config for it to read.
Config should be provided in the form of a
gulp.config.js file in the same directory as your gulpfile. The basic config format is as follows:
var path = ;moduleexports =component:task:before: 'Array of tasks to perform before this one'watch:src: 'Array or string of files to watch'task: 'Task to execute when changes are made'src:'Array of files to pass into the pipe'dest: 'Path to move files to'
Need to compile certain files but don't want these compiled into a single bloated file with your app logic especially if they're not going to change often (mainly package manager dependencies such as bower)? Well no problem! Simply name the task in the following format: