forked from peggyjs/peggy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
90 lines (90 loc) · 3.73 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
81
82
83
84
85
86
87
88
89
90
{
"name": "peggy",
"version": "3.0.2",
"description": "Parser generator for JavaScript",
"keywords": [
"grammar",
"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",
"browser": "browser/peggy.min.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 && node bin/peggy.js -o lib/compiler/passes/js-imports.js --format commonjs src/js-imports.peggy src/parser.pegjs",
"examples": "node bin/peggy.js -c docs/js/options.js docs/js/examples.peggy",
"set_version": "node ./tools/set_version",
"lint": "eslint . --ext js,ts,mjs",
"ts": "tsc --build tsconfig.json",
"docs": "cd docs && npm run build",
"test": "jest",
"test:web": "cd web-test && npm test",
"test:all": "npm run test && npm run test:web",
"benchmark": "node ./benchmark/run_bench.js",
"rollup": "copyfiles 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 reserved=['GrammarLocation'] --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": "npm run rollup && npm run parser -- -m inline && npm test",
"deploy:peggy": "copyfiles -f build/peggy.min.js docs/vendor/peggy/ && copyfiles -f build/peggy.min.js browser/",
"deploy:tests": "copyfiles -f build/test-bundle.min.js docs/js/",
"deploy:bench": "copyfiles -f build/benchmark-bundle.min.js docs/js/",
"build": "npm run build:notidy && npm run tidy",
"build:notidy": "npm run setup && npm run make && npm run lint && npm run audit",
"setup": "npm run clean && npm run set_version",
"make": "npm run parser && npm run ts && npm run rollup && npm run terser && npm run examples && npm run docs && npm run headers && npm run deploy",
"audit": "npm run test && npm run benchmark",
"tidy": "rimraf build",
"start": "cd docs && npm start"
},
"devDependencies": {
"@peggyjs/eslint-config": "^3.0.6",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-multi-entry": "^6.0.1",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-typescript": "^11.1.5",
"@types/chai": "^4.3.11",
"@types/jest": "^29.5.11",
"@types/node": "^20.10.5",
"@typescript-eslint/eslint-plugin": "^6.16.0",
"@typescript-eslint/parser": "^6.16.0",
"chai": "^4.3.10",
"chai-like": "^1.1.1",
"copyfiles": "^2.4.1",
"eslint": "^8.56.0",
"express": "4.18.2",
"glob": "^10.3.10",
"jest": "^29.7.0",
"rimraf": "^5.0.5",
"rollup": "^4.9.1",
"rollup-plugin-ignore": "1.0.10",
"source-map": "^0.8.0-beta.0",
"terser": "^5.26.0",
"ts-jest": "^29.1.1",
"tslib": "^2.6.2",
"typescript": "^5.3.3"
},
"dependencies": {
"commander": "^11.1.0",
"source-map-generator": "0.8.0"
},
"engines": {
"node": ">=18"
}
}