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()); };
9
301
0
+ 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) } ```
1
3
3
+ 3 other calls in file
GitHub: wrdsb/canvas-lms
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');
0
0
20
grunt.file is the most popular function in grunt (372 examples)