From cae46e9efe8c303c9b23cce57174908ab64cd44a Mon Sep 17 00:00:00 2001 From: Sebastian Gierlinger Date: Wed, 23 Sep 2015 15:21:11 +0200 Subject: [PATCH] Optimize release dependencies no issue - added a new grunt task for npm dedupe - added shell:dedupe to realease task --- Gruntfile.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index 7a1a772da4..de00ce7eb6 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -351,6 +351,10 @@ var _ = require('lodash'), command: 'npm shrinkwrap' }, + dedupe: { + command: 'npm dedupe' + }, + csscombfix: { command: path.resolve(cwd + '/node_modules/.bin/csscomb -c core/client/app/styles/csscomb.json -v core/client/app/styles') }, @@ -926,7 +930,7 @@ var _ = require('lodash'), ' - Copy files to release-folder/#/#{version} directory\n' + ' - Clean out unnecessary files (travis, .git*, etc)\n' + ' - Zip files in release-folder to dist-folder/#{version} directory', - ['init', 'shell:ember:prod', 'clean:release', 'shell:shrinkwrap', 'copy:release', 'compress:release']); + ['init', 'shell:ember:prod', 'clean:release', 'shell:dedupe', 'shell:shrinkwrap', 'copy:release', 'compress:release']); }; module.exports = configureGrunt;