-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
package.json
198 lines (198 loc) · 4.99 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
{
"metapak": {
"configs": [
"main",
"readme",
"jest",
"tsesm",
"ghactions",
"eslint",
"codeclimate",
"jsdocs"
],
"data": {
"files": "'src/**/*.ts'",
"testsFiles": "'src/**/*.tests.ts'",
"distFiles": "'dist/**/*.js'",
"ignore": [
"dist"
],
"bundleFiles": [
"bin/**/*.js",
"dist",
"src"
]
}
},
"name": "jsarch",
"version": "6.1.2",
"description": "A simple module to extract architecture notes from your code.",
"main": "dist/index.js",
"type": "module",
"types": "dist/index.d.ts",
"scripts": {
"architecture": "node bin/jsarch.js src/*.ts > ARCHITECTURE.md",
"build": "rimraf 'dist' && tsc --outDir dist",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s && git add CHANGELOG.md",
"cli": "env NODE_ENV=${NODE_ENV:-cli}",
"cover": "npm run jest -- --coverage",
"cz": "env NODE_ENV=${NODE_ENV:-cli} git cz",
"doc": "echo \"# API\" > API.md; jsdoc2md 'dist/**/*.js' >> API.md && git add API.md",
"format": "npm run prettier",
"graph": "npm run graph:build && npm run graph:generate && git add DEPENDENCIES.mmd*",
"graph:build": "MERMAID_RUN=1 node bin/jsarch.js > DEPENDENCIES.mmd",
"graph:generate": "docker run --rm -u `id -u`:`id -g` -v $(pwd):/data minlag/mermaid-cli -i DEPENDENCIES.mmd -o DEPENDENCIES.mmd.svg",
"jest": "NODE_OPTIONS=--experimental-vm-modules NODE_ENV=test jest",
"jsarch": "node bin/jsarch.js",
"lint": "eslint 'src/**/*.ts'",
"metapak": "metapak",
"mocha": "mocha --require '@babel/register' src/*.mocha.js",
"precz": "npm run build && npm run graph && npm run architecture && npm run doc && npm t && npm run lint && npm run metapak -- -s",
"prettier": "prettier --write 'src/**/*.ts'",
"preversion": "npm run build && npm t && npm run lint && npm run metapak -- -s && npm run doc",
"rebuild": "swc ./src -s -d dist -C jsc.target=es2022",
"test": "npm run jest",
"type-check": "tsc --pretty --noEmit",
"version": "npm run changelog"
},
"repository": {
"type": "git",
"url": "git+https://github.com/nfroidure/jsarch.git"
},
"keywords": [
"architecture",
"documentation"
],
"bin": {
"jsarch": "bin/jsarch.js"
},
"dependencies": {
"@babel/parser": "^7.26.2",
"ast-types": "^0.16.1",
"commander": "^12.1.0",
"debug": "^4.3.7",
"deep-extend": "^0.6.0",
"glob": "^11.0.0",
"knifecycle": "^18.0.0",
"pkg-dir": "^8.0.0",
"rc": "^1.2.8",
"yerror": "^8.0.0"
},
"devDependencies": {
"@eslint/js": "^9.16.0",
"@swc/cli": "^0.5.2",
"@swc/core": "^1.10.0",
"@swc/helpers": "^0.5.15",
"@swc/jest": "^0.2.37",
"@types/node": "^18.14.6",
"commitizen": "^4.3.1",
"conventional-changelog-cli": "^5.0.0",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^9.16.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-jest": "^28.9.0",
"eslint-plugin-prettier": "^5.2.1",
"jest": "^29.7.0",
"jsdoc-to-markdown": "^9.1.1",
"metapak": "^6.0.1",
"metapak-nfroidure": "19.0.0",
"prettier": "^3.4.2",
"rimraf": "^6.0.1",
"typescript": "^5.7.2",
"typescript-eslint": "^8.17.0"
},
"author": {
"name": "Nicolas Froidure",
"email": "[email protected]",
"url": "http://insertafter.com/en/index.html"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/nfroidure/jsarch/issues"
},
"homepage": "https://github.com/nfroidure/jsarch#readme",
"engines": {
"node": ">=20.11.1"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"contributors": [
{
"name": "Antoine Demon-Chaine",
"url": "https://github.com/antoinedmc"
}
],
"files": [
"bin/**/*.js",
"dist",
"src",
"LICENSE",
"README.md",
"CHANGELOG.md"
],
"greenkeeper": {
"ignore": [
"commitizen",
"cz-conventional-changelog",
"conventional-changelog-cli",
"jest",
"@swc/jest",
"typescript",
"rimraf",
"@swc/cli",
"@swc/core",
"@swc/helpers",
"eslint",
"prettier",
"eslint-config-prettier",
"eslint-plugin-prettier",
"typescript-eslint",
"jsdoc-to-markdown"
]
},
"prettier": {
"semi": true,
"printWidth": 80,
"singleQuote": true,
"trailingComma": "all",
"proseWrap": "always"
},
"jest": {
"coverageReporters": [
"lcov"
],
"testPathIgnorePatterns": [
"/node_modules/"
],
"roots": [
"<rootDir>/src"
],
"transform": {
"^.+\\.tsx?$": [
"@swc/jest",
{}
]
},
"testEnvironment": "node",
"moduleNameMapper": {
"(.+)\\.js": "$1"
},
"extensionsToTreatAsEsm": [
".ts"
],
"prettierPath": null
},
"jsarch": {
"parserOptions": {
"plugins": [
"typescript"
]
}
},
"overrides": {
"eslint": "^9.16.0"
}
}