8000 GitHub - shuaibird/gulp-frontend-workflow
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

shuaibird/gulp-frontend-workflow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shuaibird's Frontend Workflow

##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

  1. gulp default includes:
  • gulp coffee loads gulp-coffee to process the .coffee into vanilla .js (inside the sub-dir scripts of the components
  • gulp 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 dir
  • gulp autoprefixer loads gulp-autoprefixer to automatically deal with the vendor prefix for the css files
  • gulp server, gulp liveReload and gulp 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0