From: Jacob Wejendorp Date: Tue, 8 Oct 2013 13:04:36 +0000 (+0200) Subject: Fixes component.json generator X-Git-Tag: 2.4.0~19^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ef409a442c0f6c83f89e71108dfb696f4c4a9ea;p=thirdparty%2Fmoment.git Fixes component.json generator --- diff --git a/component.json b/component.json index b81851901..acecf2749 100644 --- a/component.json +++ b/component.json @@ -65,5 +65,8 @@ "lang/vn.js", "lang/zh-cn.js", "lang/zh-tw.js" + ], + "scripts": [ + "moment.js" ] } \ No newline at end of file diff --git a/tasks/component.js b/tasks/component.js index bdf4fed38..973391c17 100644 --- a/tasks/component.js +++ b/tasks/component.js @@ -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)); });