forked from peggyjs/peggy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
80 lines (80 loc) · 3.17 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
{
"name": "peggy",
"version": "1.2.0",
"description": "Parser generator for JavaScript",
"keywords": [
"parser generator",
"PEG",
"PEG.js"
],
"homepage": "https://peggyjs.org/",
"repository": "peggyjs/peggy",
"bugs": "https://github.com/peggyjs/peggy/issues",
"license": "MIT",
"author": "David Majda <david@majda.cz> (https://majda.cz/)",
"main": "lib/peg.js",
"unpkg": "browser/peggy.min.js",
"jsdelivr": "browser/peggy.min.js",
"types": "lib/peg.d.ts",
"bin": {
"peggy": "bin/peggy.js"
},
"scripts": {
"clean": "rimraf build browser bin/*.map && mkdir browser",
"parser": "node bin/peggy.js -o lib/parser.js --format commonjs src/parser.pegjs",
"set_version": "node ./tools/set_version",
"lint": "eslint . --ext .js --ext .ts",
"ts": "tsc --build tsconfig.json",
"test": "jest",
"benchmark": "node ./benchmark/run_bench.js",
"rollup": "cp package.json build/ts && rollup -c",
"terser": "npm run terser:peggy && npm run terser:tests && npm run terser:bench",
"terser:peggy": "terser -c passes=2 -m --sequences 40 build/rollup/peggy.umd.js -o build/peggy.min.js",
"terser:tests": "terser -c passes=2 -m --sequences 40 --module build/rollup/test.umd.js -o build/test-bundle.min.js",
"terser:bench": "terser -c passes=2 -m --sequences 40 --module build/rollup/benchmark.umd.js -o build/benchmark-bundle.min.js",
"headers": "node ./tools/header.js build/peggy.min.js build/benchmark-bundle.min.js build/test-bundle.min.js",
"deploy": "npm run deploy:peggy && npm run deploy:tests && npm run deploy:bench",
"coverage:bin": "PEGGY_CLI_DEBUG=1 npm run rollup && nyc --reporter lcov jest run.spec.ts",
"deploy:peggy": "cp build/peggy.min.js docs/vendor/peggy/peggy.min.js && cp build/peggy.min.js browser/peggy.min.js",
"deploy:tests": "cp build/test-bundle.min.js docs/js/test-bundle.min.js",
"deploy:bench": "cp build/benchmark-bundle.min.js docs/js/benchmark-bundle.min.js",
"build": "npm run build:notidy && npm run tidy",
"build:notidy": "npm run setup && npm run make && npm run headers && npm run lint && npm run deploy && npm run audit",
"setup": "npm run clean && npm run set_version",
"make": "npm run parser && npm run ts && npm run rollup && npm run terser",
"audit": "npm run test && npm run benchmark",
"tidy": "rimraf -f build"
},
"devDependencies": {
"@peggyjs/eslint-config": "^0.0.2",
"@rollup/plugin-commonjs": "^20.0.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-multi-entry": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.0.4",
"@rollup/plugin-typescript": "^8.2.5",
"@types/jest": "^26.0.24",
"@types/node": "^16.6.1",
"@typescript-eslint/eslint-plugin": "^4.29.1",
"@typescript-eslint/parser": "^4.29.1",
"chai": "^4.3.4",
"commander": "^8.1.0",
"eslint": "^7.32.0",
"express": "4.17.1",
"jest": "^27.0.6",
"nyc": "^15.1.0",
"rimraf": "^3.0.2",
"rollup": "^2.56.2",
"sinon": "^11.1.2",
"terser": "^5.7.1",
"ts-jest": "^27.0.4",
"tsd": "^0.17.0",
"tslib": "^2.3.1",
"typescript": "^4.3.5"
},
"tsd": {
"directory": "test/types"
},
"engines": {
"node": ">=10"
}
}