Skip to content

maibatsu/frontend-gulp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend-gulp

GitHub license

Required: Node.js, NPM, gulp.js

Features

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.

Project Structure

+-- node_modules/
+-- build/
|   +-- css/
|   +-- js/
|   +-- img/
|   +-- index.html
+-- src/
|   +-- sass/
|   +-- js/
|   +-- img/
|   +-- index.html
+-- .gitignore
+-- gulpfile.js
+-- package.json
+-- .csscomb.json
+-- .stylelintrc
+-- README.md

Getting started

1. ~$:git clone https://github.com/maibatsu/frontend-gulp.git projectname

2. ~$:cd projectname && npm i

Linting & Auto-formatting CSS/SCSS:

~$: npm run stylelint
~$: npm run stylefmt
~$: npm run csscomb
~$: npm run prettyfy-styles

Gulp commands:

~$: gulp default
~$: gulp build
~$: gulp buid:style
~$: gulp buid:js
~$: gulp buid:image
~$: gulp webserver
~$: gulp clean
~$: gulp watch

TODO:

  • Add demo

About

💡 tools

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published