How to use the tasks function from grunt
Find comprehensive JavaScript grunt.tasks code examples handpicked from public code repositorys.
GitHub: tgideas/motion
32 33 34 35 36 37 38 39 40 41
}else{ fs.exists(filePath, function(result){ if(result){ readFromBuild() }else{ grunt.tasks(buildTask, {}, readFromBuild); } }); } }
118
450
51
+ 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();} );
61
404
31
+ 10 other calls in file
GitHub: jesseditson/Urza
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
4
10
3
+ 5 other calls in file
grunt.file is the most popular function in grunt (372 examples)