mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-27 18:52:14 +03:00
🛠 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:
parent
00757eb2b6
commit
470000242d
@ -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']);
|
||||
}
|
||||
);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user