Cable-Desktop/Gruntfile.js
lilia 508c59e05c Rename bower_components
To components. Because tab-completion works better when there aren't two
things starting with bower, and shorter names are nicer to deal with in
general.
2014-10-30 16:53:08 -07:00

21 lines
516 B
JavaScript

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']);
};