]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Fixes component.json generator
authorJacob Wejendorp <jacob@wejendorp.dk>
Tue, 8 Oct 2013 13:04:36 +0000 (15:04 +0200)
committerJacob Wejendorp <jacob@wejendorp.dk>
Tue, 8 Oct 2013 13:04:36 +0000 (15:04 +0200)
component.json
tasks/component.js

index b818519017eb99939d0be19e521d6e29052afbc8..acecf2749c1ce09144d59e5e72eedbc2b7d4fc66 100644 (file)
@@ -65,5 +65,8 @@
     "lang/vn.js",
     "lang/zh-cn.js",
     "lang/zh-tw.js"
+  ],
+  "scripts": [
+    "moment.js"
   ]
 }
\ No newline at end of file
index bdf4fed386bc9954aa1bcd106695ee2ee25b1f08..973391c179d90a1e3dfd02da774818fb6bb930c8 100644 (file)
@@ -3,6 +3,8 @@ module.exports = function (grunt) {
         var config = JSON.parse(grunt.file.read('component.json'));
         config.files = grunt.file.expand('lang/*.js');
         config.files.unshift('moment.js');
+        config.scripts = config.scripts || [];
+        config.scripts.unshift('moment.js');
 
         grunt.file.write('component.json', JSON.stringify(config, true, 2));
     });