Base to kickstart new projects. Using gulp and inspired by BEM structure.
Uses BEM structure. Jade and LESS files are organized by elements with blocks inside.
- dist
- css
- img
- js
- home.html
- src
- img
- js
- app.js
- vendor
- jquery.min.js
- jade
- element
- element.jade
- blocks
- block1.jade
- block2.jade
- element
- less
- element
- element.less
- blocks
- block1.less
- block2.less
- element
Gulp is used to :
- Compile Jade files
- Compile LESS files
- Minify and prefix CSS
- Uglify, minify and concatenate JS
- Optimize images with image-min
- Create a LiveReload Server
- Give JS and HTML hints
- Give files sizes
npm install
to install the npm packagesgulp install
to create the dist/ foldergulp
to launch gulp default taskgulp images
to optimize images