Required: Node.js, NPM, gulp.js
CSS: Sourcemaps, autoprefixes css, minifies css, normalize.
Linting & Auto-formatting CSS/SCSS: Stylelint, Stylefmt and cssComb (sorting properties).
Images: Optimise PNGs, JPGs, SVGs, and GIFs.
JavaScript: Minify javascript files.
Web server: BrowserSync monitors the directory defined in baseDir and whenever we edit project files, the page reloads.
Clean: Deletes 'build' directory.
+-- node_modules/
+-- build/
| +-- css/
| +-- js/
| +-- img/
| +-- index.html
+-- src/
| +-- sass/
| +-- js/
| +-- img/
| +-- index.html
+-- .gitignore
+-- gulpfile.js
+-- package.json
+-- .csscomb.json
+-- .stylelintrc
+-- README.md
1. ~$:git clone https://github.com/maibatsu/frontend-gulp.git projectname
2. ~$:cd projectname && npm i
~$: npm run stylelint
~$: npm run stylefmt
~$: npm run csscomb
~$: npm run prettyfy-styles
~$: gulp default
~$: gulp build
~$: gulp buid:style
~$: gulp buid:js
~$: gulp buid:image
~$: gulp webserver
~$: gulp clean
~$: gulp watch
- Add demo