UNPKG

htmlnano

Version:

Modular HTML minifier, built on top of the PostHTML

186 lines (185 loc) 4.77 kB
{ "name": "htmlnano", "version": "3.4.0", "description": "Modular HTML minifier, built on top of the PostHTML", "author": "Kirill Maltsev <maltsevkirill@gmail.com>", "license": "MIT", "scripts": { "clean": "rimraf dist coverage", "build": "npm run clean && bunchee", "postbuild": "chmod +x dist/bin.js", "compile": "npm run build", "release": "node scripts/release.js", "lint:eslint": "eslint --fix .", "lint:duplicates": "jscpd", "lint:knip": "knip", "lint": "npm run lint:eslint && npm run lint:duplicates && npm run lint:knip", "test:types": "tsc --noEmit -p tsconfig.typecheck.json", "test:package": "npm run compile && publint && attw --pack .", "test:mocha": "mocha --timeout 5000 --require @swc-node/register --recursive --ignore 'test/typecheck/**/*.ts' --check-leaks --globals addresses 'test/**/*.ts'", "pretest": "npm run lint && npm run compile && npm run test:types", "test": "c8 -r text -r html npm run test:mocha", "posttest": "c8 check-coverage --lines 85 --branches 75 --per-file", "prepare": "npm run compile" }, "files": [ "dist" ], "main": "./dist/index.js", "module": "./dist/index.mjs", "bin": "./dist/bin.js", "exports": { "./helpers": { "import": { "types": "./dist/helpers.d.mts", "default": "./dist/helpers.mjs" }, "require": { "types": "./dist/helpers.d.ts", "default": "./dist/helpers.js" } }, ".": { "import": { "types": "./dist/index.d.mts", "default": "./dist/index.mjs" }, "require": { "types": "./dist/index.d.ts", "default": "./dist/index.js" } }, "./presets/ampSafe": { "import": { "types": "./dist/presets/ampSafe.d.mts", "default": "./dist/presets/ampSafe.mjs" }, "require": { "types": "./dist/presets/ampSafe.d.ts", "default": "./dist/presets/ampSafe.js" } }, "./presets/max": { "import": { "types": "./dist/presets/max.d.mts", "default": "./dist/presets/max.mjs" }, "require": { "types": "./dist/presets/max.d.ts", "default": "./dist/presets/max.js" } }, "./presets/safe": { "import": { "types": "./dist/presets/safe.d.mts", "default": "./dist/presets/safe.mjs" }, "require": { "types": "./dist/presets/safe.d.ts", "default": "./dist/presets/safe.js" } } }, "keywords": [ "posthtml", "posthtml-plugin", "html", "postproccessor", "minifier" ], "dependencies": { "@types/relateurl": "^0.2.33", "commander": "^15.0.0", "cosmiconfig": "^9.0.0", "posthtml": "^0.16.5", "tinyglobby": "^0.2.17" }, "devDependencies": { "@arethetypeswrong/cli": "^0.18.4", "@eslint/js": "^10.0.1", "@stylistic/eslint-plugin": "^5.3.1", "@swc-node/register": "^1.10.10", "@types/mocha": "^10.0.10", "@types/node": "^26.0.0", "bunchee": "^6.5.1", "c8": "^11.0.0", "cssnano": "^8.0.0", "eslint": "^10.2.0", "eslint-config-flat-gitignore": "^2.3.0", "eslint-plugin-import-x": "^4.16.2", "eslint-plugin-unused-imports": "^4.4.1", "expect": "^30.1.1", "fast-check": "^4.8.0", "globals": "^17.0.0", "jscpd": "^5.0.5", "knip": "^6.0.2", "mocha": "^11.0.1", "postcss": "^8.3.11", "posthtml-parser": "^0.12.1", "posthtml-render": "^3.0.0", "publint": "^0.3.21", "purgecss": "^8.0.0", "relateurl": "^0.2.7", "rimraf": "^6.0.0", "srcset": "^5.0.1", "svgo": "^4.0.0", "terser": "^5.21.0", "typescript": "^6.0.2", "typescript-eslint": "^8.58.1", "uncss": "^0.17.3" }, "peerDependencies": { "cssnano": "^7.0.0 || ^8.0.0", "postcss": "^8.3.11", "purgecss": "^8.0.0", "relateurl": "^0.2.7", "srcset": "^5.0.1", "svgo": "^4.0.0", "terser": "^5.21.0", "uncss": "^0.17.3" }, "peerDependenciesMeta": { "cssnano": { "optional": true }, "postcss": { "optional": true }, "purgecss": { "optional": true }, "relateurl": { "optional": true }, "srcset": { "optional": true }, "svgo": { "optional": true }, "terser": { "optional": true }, "uncss": { "optional": true } }, "c8": { "exclude": [ "dist/**/*.js", "dist/**/*.cjs", "test/**" ] }, "overrides": { "yargs": "^18.0.0" }, "repository": { "type": "git", "url": "git://github.com/maltsev/htmlnano.git" }, "bugs": { "url": "https://github.com/maltsev/htmlnano/issues" }, "homepage": "https://github.com/maltsev/htmlnano" }