508c59e05c
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.
21 lines
516 B
JavaScript
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']);
|
|
};
|