From 3c41adf795d9cbe867f49ef1c2d6027039a98019 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Sat, 20 May 2017 13:58:16 +0300 Subject: [PATCH] v1.4.3. --- CHANGELOG | 5 +++++ README.md | 15 ++++++++++++--- docs/compress-options.md | 2 +- docs/compress-overview.md | 2 +- package.json | 2 +- 5 files changed, 20 insertions(+), 6 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 6bee422..2b2af64 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,8 @@ +v1.4.3: + date: 2017-05-20 + changes: + - Update pretty-bytes to v4.0.2. + - Add option to not to create empty archive. v1.4.2: date: 2017-05-20 changes: diff --git a/README.md b/README.md index fd570cd..8c4da37 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# grunt-contrib-compress v1.4.2 [![Build Status: Linux](https://travis-ci.org/gruntjs/grunt-contrib-compress.svg?branch=master)](https://travis-ci.org/gruntjs/grunt-contrib-compress) [![Build Status: Windows](https://ci.appveyor.com/api/projects/status/tiwbi1smm1j8aa5j/branch/master?svg=true)](https://ci.appveyor.com/project/gruntjs/grunt-contrib-compress/branch/master) +# grunt-contrib-compress v1.4.3 [![Build Status: Linux](https://travis-ci.org/gruntjs/grunt-contrib-compress.svg?branch=master)](https://travis-ci.org/gruntjs/grunt-contrib-compress) [![Build Status: Windows](https://ci.appveyor.com/api/projects/status/tiwbi1smm1j8aa5j/branch/master?svg=true)](https://ci.appveyor.com/project/gruntjs/grunt-contrib-compress/branch/master) > Compress files and folders @@ -29,7 +29,7 @@ Task targets, files and options may be specified according to the grunt [Configu Node Libraries Used: [archiver](https://github.com/ctalkington/node-archiver) (for zip/tar) -[zlib](http://nodejs.org/api/zlib.html#zlib_options) (for gzip). +[zlib](https://nodejs.org/api/zlib.html#zlib_options) (for gzip). ### Options #### archive @@ -101,6 +101,14 @@ Default: `false` Pretty print file sizes when logging. +#### createEmptyArchive +Type: `Boolean` +Default: `true` + +This can be used when you don't want to get an empty archive as a result, if there are no files at the specified paths. + +It may be useful, if you don't clearly know if files exist and you don't need an empty archive as a result. + ### File Data The following additional keys may be passed as part of a `dest:src` pair when using an Archiver-backed format. @@ -273,6 +281,7 @@ compress: { ## Release History + * 2017-05-20   v1.4.3   Update pretty-bytes to v4.0.2. Add option to not to create empty archive. * 2017-05-20   v1.4.2   Update archiver to v1.3.0. * 2017-01-20   v1.4.1   Make brotli support optional. * 2017-01-18   v1.4.0   Add support for brotli. @@ -318,4 +327,4 @@ compress: { Task submitted by [Chris Talkington](http://christalkington.com/) -*This file was generated on Sat May 20 2017 00:39:54.* +*This file was generated on Sat May 20 2017 14:05:16.* diff --git a/docs/compress-options.md b/docs/compress-options.md index 78f81eb..7905a23 100644 --- a/docs/compress-options.md +++ b/docs/compress-options.md @@ -70,7 +70,7 @@ Default: `false` Pretty print file sizes when logging. ## createEmptyArchive -Type: `Boolean` +Type: `Boolean` Default: `true` This can be used when you don't want to get an empty archive as a result, if there are no files at the specified paths. diff --git a/docs/compress-overview.md b/docs/compress-overview.md index 6a5d793..8a8b514 100644 --- a/docs/compress-overview.md +++ b/docs/compress-overview.md @@ -2,4 +2,4 @@ Task targets, files and options may be specified according to the grunt [Configu Node Libraries Used: [archiver](https://github.com/ctalkington/node-archiver) (for zip/tar) -[zlib](http://nodejs.org/api/zlib.html#zlib_options) (for gzip). \ No newline at end of file +[zlib](https://nodejs.org/api/zlib.html#zlib_options) (for gzip). \ No newline at end of file diff --git a/package.json b/package.json index b634efb..1c1e66d 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "grunt-contrib-compress", "description": "Compress files and folders", - "version": "1.4.2", + "version": "1.4.3", "author": { "name": "Grunt Team", "url": "http://gruntjs.com/"