How to use the initConfig function from grunt

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

37
38
39
40
41
42
43
44
45
        // Load custom tasks
        grunt.loadTasks('./tasks');

        var config = loadConfig('./tasks/options');

        grunt.initConfig(config);

        console.log(grunt.config());
};
fork icon9
star icon301
watch icon0

+ 11 other calls in file

39
40
41
42
43
44
45
46
47
    grunt.file.expand(folderPath + '/**/*.js').forEach(function(filePath) {
        var fileName = filePath.split('/').pop().split('.')[0]
        var fileData = require('./' + filePath)
        config[fileName] = fileData
    })
    grunt.initConfig(config)
}
```

fork icon1
star icon3
watch icon3

+ 3 other calls in file

35
36
37
38
39
40
41
42
43
44
    grunt.registerTask(taskName, task.description, taskRunner);
  });
};

module.exports = function() {
  grunt.initConfig({
    pkg: readPackage()
  });

  grunt.loadNpmTasks('grunt-contrib-watch');
fork icon0
star icon0
watch icon20