diff options
author | XhmikosR <xhmikosr@gmail.com> | 2014-12-02 14:50:20 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2014-12-09 08:53:11 +0300 |
commit | 71f6dd25fc30c52c93fdb90fd6cb145593cdf2ee (patch) | |
tree | fce2d7f06f12775d104eacfa2d7a810860db66dc /Gruntfile.js | |
parent | f932eaa525aab1970172043e6da95cd01717f830 (diff) |
Add grunt-contrib-compress.
Now, the zip file is created when running `grunt prep-release`.
[ci skip]
Diffstat (limited to 'Gruntfile.js')
-rw-r--r-- | Gruntfile.js | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/Gruntfile.js b/Gruntfile.js index cefef94d51..9cd42e9c80 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -382,7 +382,27 @@ module.exports = function (grunt) { npmUpdate: { command: 'npm update' } + }, + + compress: { + main: { + options: { + archive: 'bootstrap-<%= pkg.version %>-dist.zip', + mode: 'zip', + level: 9, + pretty: true + }, + files: [ + { + expand: true, + cwd: 'dist/', + src: ['**'], + dest: 'bootstrap-<%= pkg.version %>-dist' + } + ] + } } + }); @@ -465,7 +485,7 @@ module.exports = function (grunt) { grunt.registerTask('lint-docs-js', ['jshint:assets', 'jscs:assets']); grunt.registerTask('docs', ['docs-css', 'lint-docs-css', 'docs-js', 'lint-docs-js', 'clean:docs', 'copy:docs', 'build-customizer']); - grunt.registerTask('docs-github', ['jekyll:github']); + grunt.registerTask('prep-release', ['jekyll:github', 'compress']); // Task for updating the cached npm packages used by the Travis build (which are controlled by test-infra/npm-shrinkwrap.json). // This task should be run and the updated file should be committed whenever Bootstrap's dependencies change. |