How to use the loadNpmTasks function from grunt
Find comprehensive JavaScript grunt.loadNpmTasks code examples handpicked from public code repositorys.
26 27 28 29 30 31 32 33 34 35
return object; } module.exports = function(grunt) { // Load grunt tasks automatically // No need for grunt.loadNpmTasks('some-package'); require('load-grunt-tasks')(grunt); // Time how long tasks take. Can help when optimizing build times require('time-grunt')(grunt);
9
301
15
+ 11 other calls in file
27 28 29 30 31 32 33 34 35
function initTasks(grunt, folderPath) { var pkg = grunt.file.readJSON('package.json') var tasks = pkg.devDependencies delete tasks.grunt for ( var task in tasks ) { grunt.loadNpmTasks(task) } grunt.loadTasks(folderPath) }
1
3
3
+ 7 other calls in file
46 47 48 49 50 51 52 53 54 55
// Load all grunt tasks require('load-grunt-tasks')(grunt); //require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks); grunt.loadNpmTasks('assemble'); grunt.loadNpmTasks('node-spritesheet'); var helpers = require('handlebars-helpers'); // configurable paths
16
0
2
+ 3 other calls in file
GitHub: wrdsb/canvas-lms
39 40 41 42 43 44 45 46 47 48
module.exports = function() { grunt.initConfig({ pkg: readPackage() }); grunt.loadNpmTasks('grunt-contrib-watch'); grunt.loadNpmTasks('grunt-contrib-connect'); grunt.loadNpmTasks('grunt-connect-rewrite'); grunt.loadNpmTasks('grunt-connect-proxy'); grunt.loadNpmTasks('grunt-contrib-jasmine');
0
0
20
+ 15 other calls in file
42 43 44 45 46 47 48 49 50 51
grunt.loadNpmTasks('grunt-contrib-requirejs'); grunt.loadNpmTasks('grunt-react'); grunt.loadNpmTasks('grunt-contrib-symlink'); grunt.loadNpmTasks('grunt-contrib-clean'); grunt.loadNpmTasks('grunt-contrib-copy'); grunt.appName = 'Canvas Quiz Statistics'; grunt.moduleId = 'canvas_quiz_statistics'; grunt.paths = {
0
0
4
+ 9 other calls in file
grunt.file is the most popular function in grunt (372 examples)