Merge pull request #5862 from sebgie/npm-dedupe

Optimize release dependencies
This commit is contained in:
Hannah Wolfe 2015-09-23 17:24:42 +01:00
commit c89459a7d8

View File

@ -351,6 +351,10 @@ var _ = require('lodash'),
command: 'npm shrinkwrap' command: 'npm shrinkwrap'
}, },
dedupe: {
command: 'npm dedupe'
},
csscombfix: { csscombfix: {
command: path.resolve(cwd + '/node_modules/.bin/csscomb -c core/client/app/styles/csscomb.json -v core/client/app/styles') 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' + ' - Copy files to release-folder/#/#{version} directory\n' +
' - Clean out unnecessary files (travis, .git*, etc)\n' + ' - Clean out unnecessary files (travis, .git*, etc)\n' +
' - Zip files in release-folder to dist-folder/#{version} directory', ' - 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; module.exports = configureGrunt;