The goal of this Gulp boilerplate is to free you time so you can do something more interesting than reinventing the wheel, it includes:
npm install adfab-gulp-boilerplate
Upon installation, two files will be copied to the root of your project:
Every task rely on the
gulp-config.js file for their configuration. Just fill-in the values you need.
gulp-config.jsfor details of every options of below for details about how it works
You can comment of remove the tasks you don't need. For exemple you will certainly need only one from less, sass and postcss.
Every tasks has a desktop notification when succeeded or failed, with detailed logs.
Here is a list of current taks available:
It acts as a proxy to the domain you specified in
vhost). You can now access your project by specifying the
3000 port (if you usually access your project via http://project.localhost/, now it would be http://project.localhost:3000/).
You can also test it in production mode by passing the
--production option. That way, it will remove sourcemaps and minify JS and CSS.
Development mode (by default), adds sourcemaps to your code
You can run:
it will remove sourcemap genreration and minify your js and css.
Copyright 2017 Adfab
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.