Skip to content

Latest commit

 

History

History
77 lines (49 loc) · 1.98 KB

README.md

File metadata and controls

77 lines (49 loc) · 1.98 KB

Gulp Starter Kit

Basic starter kit for gulp development. Included Sass, Less, Jade, HTML, Eslint, and browserSync.

Based on gulp-starter-kit by cjies.

About

The main Gulp tasks that included in gulp/tasks :

  • browserSync - BrowserSync
  • deploy - Deploy Allthings
  • development - Build Dev Code with Dev Server
  • production - Build Production Code
  • watch - Gulp Watch
  • server - Run a Express-dev-server
  • css - Compile CSS with autoprefixer & minify
  • sass - libSass Compiler, support autoprefixer & Compass Mixins
  • less - Less Compiler, also support autoprefixer & Compass Mixins
  • scripts - JS, support concat & uglify.
  • lint - Linter with Eslint, config in .eslintrc
  • vendor - Vendor for JS & CSS (will be bundled into each single file)
  • html - HTML Watcher, support minify
  • jade - Jade Template Compiler, support ignore underscore file
  • images - Images minify
  • fonts - move fonts from static to build folder
  • locales - minify JSON
  • gzip - Gzip for html|xml|json|css|js|js.map|css.map
  • test - Unit Test with Karma

Configuration

All Gulp config are written in gulp/tasks/config.js

Dev, Prod & Watch's tasks can be configured in the end of config.js.

Install

npm install

Development

Running Dev server

npm start

Deploy

Building Production Code

npm run build

Test

Run Unit Test

npm run test

Karma config file: tests/karma.config.js

License

MIT © GSS Front End Department