Saturday, 15 May 2010

node.js - Multitask in GulpJS -


How are you guys?

How do I create similar things in GulpJS which are Gruggs? possible?

Example:

  module.exports = function (grunt) {"strictly use" grunt.initConfig ({subjection: {options: {management: false}, Dev: {...}, prod: {...}}, less: {option: {cleancss: true}, dev: {...}, prod: {...}}}); Grunt.registerTask ("dev", ["uglify: dev", "less: dev"]); Grunt.registerTask ("prod", ["low: products", "low: products"]); }  

Thanks!

I believe that is what you are looking for, how to run tasks in a series Here's how to do this:

  var gulp = need ('gulp'); // takes a callback so that the engine will know when this work will be done when gulp.task ('one', function (CB) {// do stuff - async or otherwise CB (mistake); // If the fault tap And not undefined, the orchestration will stop, and 'two' will not run}); // must be completed before recognizing a dependent work gulp.task starts ('two', ['a'], function () {// task 'one' is done now}); Gulp.task ('default', ['one', 'two']); // Optionally: gulp.task ('default', ['' two ']);  

You can read more about this here:


No comments:

Post a Comment