-
Notifications
You must be signed in to change notification settings - Fork 7
/
package.json
73 lines (73 loc) · 3.03 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
{
"name": "latex-utensils",
"version": "6.2.0",
"license": "MIT",
"description": "A LaTeX parser, a BibTeX parser, and utilities",
"homepage": "https://github.com/tamuratak/latex-utensils",
"main": "./out/src/main.js",
"types": "./out/types/src/main.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/tamuratak/latex-utensils.git"
},
"bin": {
"luparse": "./bin/luparse"
},
"optionalDependencies": {
"commander": "^11.0.0",
"pegjs-backtrace": "^0.2.1"
},
"devDependencies": {
"@types/mocha": "^10",
"@types/node": "^18",
"@typescript-eslint/eslint-plugin": "^6.4.0",
"@typescript-eslint/parser": "^6.4.0",
"eslint": "^8.47.0",
"mocha": "^10",
"onchange": "^6.1.0",
"peggy": "3.0.2",
"rimraf": "^3.0.2",
"source-map-support": "^0.5.21",
"typedoc": "^0.24.4",
"typepark": "^0.8.0",
"typescript": "~5.0"
},
"files": [
"bin/**/*",
"out/src/**/*",
"out/bin/**/*",
"out/types/**/*"
],
"keywords": [
"latex",
"bibtex",
"parser"
],
"scripts": {
"generate:latex:simple": "peggy --allowed-start-rules Root,Preamble -o out/src/latex/latex_parser_simple.js src/latex/latex.pegjs",
"generate:latex:trace": "peggy --trace --allowed-start-rules Root,Preamble -o out/src/latex/latex_parser_trace.js src/latex/latex.pegjs",
"generate:latex": "npm run generate:latex:simple && npm run generate:latex:trace",
"generate:bibtex:simple": "peggy -o out/src/bibtex/bibtex_parser_simple.js src/bibtex/bibtex.pegjs",
"generate:bibtex:trace": "peggy --trace -o out/src/bibtex/bibtex_parser_trace.js src/bibtex/bibtex.pegjs",
"generate:bibtex": "npm run generate:bibtex:simple && npm run generate:bibtex:trace",
"generate:latex_log:simple": "peggy -o out/src/latex_log/latex_log_parser_simple.js src/latex_log/latex_log.pegjs",
"generate:latex_log:trace": "peggy --trace -o out/src/latex_log/latex_log_parser_trace.js src/latex_log/latex_log.pegjs",
"generate:latex_log": "npm run generate:latex_log:simple && npm run generate:latex_log:trace",
"generate": "npm run generate:latex && npm run generate:bibtex && npm run generate:latex_log",
"build": "npm run clean && npm run compile && npm run generate",
"compile": "tsc -p ./",
"clean": "rimraf out/ .eslintcache",
"docs": "npm run docs:typedoc && npm run docs:edit",
"docs:typedoc": "typedoc",
"docs:edit": "node out/dev/editDocs.js docs/**/*.html",
"lint": "eslint --cache --ext .ts .",
"lint:fix": "eslint --fix --cache --ext .ts .",
"prerelease": "npm run build && npm run lint && npm run test",
"test": "npm run test:xunit && npm run test:spec",
"test:xunit": "mocha --require source-map-support/register --reporter xunit --ui tdd out/test/**/*.js",
"test:spec": "mocha --require source-map-support/register --ui tdd out/test/**/*.js",
"watch:docs": "onchange 'src/**/*.ts' 'test/**/*.ts' 'bin/**/*.ts' -- npm run docs",
"watch:ts": "tsc -w -p ./",
"watch:pegjs": "onchange 'src/**/*.pegjs' -- npm run generate"
}
}