From f754ca849f72916cd64804f8ac313862ad6924dc Mon Sep 17 00:00:00 2001 From: Dominik Wilkowski Date: Mon, 25 Jun 2018 11:06:48 +1000 Subject: [PATCH] Added test for sub-folders, bumped version Signed-off-by: Dominik Wilkowski --- Gruntfile.js | 12 ++++++++++++ README.md | 16 ++++++++++++++++ package.json | 2 +- 3 files changed, 29 insertions(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index 526e69f..65f0688 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -64,6 +64,18 @@ module.exports = function( grunt ) { }], }, + // Default options with multiple files converting to multiple files in wildcard folder + multiple_files5: { + options: {}, + files: [{ + expand: true, + cwd: "test/css/", + src: "**/*.css", + dest: "test/temp/", + ext: ".min.css", + }], + }, + // Custom options custom_options: { options: { diff --git a/README.md b/README.md index 301110d..d3c8590 100644 --- a/README.md +++ b/README.md @@ -128,6 +128,21 @@ multiple_files4: { }, ``` +Purge a folder as is into multiple files while keeping sub-folder intact: + +```js +multiple_files5: { + options: {}, + files: [{ + expand: true, + cwd: "css/", + src: "**/*.css", // all *.css files in the css/ and it's sub-folders will be purged + dest: "output/", //and placed into the output folder + ext: ".min.css", + }], +}, +``` + Custom options: ```js @@ -149,6 +164,7 @@ In lieu of a formal styleguide, take care to maintain the existing coding style. ## Release History +* 1.1.0 - Mad task async * 1.0.2 - Fixed to major `css-purge` version * 1.0.1 - Reduced dependencies * 1.0.0 - Updated to CSS-Purge 3.0.0 diff --git a/package.json b/package.json index ca82de6..28a6ac9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "grunt-css-purge", - "version": "1.0.2", + "version": "1.1.0", "description": "Grunt plugin to run CSS-Purge", "homepage": "https://github.com/dominikwilkowski/grunt-css-purge", "repository": {