aboutsummaryrefslogtreecommitdiffstats
path: root/library/moment/tasks/component.js
blob: f9398aead0f47d25c84b3eacdbc62db1b31a17f4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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');
    });
};