2014-06-28 11:12:15 +01:00
|
|
|
{
|
|
|
|
|
"name": "critical",
|
2024-09-23 21:59:46 +02:00
|
|
|
"version": "7.2.1",
|
2014-07-11 15:19:19 +01:00
|
|
|
"description": "Extract & Inline Critical-path CSS from HTML",
|
2014-07-05 10:06:52 +03:00
|
|
|
"author": "Addy Osmani",
|
2014-07-08 18:06:35 +02:00
|
|
|
"license": "Apache-2.0",
|
|
|
|
|
"repository": "addyosmani/critical",
|
2022-09-04 23:17:08 +02:00
|
|
|
"type": "module",
|
2014-06-28 11:12:15 +01:00
|
|
|
"scripts": {
|
2022-09-06 10:55:36 +02:00
|
|
|
"jest": "cross-env NODE_OPTIONS=--experimental-vm-modules jest",
|
2019-01-02 06:31:44 +02:00
|
|
|
"xo": "xo",
|
2022-09-04 23:17:08 +02:00
|
|
|
"test": "npm run xo && npm run jest"
|
2014-06-28 11:12:15 +01:00
|
|
|
},
|
|
|
|
|
"files": [
|
2015-05-19 21:01:23 +02:00
|
|
|
"cli.js",
|
2016-08-02 18:57:19 +03:00
|
|
|
"index.js",
|
2018-11-27 05:31:05 +01:00
|
|
|
"src"
|
2014-06-28 11:12:15 +01:00
|
|
|
],
|
2024-01-12 00:10:53 +01:00
|
|
|
"exports": {
|
|
|
|
|
".": "./index.js",
|
|
|
|
|
"./file.js": "./src/file.js",
|
|
|
|
|
"./errors.js": "./src/errors.js"
|
|
|
|
|
},
|
2015-05-19 21:01:23 +02:00
|
|
|
"bin": "cli.js",
|
2014-06-28 11:12:15 +01:00
|
|
|
"keywords": [
|
|
|
|
|
"critical",
|
|
|
|
|
"path",
|
|
|
|
|
"css",
|
|
|
|
|
"optimization"
|
|
|
|
|
],
|
|
|
|
|
"engines": {
|
2024-03-26 00:46:55 +01:00
|
|
|
"node": ">=18.18"
|
2014-06-28 11:12:15 +01:00
|
|
|
},
|
|
|
|
|
"dependencies": {
|
2024-08-17 22:57:03 +02:00
|
|
|
"@adobe/css-tools": "^4.4.0",
|
|
|
|
|
"async-traverse-tree": "^1.1.0",
|
2024-01-27 23:34:55 +01:00
|
|
|
"clean-css": "^5.3.3",
|
2022-09-04 23:17:08 +02:00
|
|
|
"common-tags": "^1.8.2",
|
2024-08-17 22:57:03 +02:00
|
|
|
"css-url-parser": "^1.1.4",
|
|
|
|
|
"data-uri-to-buffer": "^6.0.2",
|
2024-09-23 00:06:13 +02:00
|
|
|
"debug": "^4.3.7",
|
2024-01-27 23:34:55 +01:00
|
|
|
"find-up": "^7.0.0",
|
2022-09-04 23:17:08 +02:00
|
|
|
"get-stdin": "^9.0.0",
|
2024-08-17 22:57:03 +02:00
|
|
|
"globby": "^14.0.2",
|
2024-09-23 11:08:41 +02:00
|
|
|
"got": "^13.0.0",
|
2017-07-10 00:42:20 +02:00
|
|
|
"group-args": "^0.1.0",
|
2022-09-04 23:17:08 +02:00
|
|
|
"indent-string": "^5.0.0",
|
2024-09-23 00:06:13 +02:00
|
|
|
"inline-critical": "^12.1.0",
|
2022-09-04 23:17:08 +02:00
|
|
|
"is-glob": "^4.0.3",
|
2024-08-17 22:57:03 +02:00
|
|
|
"joi": "^17.13.3",
|
2021-02-26 00:14:56 +01:00
|
|
|
"lodash": "^4.17.21",
|
2022-09-04 23:17:08 +02:00
|
|
|
"lodash-es": "^4.17.21",
|
2024-09-23 00:06:13 +02:00
|
|
|
"make-dir": "^5.0.0",
|
2024-03-26 00:46:55 +01:00
|
|
|
"meow": "^13.2.0",
|
2023-09-13 00:25:51 +02:00
|
|
|
"oust": "^2.0.4",
|
2023-09-19 00:20:53 +02:00
|
|
|
"p-all": "^5.0.0",
|
2022-09-04 23:17:08 +02:00
|
|
|
"penthouse": "^2.3.3",
|
2024-09-23 00:06:13 +02:00
|
|
|
"picocolors": "^1.1.0",
|
2022-12-11 23:42:28 +01:00
|
|
|
"plugin-error": "^2.0.1",
|
2024-09-23 00:06:13 +02:00
|
|
|
"postcss": "^8.4.47",
|
2021-06-06 23:07:10 +02:00
|
|
|
"postcss-discard": "^2.0.0",
|
2024-01-27 23:34:55 +01:00
|
|
|
"postcss-image-inliner": "^7.0.1",
|
2021-04-15 00:19:22 +02:00
|
|
|
"postcss-url": "^10.1.3",
|
2020-05-24 23:35:23 +02:00
|
|
|
"replace-ext": "^2.0.0",
|
2023-09-13 00:25:51 +02:00
|
|
|
"slash": "^5.1.0",
|
|
|
|
|
"tempy": "^3.1.0",
|
2020-07-03 00:40:35 +02:00
|
|
|
"through2": "^4.0.2",
|
2022-10-02 23:58:57 +02:00
|
|
|
"vinyl": "^3.0.0"
|
2014-06-28 11:12:15 +01:00
|
|
|
},
|
|
|
|
|
"devDependencies": {
|
2024-09-23 00:06:13 +02:00
|
|
|
"async": "^3.2.6",
|
2022-09-04 23:17:08 +02:00
|
|
|
"cross-env": "^7.0.3",
|
2024-09-23 00:06:13 +02:00
|
|
|
"finalhandler": "^1.3.1",
|
2024-03-26 00:46:55 +01:00
|
|
|
"get-port": "^7.1.0",
|
2023-09-13 00:25:51 +02:00
|
|
|
"jest": "^29.7.0",
|
2024-09-23 00:06:13 +02:00
|
|
|
"nock": "^13.5.5",
|
2022-09-04 23:17:08 +02:00
|
|
|
"normalize-newline": "^4.1.0",
|
|
|
|
|
"serve-static": "^1.15.0",
|
2017-02-11 01:09:27 +01:00
|
|
|
"stream-array": "^1.1.2",
|
|
|
|
|
"stream-assert": "^2.0.3",
|
2018-03-15 06:29:17 +01:00
|
|
|
"vinyl-source-stream": "^2.0.0",
|
2024-09-23 00:06:13 +02:00
|
|
|
"xo": "^0.59.3"
|
2016-01-19 17:16:40 +01:00
|
|
|
},
|
|
|
|
|
"xo": {
|
2018-11-27 05:31:05 +01:00
|
|
|
"space": 2,
|
|
|
|
|
"prettier": true,
|
2019-01-02 06:31:44 +02:00
|
|
|
"rules": {
|
2020-04-08 23:58:14 +02:00
|
|
|
"capitalized-comments": "off",
|
2024-09-23 00:06:13 +02:00
|
|
|
"promise/prefer-await-to-then": "warn",
|
2020-04-08 23:58:14 +02:00
|
|
|
"unicorn/prevent-abbreviations": "off",
|
2020-05-24 23:38:26 +02:00
|
|
|
"unicorn/string-content": "off",
|
2020-06-14 00:06:39 +02:00
|
|
|
"unicorn/no-reduce": "off",
|
2021-02-26 00:14:56 +01:00
|
|
|
"unicorn/no-array-reduce": "off",
|
|
|
|
|
"unicorn/no-array-for-each": "off",
|
2020-05-24 23:38:26 +02:00
|
|
|
"unicorn/no-fn-reference-in-iterator": "off"
|
2019-01-02 06:31:44 +02:00
|
|
|
},
|
|
|
|
|
"overrides": [
|
|
|
|
|
{
|
|
|
|
|
"files": "test/*.js",
|
|
|
|
|
"envs": [
|
|
|
|
|
"jest"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
]
|
2018-11-27 05:31:05 +01:00
|
|
|
},
|
|
|
|
|
"prettier": {
|
|
|
|
|
"trailingComma": "es5",
|
|
|
|
|
"singleQuote": true,
|
|
|
|
|
"printWidth": 120,
|
|
|
|
|
"bracketSpacing": false
|
|
|
|
|
},
|
|
|
|
|
"jest": {
|
2022-09-04 23:17:08 +02:00
|
|
|
"transform": {},
|
2022-09-06 12:23:16 +02:00
|
|
|
"collectCoverage": true
|
2014-06-28 11:12:15 +01:00
|
|
|
}
|
|
|
|
|
}
|