From: Iskren Chernev Date: Fri, 5 Sep 2014 07:48:46 +0000 (-0700) Subject: Remove unnecessary package.json processing step during build X-Git-Tag: 2.8.3~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bae02f7bcc5eaec7df6c26e8dd7f6f3bd301a7cd;p=thirdparty%2Fmoment.git Remove unnecessary package.json processing step during build --- diff --git a/Gruntfile.js b/Gruntfile.js index 8cf93c467..490f4ce8e 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -225,6 +225,6 @@ module.exports = function (grunt) { // Task to be run when releasing a new version grunt.registerTask('release', [ 'jshint', 'nodeunit', 'concat', 'embedLocales', - 'component', 'package_json', 'uglify:main' + 'component', 'uglify:main' ]); }; diff --git a/tasks/package_json.js b/tasks/package_json.js deleted file mode 100644 index 9f3d1df29..000000000 --- a/tasks/package_json.js +++ /dev/null @@ -1,9 +0,0 @@ -module.exports = function (grunt) { - grunt.registerTask('package_json', function () { - var config = JSON.parse(grunt.file.read('package.json')); - - config.spm.output = grunt.file.expand('locale/*.js'); - - grunt.file.write('package.json', JSON.stringify(config, true, 4) + '\n'); - }); -}