Instantly share code, notes, and snippets.

What would you like to do?
Example gulpfile for complete set-up.
var gulp = require('gulp');
var browserify = require('gulp-browserify');
var concat = require('gulp-concat');
var less = require('gulp-less');
var refresh = require('gulp-livereload');
var lr = require('tiny-lr');
var server = lr();
var minifyCSS = require('gulp-minify-css');
var embedlr = require('gulp-embedlr');
gulp.task('scripts', function() {
gulp.task('styles', function() {
gulp.task('lr-server', function() {
server.listen(35729, function(err) {
if(err) return console.log(err);
gulp.task('html', function() {
gulp.task('default', function() {'lr-server', 'scripts', 'styles', 'html');'app/src/**', function(event) {'scripts');
})'app/css/**', function(event) {'styles');
})'app/**/*.html', function(event) {'html');

This comment has been minimized.

bd3717eb commented May 25, 2016

hi! Can U speak spanish ? need help


This comment has been minimized.

RedTurk commented Aug 9, 2017

Great! gulpfile, soft, clean and tutorial.


This comment has been minimized.

Maelfyn commented Dec 1, 2017 is deprecated. Now what?


This comment has been minimized.

lucasomigli commented Dec 4, 2017

Great! Thanks for the clean code!
Anyways, may I ask if someone could comment the code out so to be more specific about what is actually happening? It would be nice especially for people using gulp for the first times... like me! :)


This comment has been minimized.

tavuntu commented Oct 27, 2018

@Maelfyn a late response but I think now you must use the array of pre-tasks in the gulp.task function (as the second parameter)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment