🛠 Make it easy to test preparing dependencies (#7335)

no issue

- as part of a release, we run npm dedupe, npm prune and npm shrinkwrap. In certain cases this can change which dependencies are used
- with this change `grunt deps` will run those 3 tasks so it's easier to test what happens
This commit is contained in:
Hannah Wolfe 2016-09-14 14:57:50 +01:00 committed by Katharina Irrgang
parent 00757eb2b6
commit 470000242d

View File

@ -704,6 +704,10 @@ var overrides = require('./core/server/overrides'),
grunt.registerTask('prod', 'Build JS & templates for production',
['subgrunt:prod', 'uglify:prod', 'master-warn']);
grunt.registerTask('deps', 'Prepare dependencies',
['shell:dedupe', 'shell:prune', 'shell:shrinkwrap']
);
// ### Live reload
// `grunt dev` - build assets on the fly whilst developing
//
@ -814,7 +818,7 @@ var overrides = require('./core/server/overrides'),
dest: '<%= paths.releaseBuild %>/'
});
grunt.task.run(['init', 'prod', 'clean:release', 'shell:dedupe', 'shell:prune', 'shell:shrinkwrap', 'copy:release', 'compress:release']);
grunt.task.run(['init', 'prod', 'clean:release', 'deps', 'copy:release', 'compress:release']);
}
);
};