-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
92 lines (92 loc) · 2.98 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
{
"name": "wikiparser-node",
"version": "1.14.0",
"description": "A Node.js parser for MediaWiki markup with AST",
"keywords": [
"mediawiki",
"wikitext",
"parser"
],
"homepage": "https://github.com/bhsd-harry/wikiparser-node/wiki",
"bugs": {
"url": "https://github.com/bhsd-harry/wikiparser-node/issues"
},
"license": "GPL-3.0",
"author": "Bhsd",
"files": [
"/errors/README",
"/printed/README",
"/bundle/bundle.*.js",
"/extensions/typings.d.ts",
"/extensions/dist/",
"/extensions/*.css",
"!/extensions/dist/gh-page.js",
"!/extensions/gh-page.css",
"!/extensions/dist/parserTests.js",
"!/extensions/test-page.css",
"/config/",
"/i18n/",
"/dist/",
"!/dist/[bt]*/"
],
"browser": "/bundle/bundle.min.js",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"repository": {
"type": "git",
"url": "git+https://github.com/bhsd-harry/wikiparser-node.git"
},
"scripts": {
"toc": "node ./dist/bin/toc.js",
"declaration": "grep -rl --include='*.d.ts' '@private' dist/ | xargs bash sed.sh -i -E '/^\\s+\\/\\*\\* @private/,+1d'; grep -rl --include='*.d.ts' '/util/' dist/ | xargs bash sed.sh -i -E '/^import .+\\/util\\//d'; bash sed.sh -i -E 's/abstract (lint|print|text)\\b/\\1/' dist/lib/node.d.ts; node ./dist/bin/declaration.js",
"prepublishOnly": "npm run build:core",
"build:core": "bash build.sh",
"build": "npm run build:core && node ./dist/bin/parserTests.js",
"diff": "bash diff.sh",
"diff:stat": "f() { git diff --stat --ignore-all-space --color=always $1 $2 -- . ':!extensions/' ':!bin/' | grep '\\.ts'; }; f",
"lint:ts": "tsc --noEmit && eslint --cache .",
"lint:json": "v8r -s config/.schema.json config/*.json && node ./dist/test/json.js",
"lint": "npm run lint:ts && npm run lint:json",
"prof": "node dist/test/prof.js",
"test:unit": "mocha dist/test/test.js",
"test:parser": "mocha dist/test/parserTests.js",
"test": "npm run test:unit && npm run test:parser",
"test:end": "pkill -x http-server",
"test:real": "node dist/test/real.js"
},
"dependencies": {
"@bhsd/common": "^0.5.0",
"@codemirror/lint": "^6.8.4",
"chalk": "^4.1.2",
"codejar-async": "^4.2.5",
"monaco-editor": "^0.52.0"
},
"devDependencies": {
"@stylistic/eslint-plugin": "^2.11.0",
"@stylistic/stylelint-plugin": "^3.1.1",
"@types/mocha": "^10.0.10",
"@types/node": "^22.10.1",
"@typescript-eslint/eslint-plugin": "^8.16.0",
"@typescript-eslint/parser": "^8.16.0",
"esbuild": "^0.24.0",
"eslint": "^8.57.1",
"eslint-plugin-es-x": "^8.4.1",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-jsdoc": "^50.6.0",
"eslint-plugin-json-es": "^1.6.0",
"eslint-plugin-markdown": "4.0.1",
"eslint-plugin-n": "^17.14.0",
"eslint-plugin-promise": "^7.2.1",
"eslint-plugin-regexp": "^2.6.0",
"eslint-plugin-unicorn": "^56.0.1",
"http-server": "^14.1.0",
"mocha": "^10.8.2",
"stylelint": "^16.11.0",
"stylelint-config-recommended": "^14.0.0",
"typescript": "^5.7.2",
"v8r": "^4.2.0"
},
"engines": {
"node": ">=18.12.0"
}
}