All Questions

335
votes
13answers
178030 views

How to run Gulp tasks sequentially one after the other

in the snippet like this: gulp.task "coffee", -> gulp.src("src/server/**/*.coffee") .pipe(coffee {bare: true}).on("error",gutil.log) .pipe(gulp.dest "bin") gulp.task "clean",...
333
votes
10answers
140568 views

Is it possible to pass a flag to Gulp to have it run tasks in different ways?

Normally in Gulp tasks look like this: gulp.task('my-task', function() { return gulp.src(options.SCSS_SOURCE) .pipe(sass({style:'nested'})) .pipe(autoprefixer('last 10 version')) ...
184
votes
1answers
105217 views

Excluding files/directories from Gulp task

I have a gulp rjs task that concatenates and uglifies all my custom .JS files (any non vendor libraries). What i am trying to do, is exclude some files/directories from this task (controllers and dir...
263
votes
7answers
112604 views

Why do we need to install gulp globally and locally?

2 manuals about gulp say that I need to install gulp first globally (with -g flag) and then one more time locally. Why do I need this?
42
votes
3answers
22636 views

How to prepare release version with SystemJS and Gulp?

I use SystemJS in my Angular2 project. I use tsconfig file for TypeScript. I want to use gulp to concat and minify my code for production version. I am having an issues with concating the code: each t...
49
votes
3answers
20855 views

Browserify, Babel 6, Gulp - Unexpected token on spread operator

I'm trying to get my Browserify/Babelify/Gulp working in my project, but it won't take the spread operator. I got this error from my gulpfile: [SyntaxError: /Users/mboutin2/Desktop/Todo-tutorial/sr...
161
votes
35answers
194755 views

gulp command not found - error after installing gulp

I've installed gulp both globally and locally using npm install gulp npm install gulp -g npm install gulp-util npm install gulp-util -g When try to run gulp i get 'gulp' is not recognized as an ...
155
votes
14answers
92222 views

gulp concat scripts in order?

Say for example you are building a project on backbone or whatever and you need to load scripts in a certain order, ex "underscore.js" needs to be loaded first, before "backbone.js". How do I get it ...
1322
votes
9answers
206170 views

NPM vs. Bower vs. Browserify vs. Gulp vs. Grunt vs. Webpack

I'm trying to summarize my knowledge about the most popular JavaScript package managers, bundlers, and task runners. Please correct me if I'm wrong: npm & bower are package managers. They just d...
165
votes
5answers
38610 views

How to prevent moment.js from loading locales with webpack?

Hello is there anyway you can stop moment.js from loading all the locales(I just need english) when your using webpack? I'm looking at the source it seems that if hasModule is defined which it is for...

Previous Next