Skip to content

Commit

Permalink
Remove some unnecessary dependency files to reduce release size
Browse files Browse the repository at this point in the history
  • Loading branch information
flakas committed Nov 28, 2021
1 parent d63d426 commit f819444
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ module.exports = function (grunt) {
},
git_checkout: {
command: 'git checkout-index -a -f --prefix=build/'
},
clean_build_dependencies: {
command: 'rm -R build/vendor/redux-framework/redux-framework/*.json build/vendor/redux-framework/redux-framework/*.lock build/vendor/redux-framework/redux-framework/sample'
}
},
clean: {
Expand Down Expand Up @@ -221,7 +224,7 @@ module.exports = function (grunt) {
grunt.registerTask('pre_vcs', ['shell:composer', 'version_number', 'copy', 'copyto:vendor', 'compress']);
grunt.registerTask('do_git', [/*'gitadd',*/ 'gitcommit', 'gittag', 'gitpush']);

grunt.registerTask('just_build', ['clean_pre_build', 'shell:composer', 'makepot', 'potomo', 'copy', 'copyto:vendor', 'assert-valid-copy', 'compress']);
grunt.registerTask('just_build', ['clean_pre_build', 'shell:composer', 'makepot', 'potomo', 'copy', 'copyto:vendor', 'shell:clean_build_dependencies', 'assert-valid-copy', 'compress']);
grunt.registerTask('release', ['clean_pre_build', 'pre_vcs', 'do_git', 'github-release', 'clean:post_build']);
grunt.registerTask('compilecss', ['less']);
};

0 comments on commit f819444

Please sign in to comment.