Cable-Desktop/Gruntfile.js

22 lines
516 B
JavaScript
Raw Normal View History

module.exports = function(grunt) {
// build the concat config from the preen config
var components = [];
for (component in grunt.file.readJSON('bower.json').preen) {
components.push('components/' + component + '/**/*.js');
}
grunt.initConfig({
concat: {
components: {
src: components,
dest: 'js/components.js',
},
},
});
grunt.loadNpmTasks('grunt-preen');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.registerTask('default', ['preen', 'concat']);
};