From bae02f7bcc5eaec7df6c26e8dd7f6f3bd301a7cd Mon Sep 17 00:00:00 2001 From: Iskren Chernev Date: Fri, 5 Sep 2014 00:48:46 -0700 Subject: [PATCH] Remove unnecessary package.json processing step during build --- Gruntfile.js | 2 +- tasks/package_json.js | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) delete mode 100644 tasks/package_json.js 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'); - }); -} -- 2.47.2