Skip to content

Starter gulpfile.js and structure with commonly used tools

License

Notifications You must be signed in to change notification settings

zeroEvidence/gulp-starter

 
 

Repository files navigation

Lots of new stuff happening in the 2.0 branch

Use Rails? Check out http://viget.com/extend/gulp-rails-asset-pipeline and https://github.com/vigetlabs/gulp-rails-pipeline

gulp-starter

Revisions

  • Full asset pipeline and static html compilation
  • New directory structure
  • Replaced Browserify with Webpack!
    • Async CommonJS module requires
    • Automatically splits out shared dependencies
    • New html task w/ Swig templating/compiling
  • Replace CoffeeScript with ES6 (Babel.js)
  • New server task to test production files locally
  • New deploy task to deploy the public directory to gh-pages
  • New rev task that revisions filenames and compress css and js
  • Use gulp-watch instead of gulp.watch (correctly handles new files)
  • New build:production task runs tests, compression + filename revisioning
  • Remove old examples and extraneous dependencies
  • Upgrade dependencies (BrowserSync 2!)
  • Added example Travis CI integration that runs karma tests and production build

Live Demo

http://greypants.github.io/gulp-starter/ Result of running gulp deploy

Install dependencies

npm install

Start gulp

gulp

You may need to alias gulp to node_modules/.bin/gulp, or npm install -g gulp.

Start editing assets and views from the gulp/assets and gulp/views folder. Files compile to public.

Preview production environment

gulp build:production
gulp server

Deploy to GitHub pages

gulp deploy

This will run karma, build your files, revision and compress them, and copy the contents of the public folder to a gh-pages branch, and push it up to GitHub.

Build Status

About

Starter gulpfile.js and structure with commonly used tools

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 85.4%
  • CSS 8.8%
  • HTML 5.8%