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);
fork icon9
star icon301
watch icon15

+ 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)
}
fork icon1
star icon3
watch icon3

+ 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
fork icon16
star icon0
watch icon2

+ 3 other calls in file

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');
fork icon0
star icon0
watch icon20

+ 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 = {
fork icon0
star icon0
watch icon4

+ 9 other calls in file