Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@gmail.com>2014-12-02 14:50:20 +0300
committerXhmikosR <xhmikosr@gmail.com>2014-12-09 08:53:11 +0300
commit71f6dd25fc30c52c93fdb90fd6cb145593cdf2ee (patch)
treefce2d7f06f12775d104eacfa2d7a810860db66dc /Gruntfile.js
parentf932eaa525aab1970172043e6da95cd01717f830 (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.js22
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.