33. 33
Efficient
var gulp = require('gulp‘),
coffee = require(‘gulp-coffee’);
gulp.task('coffee', function() {
gulp.src(‘assets/coffee/main.coffee’)
.pipe(coffee())
.pipe(uglify())
.pipe(rename(‘assets/js/main.min.js’))
.pipe(gulp.dest(‘dist/assets/js/’));
});
Process in Memory
Process in Memory
Process in Memory
40. 40
Easy to LearnEasy to Learn
With a minimal API surface, you
can pick up gulp in no time. Your
build works just like you envision it:
a series of streaming pipes.
48. 48
Write your first Gulp TaskWrite your first Gulp Task
gulpfile.[js|coffee|ls]
Support CoffeeScript or LiveScript from Gulp > 3.7.0
Thanks @tkellen
https://github.com/tkellen/node-liftoff
83. 83
FeaturesFeatures
●
The latest html5boilerplate.com source code.
●
Includes Normalize.scss v3.0.x and v1.1.x.
●
The latest jQuery and Modernizr via Bower
package manager.
●
Support CoffeeScript, RequireJS, Sass or
Compass, html minification (via
htmlcompressor).
●
Support JavaScript test framework Mocha.
●
Support streaming build system Gulp.
●
Support Minify PNG and JPEG images with
image-min.
●
Support browser-sync Keep multiple browsers
& devices in sync when building websites.
84. 84
How to install?How to install?
$ npm install -g slush
$ npm install -g slush-html5-template
85. 85
Scaffold your first projectScaffold your first project
$ mkdir app
$ cd app && slush html5-template
$ npm start