aboutsummaryrefslogtreecommitdiffstats
path: root/library/moment/tasks/component.js
diff options
context:
space:
mode:
Diffstat (limited to 'library/moment/tasks/component.js')
-rw-r--r--library/moment/tasks/component.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/library/moment/tasks/component.js b/library/moment/tasks/component.js
new file mode 100644
index 000000000..f9398aead
--- /dev/null
+++ b/library/moment/tasks/component.js
@@ -0,0 +1,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');
+ });
+};