-
Notifications
You must be signed in to change notification settings - Fork 11
/
package.json
91 lines (91 loc) · 3.35 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
{
"name": "jsdoctypeparser",
"description": "Strict JsDoc type expression parser.",
"version": "9.0.0",
"author": "Kuniwak <orga.chem.job@gmail.com>",
"contributors": [
"Brett Zamir",
"Nathan Shively-Sanders"
],
"keywords": [
"jsdoc",
"type expression",
"parser"
],
"repository": {
"type": "git",
"url": "https://github.com/jsdoctypeparser/jsdoctypeparser.git"
},
"engines": {
"node": ">=10"
},
"homepage": "https://jsdoctypeparser.github.io",
"bugs": {
"mail": "orga.chem.job@gmail.com",
"url": "https://github.com/jsdoctypeparser/jsdoctypeparser/issues"
},
"directories": {
"test": "test"
},
"main": "index.js",
"bin": "./bin/jsdoctypeparser.js",
"nyc": {
"reporter": [
"text",
"html"
],
"exclude": [
"tests",
"peg_lib"
],
"check-coverage": true,
"branches": 100,
"lines": 100,
"functions": 100,
"statements": 100
},
"scripts": {
"prepare": "npm-run-all build",
"pretest": "npm-run-all lint build",
"test": "npm-run-all coverage typecheck",
"lint": "eslint --report-unused-disable-directives .",
"bin": "./bin/jsdoctypeparser.js",
"start": "static -p 8050",
"open-coverage": "open-cli http://localhost:8050/coverage/",
"open-cov": "run-p start open-coverage",
"coverage": "nyc npm run mocha",
"mocha": "mocha tests/test_*",
"typecheck": "tsc",
"clean": "rimraf ./peg_lib",
"postclean": "mkdirp ./peg_lib",
"prebuild": "npm-run-all clean",
"build:jsdoc": "frs-replace '^.*// [^/]*?no-jsdoc(?!-)[^/]*?$' '' -f gm -i './peg_src/jsdoctype.pegjs' --stdout | frs-replace '^.*// [^/]*?no-jsdoc-begin[\\s\\S]*?no-jsdoc-end.*?$' '' -f gm | pegjs --allowed-start-rules TopTypeExpr,NamepathExpr,BroadNamepathExpr,ExternalNameExpr,ModuleNameExpr --cache -o ./peg_lib/jsdoctype-jsdoc.js",
"build:typescript": "frs-replace '^.*// [^/]*?no-typescript(?!-)[^/]*?$' '' -f gm -i './peg_src/jsdoctype.pegjs' --stdout | frs-replace '^.*// [^/]*?no-typescript-begin[\\s\\S]*?no-typescript-end.*?$' '' -f gm | pegjs --allowed-start-rules TopTypeExpr,NamepathExpr,BroadNamepathExpr --cache -o ./peg_lib/jsdoctype-typescript.js",
"build:closure": "frs-replace '^.*// [^/]*?no-closure(?!-)[^/]*?$' '' -f gm -i './peg_src/jsdoctype.pegjs' --stdout | frs-replace '^.*// [^/]*?no-closure-begin[\\s\\S]*?no-closure-end.*?$' '' -f gm| pegjs --allowed-start-rules TopTypeExpr,NamepathExpr,BroadNamepathExpr,ExternalNameExpr,ModuleNameExpr --cache -o ./peg_lib/jsdoctype-closure.js",
"build:permissive": "pegjs --allowed-start-rules TopTypeExpr,NamepathExpr,BroadNamepathExpr,ExternalNameExpr,ModuleNameExpr --cache -o ./peg_lib/jsdoctype-permissive.js ./peg_src/jsdoctype.pegjs",
"build": "npm run build:jsdoc && npm run build:typescript && npm run build:closure && npm run build:permissive"
},
"husky": {
"hooks": {
"pre-push": "npm test"
}
},
"devDependencies": {
"@brettz9/node-static": "^0.1.1",
"@frsource/frs-replace": "^3.0.3",
"@types/node": "^14.14.41",
"chai": "^4.3.4",
"eslint": "^7.24.0",
"husky": "^6.0.0",
"mkdirp": "^1.0.4",
"mocha": "^8.3.2",
"npm-run-all": "^4.1.5",
"nyc": "^15.1.0",
"object.entries-ponyfill": "^1.0.1",
"open-cli": "^6.0.1",
"pegjs": "^0.10.0",
"rimraf": "^3.0.2",
"typescript": "^4.2.4"
},
"license": "MIT"
}