grunt-purgecss 4.0.2 → 4.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,11 +1,5 @@
1
1
  # grunt-purgecss
2
2
 
3
- [![Build Status](https://travis-ci.org/FullHuman/grunt-purgecss.svg?branch=master)](https://travis-ci.org/FullHuman/purgecss)
4
- [![CircleCi](https://circleci.com/gh/FullHuman/grunt-purgecss/tree/master.svg?style=shield)]()
5
- [![dependencies Status](https://david-dm.org/fullhuman/grunt-purgecss/status.svg)](https://david-dm.org/fullhuman/grunt-purgecss)
6
- [![devDependencies Status](https://david-dm.org/fullhuman/grunt-purgecss/dev-status.svg)](https://david-dm.org/fullhuman/grunt-purgecss?type=dev)
7
- [![Codacy Badge](https://api.codacy.com/project/badge/Grade/7710684c644d4f7cb725dc10a2a5953f)](https://www.codacy.com/app/FullHuman/grunt-purgecss?utm_source=github.com&utm_medium=referral&utm_content=FullHuman/grunt-purgecss&utm_campaign=Badge_Grade)
8
- [![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)
9
3
  [![npm](https://img.shields.io/npm/v/grunt-purgecss.svg)](https://www.npmjs.com/package/grunt-purgecss)
10
4
  [![license](https://img.shields.io/github/license/fullhuman/grunt-purgecss.svg)]()
11
5
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "grunt-purgecss",
3
- "version": "4.0.2",
3
+ "version": "4.1.2",
4
4
  "description": "Grunt plugin for PurgeCSS",
5
5
  "author": "Ffloriel",
6
6
  "homepage": "https://purgecss.com",
@@ -30,14 +30,18 @@
30
30
  "test": "echo \"Error: run tests from root\" && exit 1"
31
31
  },
32
32
  "dependencies": {
33
- "purgecss": "^4.0.2"
33
+ "purgecss": "^4.1.2"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@types/grunt": "^0.4.25",
37
- "grunt": "~1.3.0"
37
+ "grunt": "~1.4.1"
38
38
  },
39
39
  "bugs": {
40
40
  "url": "https://github.com/FullHuman/purgecss/issues"
41
41
  },
42
- "gitHead": "d05d119a44c085d4bc5b1421dab8dd9c12b01e2d"
42
+ "publishConfig": {
43
+ "access": "public",
44
+ "registry": "https://registry.npmjs.org/"
45
+ },
46
+ "gitHead": "1329d96b0ad17e9b2b4d604d1a689856da176a59"
43
47
  }
package/tasks/purgecss.js CHANGED
@@ -1 +1 @@
1
- "use strict";var t=require("purgecss");function e(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var n=e(t);function r(t,e=[]){return e.filter((e=>!!t.file.exists(e)||(t.log.warn(`Source file "${e}" not found.`),!1)))}module.exports=function(e){e.registerMultiTask("purgecss","Grunt plugin for PurgeCSS",(function(){const s=this.async(),i=this.options(t.defaultOptions);for(const t of this.files){const o=r(e,t.src);(new n.default).purge({...i,css:o}).then((n=>{if(void 0===t.dest)throw new Error("Destination file not found");e.file.write(t.dest,n[0].css),e.log.writeln(`File "${t.dest}" created.`),s()})).catch((()=>{s(!1)}))}}))};
1
+ "use strict";var t=require("purgecss");function e(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var s=e(t);function n(t,e=[]){return e.filter((e=>!!t.file.exists(e)||(t.log.warn(`Source file "${e}" not found.`),!1)))}module.exports=function(e){e.registerMultiTask("purgecss","Grunt plugin for PurgeCSS",(function(){const r=this.async(),i=this.options(t.defaultOptions),o=[];for(const t of this.files){const r=n(e,t.src),u=(new s.default).purge({...i,css:r}).then((s=>{if(void 0===t.dest)throw new Error("Destination file not found");e.file.write(t.dest,s[0].css),e.log.writeln(`File "${t.dest}" created.`)}));o.push(u)}Promise.all(o).then((()=>{r()})).catch((()=>r(!1)))}))};