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
- 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 ofgulp.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
http://greypants.github.io/gulp-starter/
Result of running gulp deploy
npm install
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
.
gulp build:production
gulp server
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.