How to use the tasks function from grunt

Find comprehensive JavaScript grunt.tasks code examples handpicked from public code repositorys.

32
33
34
35
36
37
38
39
40
41
  }else{
    fs.exists(filePath, function(result){
      if(result){
        readFromBuild()
      }else{
        grunt.tasks(buildTask, {}, readFromBuild);
      }
    });
  }
}
fork icon118
star icon450
watch icon51

+ 35 other calls in file

20
21
22
23
24
25
26
27
28
29
    }
});
grunt.loadNpmTasks('grunt-contrib-copy');

gulp.task('copy', function (done) {
    grunt.tasks(
        ['copy:main'],    // 你可以在这个数组中加入更多的 Grunt 任务
        {gruntfile: false}, // 不查找 Gruntfile - 因为并没有. :-)
        function () {done();}
    );
fork icon61
star icon404
watch icon31

+ 10 other calls in file

28
29
30
31
32
33
34
35
36
37
.action(function(type,info){
  // set grunt's dir to the urza dir
  grunt.file.setBase(__dirname + '/..')
  setup()
  
  grunt.tasks(['build'])
});

// lint command
program
fork icon4
star icon10
watch icon3

+ 5 other calls in file