diff options
| author | XhmikosR <[email protected]> | 2014-12-02 13:50:20 +0200 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2014-12-09 07:53:11 +0200 |
| commit | 71f6dd25fc30c52c93fdb90fd6cb145593cdf2ee (patch) | |
| tree | fce2d7f06f12775d104eacfa2d7a810860db66dc /Gruntfile.js | |
| parent | f932eaa525aab1970172043e6da95cd01717f830 (diff) | |
| download | bootstrap-71f6dd25fc30c52c93fdb90fd6cb145593cdf2ee.tar.xz bootstrap-71f6dd25fc30c52c93fdb90fd6cb145593cdf2ee.zip | |
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 cefef94d5..9cd42e9c8 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. |
