-
-
Notifications
You must be signed in to change notification settings - Fork 251
Expand file tree
/
Copy pathpackage.json
More file actions
58 lines (58 loc) · 1.99 KB
/
package.json
File metadata and controls
58 lines (58 loc) · 1.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{
"name": "parse5-build-scripts",
"private": true,
"type": "module",
"workspaces": [
"packages/*",
"bench",
"test"
],
"devDependencies": {
"@eslint/js": "^10.0.1",
"@vitest/coverage-v8": "^4.1.5",
"eslint": "^10.2.1",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-unicorn-x": "^3.2.1",
"globals": "^17.5.0",
"husky": "^9.1.7",
"nano-staged": "^1.0.2",
"outdent": "^0.8.0",
"prettier": "^3.8.3",
"ts-node": "^10.9.2",
"typedoc": "^0.28.19",
"typescript": "^6.0.3",
"typescript-eslint": "^8.59.0",
"vitest": "^4.0.10"
},
"scripts": {
"build": "tsc --build packages/* test",
"build:docs": "typedoc",
"prettier": "prettier '**/*.{js,ts,md,json,yml}' --log-level warn",
"format": "npm run format:es && npm run format:prettier",
"format:es": "npm run lint:es -- --fix",
"format:prettier": "npm run prettier -- --write",
"lint": "npm run lint:es && npm run lint:prettier",
"lint:es": "eslint .",
"lint:prettier": "npm run prettier -- --check",
"unit-tests": "vitest run",
"unit-tests-coverage": "vitest run --coverage",
"test": "npm run lint && npm run unit-tests",
"generate-feedback-tests": "node --loader ts-node/esm scripts/generate-parser-feedback-test/index.ts test/data/html5lib-tests/tree-construction/*.dat",
"bench-perf": "npm run build && node bench/perf/index.js",
"bench-memory-sax": "npm run build && node bench/memory/sax-parser.js",
"preversion": "npm test",
"pre-commit": "nano-staged",
"publish": "npm publish --workspaces",
"prepare": "husky install",
"prepublish": "npm run build"
},
"nano-staged": {
"*.{js,ts}": [
"prettier --write",
"eslint --fix"
],
"*.{md,json,yml}": [
"prettier --write"
]
}
}