diff options
author | zh99998 <zh99998@gmail.com> | 2016-12-26 03:20:11 +0300 |
---|---|---|
committer | Ben Langfeld <ben@langfeld.me> | 2016-12-26 03:20:11 +0300 |
commit | 5631fa18d5ddbba7c68066fb0e5a853888287e8b (patch) | |
tree | a9f4c9e23f159042140ffab1c1a8a3a87ade416f | |
parent | da01cb150ae16f9afcab77e4b2b66d775c766c07 (diff) |
tar.gz release (#496)
* grunt tar release
* compress top directory into tar
-rw-r--r-- | Gruntfile.js | 40 |
1 files changed, 35 insertions, 5 deletions
diff --git a/Gruntfile.js b/Gruntfile.js index 77bfbc6..9629042 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -2,7 +2,7 @@ var localInternConfig = process.env.CANDY_VAGRANT === 'false' ? 'tests/intern.local' : 'tests/intern.vagrant'; -module.exports = function(grunt) { +module.exports = function (grunt) { // Project configuration. grunt.initConfig({ @@ -83,7 +83,7 @@ module.exports = function(grunt) { } }, concat: { - css:{ + css: { src: [ 'bower_components/bootstrap/dist/css/bootstrap.css' ], @@ -91,7 +91,7 @@ module.exports = function(grunt) { } }, cssmin: { - css:{ + css: { src: 'libs.bundle.css', dest: 'libs.min.css' } @@ -213,7 +213,7 @@ module.exports = function(grunt) { } }, compress: { - main: { + zip: { options: { archive: 'candy.zip' }, @@ -242,6 +242,36 @@ module.exports = function(grunt) { dest: './' }, ] + }, + tar: { + options: { + archive: 'candy.tar.gz' + }, + files: [ + { + src: [ + 'example/**', + 'res/**', + 'bower.json', + 'candy.bundle.js', + 'candy.bundle.map', + 'candy.min.js', + 'candy.min.map', + 'CONTRIBUTING.md', + 'CREDITS.md', + 'libs.bundle.css', + 'libs.bundle.js', + 'libs.bundle.map', + 'libs.min.css', + 'libs.min.js', + 'LICENSE', + 'package.json', + 'README.md', + 'res/**', + ], + dest: './candy' + }, + ] } }, 'github-release': { @@ -254,7 +284,7 @@ module.exports = function(grunt) { } }, files: { - src: ['candy.zip'] + src: ['candy.zip', 'candy.tar.gz'] } }, }); |