You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
351 B
11 lines
351 B
7 years ago
|
module.exports = function (grunt) {
|
||
|
grunt.registerTask('component', function () {
|
||
|
var config = JSON.parse(grunt.file.read('component.json'));
|
||
|
|
||
|
config.files = grunt.file.expand('locale/*.js');
|
||
|
config.files.unshift('moment.js');
|
||
|
|
||
|
grunt.file.write('component.json', JSON.stringify(config, true, 2) + '\n');
|
||
|
});
|
||
|
};
|