aboutsummaryrefslogtreecommitdiff
path: root/Gruntfile.js
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2014-12-02 13:50:20 +0200
committerXhmikosR <[email protected]>2014-12-09 07:53:11 +0200
commit71f6dd25fc30c52c93fdb90fd6cb145593cdf2ee (patch)
treefce2d7f06f12775d104eacfa2d7a810860db66dc /Gruntfile.js
parentf932eaa525aab1970172043e6da95cd01717f830 (diff)
downloadbootstrap-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.js22
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.