From 01f273789179e8a811fdb7ecc29c7737f0490937 Mon Sep 17 00:00:00 2001 From: tonyc726 Date: Tue, 23 Jul 2019 22:44:08 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=8D=87=E7=BA=A7=E5=B7=A5=E7=A8=8B?= =?UTF-8?q?=E4=BE=9D=E8=B5=96=EF=BC=8C=E5=8D=87=E7=BA=A7html-minifier?= =?UTF-8?q?=E8=87=B3v4=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 +- package-lock.json | 301 ++++++++++++++++++++++++++++++++++------------ package.json | 6 +- 3 files changed, 227 insertions(+), 84 deletions(-) diff --git a/README.md b/README.md index 949791d..dcf4c3e 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ -# fis3-deploy-html-minifier -- A fis3 plugin to compress file with html-minifier on deploy stage. +# fis3-deploy-html-minifier + +A fis3 plugin to compress file with html-minifier on deploy stage. [![npm](https://img.shields.io/npm/v/fis3-deploy-html-minifier.svg?style=flat-square)](https://github.com/tonyc726/fis3-deploy-html-minifier) [![Build Status](https://travis-ci.org/tonyc726/fis3-deploy-html-minifier.svg?style=flat-square&branch=master)](https://travis-ci.org/tonyc726/fis3-deploy-html-minifier) diff --git a/package-lock.json b/package-lock.json index f4c77d1..3a5d9db 100644 --- a/package-lock.json +++ b/package-lock.json @@ -930,6 +930,75 @@ } } }, + "@commitlint/execute-rule": { + "version": "8.1.0", + "resolved": "https://registry.npm.taobao.org/@commitlint/execute-rule/download/@commitlint/execute-rule-8.1.0.tgz", + "integrity": "sha1-6Dhr0INrPc3UHrudWQS760R+RxU=", + "dev": true, + "optional": true + }, + "@commitlint/load": { + "version": "8.1.0", + "resolved": "https://registry.npm.taobao.org/@commitlint/load/download/@commitlint/load-8.1.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40commitlint%2Fload%2Fdownload%2F%40commitlint%2Fload-8.1.0.tgz", + "integrity": "sha1-Y7cq5buRUrj6WxfFQoBTAyqaScg=", + "dev": true, + "optional": true, + "requires": { + "@commitlint/execute-rule": "^8.1.0", + "@commitlint/resolve-extends": "^8.1.0", + "babel-runtime": "^6.23.0", + "chalk": "2.4.2", + "cosmiconfig": "^5.2.0", + "lodash": "4.17.14", + "resolve-from": "^5.0.0" + }, + "dependencies": { + "lodash": { + "version": "4.17.14", + "resolved": "https://registry.npm.taobao.org/lodash/download/lodash-4.17.14.tgz", + "integrity": "sha1-nOSHrmbJYlT+ILWZ8htoFgKAeLo=", + "dev": true, + "optional": true + }, + "resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npm.taobao.org/resolve-from/download/resolve-from-5.0.0.tgz", + "integrity": "sha1-w1IlhD3493bfIcV1V7wIfp39/Gk=", + "dev": true, + "optional": true + } + } + }, + "@commitlint/resolve-extends": { + "version": "8.1.0", + "resolved": "https://registry.npm.taobao.org/@commitlint/resolve-extends/download/@commitlint/resolve-extends-8.1.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40commitlint%2Fresolve-extends%2Fdownload%2F%40commitlint%2Fresolve-extends-8.1.0.tgz", + "integrity": "sha1-7Wfy7khBYKyOAHi65S8XJiUVdHI=", + "dev": true, + "optional": true, + "requires": { + "@types/node": "^12.0.2", + "import-fresh": "^3.0.0", + "lodash": "4.17.14", + "resolve-from": "^5.0.0", + "resolve-global": "^1.0.0" + }, + "dependencies": { + "lodash": { + "version": "4.17.14", + "resolved": "https://registry.npm.taobao.org/lodash/download/lodash-4.17.14.tgz", + "integrity": "sha1-nOSHrmbJYlT+ILWZ8htoFgKAeLo=", + "dev": true, + "optional": true + }, + "resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npm.taobao.org/resolve-from/download/resolve-from-5.0.0.tgz", + "integrity": "sha1-w1IlhD3493bfIcV1V7wIfp39/Gk=", + "dev": true, + "optional": true + } + } + }, "@jest/console": { "version": "24.7.1", "resolved": "https://registry.npm.taobao.org/@jest/console/download/@jest/console-24.7.1.tgz", @@ -2190,6 +2259,17 @@ "babel-plugin-jest-hoist": "^24.6.0" } }, + "babel-runtime": { + "version": "6.26.0", + "resolved": "https://registry.npm.taobao.org/babel-runtime/download/babel-runtime-6.26.0.tgz", + "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", + "dev": true, + "optional": true, + "requires": { + "core-js": "^2.4.0", + "regenerator-runtime": "^0.11.0" + } + }, "balanced-match": { "version": "1.0.0", "resolved": "https://registry.npm.taobao.org/balanced-match/download/balanced-match-1.0.0.tgz", @@ -2397,9 +2477,9 @@ } }, "cachedir": { - "version": "2.1.0", - "resolved": "https://registry.npm.taobao.org/cachedir/download/cachedir-2.1.0.tgz", - "integrity": "sha1-tEjDK0TNnAzWzkxBn6WzwRLAIZE=", + "version": "2.2.0", + "resolved": "https://registry.npm.taobao.org/cachedir/download/cachedir-2.2.0.tgz", + "integrity": "sha1-Ga+kMF4F155BdWaILgyPlg9i/w4=", "dev": true }, "caller-callsite": { @@ -2722,68 +2802,63 @@ "commander": { "version": "2.20.0", "resolved": "https://registry.npm.taobao.org/commander/download/commander-2.20.0.tgz", - "integrity": "sha1-1YuytcHuj4ew00ACfp6U4iLFpCI=", - "dev": true + "integrity": "sha1-1YuytcHuj4ew00ACfp6U4iLFpCI=" }, "commitizen": { - "version": "3.1.2", - "resolved": "https://registry.npm.taobao.org/commitizen/download/commitizen-3.1.2.tgz", - "integrity": "sha1-Kd3Ys5OWkj6QWKDkhAy+7xRCkL4=", + "version": "4.0.3", + "resolved": "https://registry.npm.taobao.org/commitizen/download/commitizen-4.0.3.tgz", + "integrity": "sha1-wZpCEyV9BSW4UTni8223zDtPba4=", "dev": true, "requires": { - "cachedir": "2.1.0", - "cz-conventional-changelog": "2.1.0", + "cachedir": "2.2.0", + "cz-conventional-changelog": "3.0.1", "dedent": "0.7.0", - "detect-indent": "^5.0.0", + "detect-indent": "6.0.0", "find-node-modules": "2.0.0", "find-root": "1.1.0", - "fs-extra": "^7.0.0", - "glob": "7.1.3", - "inquirer": "6.2.0", + "fs-extra": "8.1.0", + "glob": "7.1.4", + "inquirer": "6.5.0", "is-utf8": "^0.2.1", - "lodash": "4.17.14", + "lodash": "4.17.15", "minimist": "1.2.0", "shelljs": "0.7.6", - "strip-bom": "3.0.0", - "strip-json-comments": "2.0.1" + "strip-bom": "4.0.0", + "strip-json-comments": "3.0.1" }, "dependencies": { - "fs-extra": { - "version": "7.0.1", - "resolved": "https://registry.npm.taobao.org/fs-extra/download/fs-extra-7.0.1.tgz", - "integrity": "sha1-TxicRKoSO4lfcigE9V6iPq3DSOk=", - "dev": true, - "requires": { - "graceful-fs": "^4.1.2", - "jsonfile": "^4.0.0", - "universalify": "^0.1.0" - } - }, - "glob": { - "version": "7.1.3", - "resolved": "https://registry.npm.taobao.org/glob/download/glob-7.1.3.tgz", - "integrity": "sha1-OWCDLT8VdBCDQtr9OmezMsCWnfE=", + "cz-conventional-changelog": { + "version": "3.0.1", + "resolved": "https://registry.npm.taobao.org/cz-conventional-changelog/download/cz-conventional-changelog-3.0.1.tgz", + "integrity": "sha1-sfIHrgUDVeetplqtXFLp3j0Mjls=", "dev": true, "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" + "@commitlint/load": ">6.1.1", + "chalk": "^2.4.1", + "conventional-commit-types": "^2.0.0", + "lodash.map": "^4.5.1", + "longest": "^2.0.1", + "right-pad": "^1.0.1", + "word-wrap": "^1.0.3" } }, - "lodash": { - "version": "4.17.14", - "resolved": "https://registry.npm.taobao.org/lodash/download/lodash-4.17.14.tgz", - "integrity": "sha1-nOSHrmbJYlT+ILWZ8htoFgKAeLo=", - "dev": true - }, "minimist": { "version": "1.2.0", "resolved": "https://registry.npm.taobao.org/minimist/download/minimist-1.2.0.tgz", "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", "dev": true + }, + "strip-bom": { + "version": "4.0.0", + "resolved": "https://registry.npm.taobao.org/strip-bom/download/strip-bom-4.0.0.tgz", + "integrity": "sha1-nDUFwdtFvO3KPZz3oW9cWqOQGHg=", + "dev": true + }, + "strip-json-comments": { + "version": "3.0.1", + "resolved": "https://registry.npm.taobao.org/strip-json-comments/download/strip-json-comments-3.0.1.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fstrip-json-comments%2Fdownload%2Fstrip-json-comments-3.0.1.tgz", + "integrity": "sha1-hXE5dakfuHvxswXMp3OV5A0qZKc=", + "dev": true } } }, @@ -2895,6 +2970,13 @@ "integrity": "sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=", "dev": true }, + "core-js": { + "version": "2.6.9", + "resolved": "https://registry.npm.taobao.org/core-js/download/core-js-2.6.9.tgz", + "integrity": "sha1-a0shRiDINBUuF5Mjcn/Bl0GwhPI=", + "dev": true, + "optional": true + }, "core-js-compat": { "version": "3.1.4", "resolved": "https://registry.npm.taobao.org/core-js-compat/download/core-js-compat-3.1.4.tgz", @@ -2998,14 +3080,17 @@ } }, "cz-conventional-changelog": { - "version": "2.1.0", - "resolved": "https://registry.npm.taobao.org/cz-conventional-changelog/download/cz-conventional-changelog-2.1.0.tgz", - "integrity": "sha1-L0vHOQ4yROTfKT5ro1Hkx0Cnx2Q=", + "version": "3.0.2", + "resolved": "https://registry.npm.taobao.org/cz-conventional-changelog/download/cz-conventional-changelog-3.0.2.tgz", + "integrity": "sha1-9rmkBhd6sH+aOgh+BhA6BFs3YmA=", "dev": true, "requires": { + "@commitlint/load": ">6.1.1", + "chalk": "^2.4.1", + "commitizen": "^4.0.3", "conventional-commit-types": "^2.0.0", "lodash.map": "^4.5.1", - "longest": "^1.0.1", + "longest": "^2.0.1", "right-pad": "^1.0.1", "word-wrap": "^1.0.3" } @@ -3240,9 +3325,9 @@ "dev": true }, "detect-indent": { - "version": "5.0.0", - "resolved": "https://registry.npm.taobao.org/detect-indent/download/detect-indent-5.0.0.tgz", - "integrity": "sha1-OHHMCmoALow+Wzz38zYmRnXwa50=", + "version": "6.0.0", + "resolved": "https://registry.npm.taobao.org/detect-indent/download/detect-indent-6.0.0.tgz", + "integrity": "sha1-Cr0PVJ9p/GZZolT+lnhhhrb1KP0=", "dev": true }, "detect-newline": { @@ -4988,6 +5073,16 @@ } } }, + "global-dirs": { + "version": "0.1.1", + "resolved": "https://registry.npm.taobao.org/global-dirs/download/global-dirs-0.1.1.tgz", + "integrity": "sha1-sxnA3UYH81PzvpzKTHL8FIxJ9EU=", + "dev": true, + "optional": true, + "requires": { + "ini": "^1.3.4" + } + }, "global-modules": { "version": "1.0.0", "resolved": "https://registry.npm.taobao.org/global-modules/download/global-modules-1.0.0.tgz", @@ -5196,23 +5291,32 @@ } }, "html-minifier": { - "version": "3.5.21", - "resolved": "https://registry.npm.taobao.org/html-minifier/download/html-minifier-3.5.21.tgz", - "integrity": "sha1-0AQOBUcw41TbAIRjWTGUAVIS0gw=", - "requires": { - "camel-case": "3.0.x", - "clean-css": "4.2.x", - "commander": "2.17.x", - "he": "1.2.x", - "param-case": "2.1.x", - "relateurl": "0.2.x", - "uglify-js": "3.4.x" + "version": "4.0.0", + "resolved": "https://registry.npm.taobao.org/html-minifier/download/html-minifier-4.0.0.tgz", + "integrity": "sha1-zKmq2LzhF14C4XqMM+RtiYiIn1Y=", + "requires": { + "camel-case": "^3.0.0", + "clean-css": "^4.2.1", + "commander": "^2.19.0", + "he": "^1.2.0", + "param-case": "^2.1.1", + "relateurl": "^0.2.7", + "uglify-js": "^3.5.1" }, "dependencies": { - "commander": { - "version": "2.17.1", - "resolved": "https://registry.npm.taobao.org/commander/download/commander-2.17.1.tgz", - "integrity": "sha1-vXerfebelCBc6sxy8XFtKfIKd78=" + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npm.taobao.org/source-map/download/source-map-0.6.1.tgz", + "integrity": "sha1-dHIq8y6WFOnCh6jQu95IteLxomM=" + }, + "uglify-js": { + "version": "3.6.0", + "resolved": "https://registry.npm.taobao.org/uglify-js/download/uglify-js-3.6.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fuglify-js%2Fdownload%2Fuglify-js-3.6.0.tgz", + "integrity": "sha1-cEaBNFxTqLIHn7bOwpSwXq0kL/U=", + "requires": { + "commander": "~2.20.0", + "source-map": "~0.6.1" + } } } }, @@ -5473,24 +5577,41 @@ "dev": true }, "inquirer": { - "version": "6.2.0", - "resolved": "https://registry.npm.taobao.org/inquirer/download/inquirer-6.2.0.tgz?cache=0&sync_timestamp=1562820422760&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Finquirer%2Fdownload%2Finquirer-6.2.0.tgz", - "integrity": "sha1-Ua3Nd29mE2ncHolIWcJWCiJKvdg=", + "version": "6.5.0", + "resolved": "https://registry.npm.taobao.org/inquirer/download/inquirer-6.5.0.tgz?cache=0&sync_timestamp=1562820422760&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Finquirer%2Fdownload%2Finquirer-6.5.0.tgz", + "integrity": "sha1-IwMxfvyaTqfsLi32+GVptzSsz0I=", "dev": true, "requires": { - "ansi-escapes": "^3.0.0", - "chalk": "^2.0.0", + "ansi-escapes": "^3.2.0", + "chalk": "^2.4.2", "cli-cursor": "^2.1.0", "cli-width": "^2.0.0", - "external-editor": "^3.0.0", + "external-editor": "^3.0.3", "figures": "^2.0.0", - "lodash": "^4.17.10", + "lodash": "^4.17.12", "mute-stream": "0.0.7", "run-async": "^2.2.0", - "rxjs": "^6.1.0", + "rxjs": "^6.4.0", "string-width": "^2.1.0", - "strip-ansi": "^4.0.0", + "strip-ansi": "^5.1.0", "through": "^2.3.6" + }, + "dependencies": { + "ansi-regex": { + "version": "4.1.0", + "resolved": "https://registry.npm.taobao.org/ansi-regex/download/ansi-regex-4.1.0.tgz", + "integrity": "sha1-i5+PCM8ay4Q3Vqg5yox+MWjFGZc=", + "dev": true + }, + "strip-ansi": { + "version": "5.2.0", + "resolved": "https://registry.npm.taobao.org/strip-ansi/download/strip-ansi-5.2.0.tgz", + "integrity": "sha1-jJpTb+tq/JYr36WxBKUJHBrZwK4=", + "dev": true, + "requires": { + "ansi-regex": "^4.1.0" + } + } } }, "interpret": { @@ -6995,9 +7116,9 @@ } }, "longest": { - "version": "1.0.1", - "resolved": "https://registry.npm.taobao.org/longest/download/longest-1.0.1.tgz", - "integrity": "sha1-MKCy2jj3N3DoKUoNIuZiXtd9AJc=", + "version": "2.0.1", + "resolved": "https://registry.npm.taobao.org/longest/download/longest-2.0.1.tgz", + "integrity": "sha1-eB4YMpaqlPbU2RbcM10NF676I/g=", "dev": true }, "loose-envify": { @@ -11846,6 +11967,13 @@ "regenerate": "^1.4.0" } }, + "regenerator-runtime": { + "version": "0.11.1", + "resolved": "https://registry.npm.taobao.org/regenerator-runtime/download/regenerator-runtime-0.11.1.tgz", + "integrity": "sha1-vgWtf5v30i4Fb5cmzuUBf78Z4uk=", + "dev": true, + "optional": true + }, "regenerator-transform": { "version": "0.14.1", "resolved": "https://registry.npm.taobao.org/regenerator-transform/download/regenerator-transform-0.14.1.tgz?cache=0&sync_timestamp=1563549978509&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fregenerator-transform%2Fdownload%2Fregenerator-transform-0.14.1.tgz", @@ -12065,6 +12193,16 @@ "integrity": "sha1-six699nWiBvItuZTM17rywoYh0g=", "dev": true }, + "resolve-global": { + "version": "1.0.0", + "resolved": "https://registry.npm.taobao.org/resolve-global/download/resolve-global-1.0.0.tgz", + "integrity": "sha1-oqed9K8so/Sb93753azTItrRklU=", + "dev": true, + "optional": true, + "requires": { + "global-dirs": "^0.1.1" + } + }, "resolve-url": { "version": "0.2.1", "resolved": "https://registry.npm.taobao.org/resolve-url/download/resolve-url-0.2.1.tgz", @@ -13330,6 +13468,7 @@ "version": "3.4.10", "resolved": "https://registry.npm.taobao.org/uglify-js/download/uglify-js-3.4.10.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fuglify-js%2Fdownload%2Fuglify-js-3.4.10.tgz", "integrity": "sha1-mtlWPY6zrN+404WX0q8dgV9qdV8=", + "dev": true, "requires": { "commander": "~2.19.0", "source-map": "~0.6.1" @@ -13338,12 +13477,14 @@ "commander": { "version": "2.19.0", "resolved": "https://registry.npm.taobao.org/commander/download/commander-2.19.0.tgz", - "integrity": "sha1-9hmKqE5bg8RgVLlN3tv+1e6f8So=" + "integrity": "sha1-9hmKqE5bg8RgVLlN3tv+1e6f8So=", + "dev": true }, "source-map": { "version": "0.6.1", "resolved": "https://registry.npm.taobao.org/source-map/download/source-map-0.6.1.tgz", - "integrity": "sha1-dHIq8y6WFOnCh6jQu95IteLxomM=" + "integrity": "sha1-dHIq8y6WFOnCh6jQu95IteLxomM=", + "dev": true } } }, diff --git a/package.json b/package.json index 56ed1aa..688a6e3 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "semantic-release": "npx semantic-release" }, "dependencies": { - "html-minifier": "^3.5.8", + "html-minifier": "^4.0.0", "lodash": "^4.17.5" }, "devDependencies": { @@ -49,9 +49,9 @@ "babel-jest": "^24.8.0", "babel-plugin-add-module-exports": "^1.0.2", "babel-plugin-lodash": "^3.3.4", - "commitizen": "^3.1.2", + "commitizen": "^4.0.3", "cross-env": "^5.1.4", - "cz-conventional-changelog": "^2.1.0", + "cz-conventional-changelog": "^3.0.2", "eslint": "^6.0.1", "eslint-config-airbnb-base": "^13.2.0", "eslint-config-prettier": "^6.0.0",