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); } }); } }
+ 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();} );
+ 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
+ 5 other calls in file
grunt.file is the most popular function in grunt (372 examples)