forked from peggyjs/peggy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
107 lines (107 loc) · 4.36 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
{
"name": "peggy",
"version": "4.2.0",
"description": "Parser generator for JavaScript",
"keywords": [
"grammar",
"parser generator",
"PEG",
"PEG.js"
],
"homepage": "https://peggyjs.org/",
"repository": {
"type": "git",
"url": "git+https://github.com/peggyjs/peggy.git"
},
"bugs": "https://github.com/peggyjs/peggy/issues",
"license": "MIT",
"author": "David Majda <[email protected]> (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 -g build browser bin/*.map && mkdir browser",
"parser": "node bin/peggy.js -c src/opts.mjs",
"examples": "node bin/peggy.js -c docs/js/options.js docs/js/examples.peggy",
"set_version": "package-extract -o lib/version.js -dcs && package-extract -u -o docs/index.html -r '(?<=https:\\/\\/unpkg.com\\/peggy@)(?<version>\\d+\\.\\d+\\.\\d+)(?=\\/browser\\/peggy\\.min\\.js)'",
"lint": "eslint .",
"ts": "tsc --build tsconfig.json",
"docs": "cd docs && npm run build",
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
"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 clean && npm run make && npm run lint && npm run audit",
"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",
"version": "npm run set_version && npm run parser && npm run parser && npm run test && npm run examples && git add lib/version.js lib/parser.js docs/index.html test/cli/fixtures/imports_peggy.js test/cli/fixtures/lib.js docs/js/examples.js"
},
"devDependencies": {
"@peggyjs/eslint-config": "^5.0.1",
"@rollup/plugin-commonjs": "^28.0.1",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-multi-entry": "^6.0.1",
"@rollup/plugin-node-resolve": "^15.3.0",
"@rollup/plugin-typescript": "^12.1.1",
"@types/chai": "^4.3.11",
"@types/jest": "^29.5.14",
"@types/node": "^22.9.0",
"chai": "^4.3.11",
"chai-like": "^1.1.3",
"copyfiles": "^2.4.1",
"eslint": "^9.15.0",
"eslint-plugin-compat": "6.0.1",
"eslint-plugin-mocha": "10.5.0",
"express": "4.21.1",
"glob": "^11.0.0",
"jest": "^29.7.0",
"package-extract": "2.3.0",
"rimraf": "^5.0.10",
"rollup": "^4.27.3",
"rollup-plugin-ignore": "1.0.10",
"source-map": "^0.8.0-beta.0",
"terser": "^5.36.0",
"ts-jest": "^29.2.5",
"tslib": "^2.8.1",
"typescript": "5.6.3",
"typescript-eslint": "8.15.0"
},
"dependencies": {
"@peggyjs/from-mem": "1.3.5",
"commander": "^12.1.0",
"source-map-generator": "0.8.0"
},
"pnpm": {
"overrides": {
"@eslint/plugin-kit": "^0.2.3",
"cross-spawn": "^7.0.6",
"picomatch": "^4.0.2"
}
},
"browserslist": [
"defaults, maintained node versions, not op_mini all"
],
"packageManager": "[email protected]",
"engines": {
"node": ">=18"
}
}