-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
66 lines (66 loc) · 2.18 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
{
"name": "retsac",
"description": "Text lexer and parser.",
"version": "0.17.0",
"main": "out/index.js",
"types": "out/index.d.ts",
"license": "MIT",
"scripts": {
"build": "tsc --build && esbuild src/index.ts --bundle --minify --global-name=retsac --outfile=dist/retsac.min.js",
"build:readme": "mdcg README.src.md README.md",
"build:example": "tsc --build example.tsconfig.json",
"clean": "tsc --build --clean",
"clean:example": "tsc --build example.tsconfig.json --clean",
"test": "jest",
"test:coverage": "jest --coverage",
"format": "prettier --write --end-of-line auto \"src/**/*.ts\"",
"format:all": "prettier --write --end-of-line auto \"src/**/*.ts\" \"examples/**/*.ts\" \"tests/**/*.ts\" \"utils/**/*.ts\"",
"format:check": "prettier --check --end-of-line auto \"src/**/*.ts\"",
"format:check:all": "prettier --check --end-of-line auto \"src/**/*.ts\" \"examples/**/*.ts\" \"tests/**/*.ts\" \"utils/**/*.ts\"",
"lint": "eslint src/",
"lint:all": "eslint src/ examples/ tests/ utils/",
"lint:fix": "eslint --fix src/",
"lint:fix:all": "eslint --fix src/ examples/ tests/ utils/",
"prepublishOnly": "yarn format:check:all && yarn lint:all && yarn test:coverage && yarn clean && yarn build && yarn build:readme",
"prepare": "husky install"
},
"devDependencies": {
"@discretetom/r-compose": "^0.2.2",
"@types/jest": "^29.2.5",
"@types/node": "^18.11.18",
"@typescript-eslint/eslint-plugin": "^6.7.0",
"@typescript-eslint/parser": "^6.7.0",
"esbuild": "^0.19.4",
"eslint": "^8.49.0",
"husky": "^8.0.3",
"jest": "^29.7.0",
"lint-staged": "^14.0.1",
"mdcg": "^0.1.3",
"prettier": "^3.0.3",
"readline": "^1.3.0",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1",
"typescript": "^5.2.2"
},
"repository": {
"url": "https://github.com/DiscreteTom/retsac.git",
"type": "git"
},
"bugs": {
"url": "https://github.com/DiscreteTom/retsac/issues"
},
"keywords": [
"parser",
"lexer",
"flex",
"bison",
"compiler",
"lr",
"ast",
"token"
],
"lint-staged": {
"*.ts": "eslint --cache --fix",
"*.{js,css}": "prettier --write"
}
}