Beruflich Dokumente
Kultur Dokumente
gulpjs
By Adarsh Hasnah (@adarshasnah)
Gulp.js
The streaming build
system
gulp.src(globs[, options])
gulp.dest(path[, options])
gulp.src points to the files we want to use
gulp.dest points to the output folder we want to write files to
gulp.task('copyHtml', function() {
// copy any html files in source/ to public/
gulp.src('source/*.html').pipe(gulp.dest('public'));
});
CSS
Pre-processors (sass, less, stylus)
Post-processors (postcss, vendor prefixes)
Concatenate and minify (uglify)
Css map
HTML
Render from templates (eg jade, mustache, handlebars,...)
Put templates in templatecache (for angular)
Minify html
JS
Generate js from typescript, cofescript,...
Concatenate and minify
Demo
Questions?