-
-
Notifications
You must be signed in to change notification settings - Fork 232
/
package.json
54 lines (54 loc) · 2.07 KB
/
package.json
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
{
"name": "parse5-build-scripts",
"private": true,
"type": "module",
"devDependencies": {
"@types/jest": "^27.0.2",
"@typescript-eslint/eslint-plugin": "^5.9.0",
"dedent": "^0.7.0",
"eslint": "^8.2.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-unicorn": "^40.0.0",
"husky": "^7.0.4",
"jest": "^27.4.7",
"lerna": "^4.0.0",
"lint-staged": "^11.2.6",
"prettier": "^2.4.1",
"ts-jest": "^27.1.2",
"typescript": "^4.5.4"
},
"scripts": {
"build": "lerna run build",
"bootstrap": "lerna bootstrap",
"prettier": "prettier '{packages/*/{lib,test}/**/*.js,{bench,test,scripts}/**/*.js}'",
"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": "NODE_OPTIONS=--experimental-vm-modules jest",
"test": "npm run lint && npm run unit-tests",
"generate-feedback-tests": "node scripts/generate-parser-feedback-test test/data/html5lib-tests/tree-construction/*.dat test/data/tree-construction-regression/*.dat",
"generate-named-entity-data": "node scripts/generate-named-entity-data",
"bench-perf": "cd bench && npm install && node perf/index.js",
"bench-memory-named-entities": "cd bench && npm install && node memory/named-entity-data.js",
"bench-memory-sax": "cd bench && npm install && node memory/sax-parser.js",
"postinstall": "npm run bootstrap",
"preversion": "npm test",
"pre-commit": "lint-staged",
"publish": "lerna publish",
"prepare": "husky install"
},
"lint-staged": {
"*.{js,json}": [
"prettier --write",
"git add"
]
},
"jest": {
"preset": "ts-jest",
"testEnvironment": "node",
"coverageProvider": "v8"
}
}