##Main Feautures
- type
gulp
to use the watch powerful feature and launch live-reloading local sever, once set up, everythings flows beautifully - type
gulp minify
to compress all the files (html, css, js & json) and save it into the production directory without any manual modification - type
gulp imgMinify
to compress the images (the origin ones inside the development dir won't be modified just for convenience)
##More Details
gulp default
includes:
gulp coffee
loads gulp-coffee to process the .coffee into vanilla .js (inside the sub-dir scripts of the componentsgulp concat
loads gulp-concat to concat all of the components scripts into one script inside the./builds/development
dir, keep in mind this task also includes the gulp-browserify to auto load common libraries and frameworks (feel free to delete this feature as long as it's not necessary)gulp compass
loads gulp-compass to process all the .scss, concat them together into one vanilla .css and add sourcemap inside the./builds/development/css
dirgulp autoprefixer
loads gulp-autoprefixer to automatically deal with the vendor prefix for the css filesgulp server
,gulp liveReload
andgulp watch
2. `gulp minify` includes: - `gulp htmlMinify` loads [gulp-htmlmin]() - `gulp cssMinify` loads [gulp-cssnano]() - `gulp jsMinify` loads [gulp-uglify]() - `gulp jsonMinify` loads [gulp-jsonminify]()
3. `gulp imgMinify` - `gulp lmgMinify` loads [gulp-htmlmin]() and [imagemin-pngcrush]() to compress images
##Directory Tree for Reference |-- project |-- builds |-- development |-- production |-- components |-- coffee |-- sass |-- scripts |-- gulpfile.js |-- package.json |-- README.md |-- .gitignore |-- node_module