-
Notifications
You must be signed in to change notification settings - Fork 45
/
package.json
169 lines (169 loc) · 8.06 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
{
"name": "state-machine-cat",
"version": "12.0.16",
"description": "write beautiful state charts",
"main": "./dist/index.mjs",
"module": "./dist/index.mjs",
"exports": {
".": [
{
"types": "./types/state-machine-cat.d.mts",
"import": "./dist/index.mjs"
}
]
},
"types": "types/state-machine-cat.d.mts",
"imports": {
"#*": "./src/*"
},
"sideEffects": [
"dist/render/dot/dot.states.template.cjs",
"dist/render/dot/dot.template.cjs"
],
"scripts": {
"build": "make clean dist pages cli-build && rm -rf dist && tsc && make templates-dist && prettier --cache --log-level warn --write --use-tabs dist && chmod 700 dist/cli/main.mjs",
"check": "run-s depcruise lint test:cover",
"depcruise": "dependency-cruise src test types tools --config config/dependency-cruiser/base.mjs",
"depcruise:graph": "run-s depcruise:graph:doc:archi depcruise:graph:doc:deps depcruise:graph:doc:flat-deps",
"depcruise:graph:doc:archi": "dependency-cruise src --config config/dependency-cruiser/graph.mjs --output-type archi | dot -T svg | tee docs/dependency-cruiser-archi-graph.svg | depcruise-wrap-stream-in-html > docs/dependency-cruiser-archi-graph.html",
"depcruise:graph:doc:deps": "dependency-cruise src --config config/dependency-cruiser/graph.mjs --output-type dot | dot -T svg | tee docs/dependency-cruiser-graph.svg | depcruise-wrap-stream-in-html > docs/dependency-cruiser-graph.html",
"depcruise:graph:doc:flat-deps": "dependency-cruise src --config config/dependency-cruiser/graph.mjs --output-type flat | dot -T svg | tee docs/dependency-cruiser-graph-flat-dot.svg | depcruise-wrap-stream-in-html > docs/dependency-cruiser-graph-flat-dot.html",
"depcruise:graph:dev": "dependency-cruise src --config config/dependency-cruiser/graph.mjs --output-type x-dot-webpage --prefix vscode://file/$(pwd)/ --highlight \"$(watskeburt main)\" | browser",
"depcruise:graph:dev:flat": "dependency-cruise src --config config/dependency-cruiser/graph.mjs --output-type flat --prefix vscode://file/$(pwd)/ --highlight \"$(watskeburt main)\"| twopi -Tsvg | depcruise-wrap-stream-in-html | browser",
"depcruise:view-report": "dependency-cruise src test types tools --config config/dependency-cruiser/base.mjs --output-type err-html --prefix vscode://file/$(pwd)/ | browser",
"depcruise:github-actions:markdown": "dependency-cruise src test types tools --config config/dependency-cruiser/base.mjs --output-type markdown",
"depcruise:github-actions:mermaid": "dependency-cruise src --config config/dependency-cruiser/graph.mjs --output-type mermaid",
"depcruise:github-actions:mermaid:affected": "dependency-cruise src test types tools --no-cache --config config/dependency-cruiser/base.mjs --output-type mermaid --affected $SHA",
"format": "prettier --cache --log-level warn --write \"{src,test}/**/*.{js,mjs}\" \"{config,test}/**/*.{js,json}\" \"tools/*.{js,mjs,json}\" \"{src,types}/**/*.{ts,mts}\" \"*.{json,yml,md}\" \"docs/{smcat-online-interpreter.js,*.md}\"",
"format:check": "prettier --cache --check \"{src,test}/**/*.{js,mjs}\" \"{config,test}/**/*.{js,json}\" \"tools/*.{js,mjs,json}\" \"{src,types}/**/*.{ts,mts}\" \"*.{json,yml,md}\" \"docs/{smcat-online-interpreter.js,*.md}\"",
"lint": "run-p lint:eslint format:check lint:types",
"lint:eslint": "eslint --cache --cache-location node_modules/.cache/eslint/cache.json --color src test config",
"lint:types": "run-p lint:types:*",
"lint:types:tsc": "tsc --noEmit --strict --types --noUnusedLocals --noUnusedParameters --pretty types/*.d.mts src/cli/*.d.mts src/parse/scxml/*.d.ts",
"lint:types:eslint": "eslint types/*.d.mts src/cli/*.d.mts src/parse/scxml/*.d.ts",
"lint:eslint:clear-caches": "rm -rf node_modules/.cache/eslint/",
"lint:fix": "run-s lint:fix:eslint format lint:fix:types",
"lint:fix:eslint": "eslint --cache --cache-location node_modules/.cache/eslint/cache.json --fix --color src test config",
"lint:fix:types": "eslint --fix types/*.d.mts src/cli/*.d.mts src/parse/scxml/*.d.ts",
"prepack": "clean-pkg-json --dry | jq '.scripts = {test: \"echo for test, build and static analysis scripts: see the github repository\"}' > smaller-package.json && mv smaller-package.json package.json && prettier --cache --log-level warn --write --use-tabs package.json types",
"postpack": "git restore package.json types",
"prepare": "husky",
"scm:push": "run-p --aggregate-output scm:push:*",
"scm:push:github": "run-p --aggregate-output scm:push:github:*",
"scm:push:github:commits": "git push",
"scm:push:github:tags": "git push --tags",
"scm:push:gitlab-mirror": "run-p --aggregate-output scm:push:gitlab-mirror:*",
"scm:push:gitlab-mirror:commits": "git push gitlab-mirror",
"scm:push:gitlab-mirror:tags": "git push --tags gitlab-mirror",
"scm:push:bitbucket-mirror": "run-p --aggregate-output scm:push:bitbucket-mirror:*",
"scm:push:bitbucket-mirror:commits": "git push bitbucket-mirror",
"scm:push:bitbucket-mirror:tags": "git push --tags bitbucket-mirror",
"scm:stage": "git add .",
"test": "mocha --no-warnings",
"test:cover": "NODE_OPTIONS=--no-warnings c8 mocha",
"update-dependencies": "run-s upem:update upem:install lint:eslint:clear-caches lint:fix check",
"upem-outdated": "npm outdated --json --long | upem --dry-run",
"upem:install": "npm install",
"upem:update": "npm outdated --json --long | upem | pbcopy && pbpaste",
"version": "run-s build depcruise:graph scm:stage"
},
"files": [
"dist/",
"types/",
"package.json",
"README.md",
"LICENSE"
],
"keywords": [
"state",
"state chart",
"state diagram",
"state machine",
"finite state machine",
"fsm",
"uml",
"scxml"
],
"author": "Sander Verweij",
"license": "MIT",
"bin": {
"smcat": "dist/cli/main.mjs",
"state-machine-cat": "dist/cli/main.mjs"
},
"dependencies": {
"@hpcc-js/wasm-graphviz": "1.6.1",
"ajv": "8.17.1",
"fast-xml-parser": "4.5.0",
"handlebars": "4.7.8",
"he": "1.2.0",
"semver": "^7.6.2",
"traverse": "0.6.8"
},
"devDependencies": {
"@types/he": "1.2.3",
"@types/mocha": "10.0.8",
"@types/semver": "7.5.8",
"@typescript-eslint/eslint-plugin": "8.8.0",
"@typescript-eslint/parser": "8.8.0",
"c8": "10.1.2",
"clean-pkg-json": "1.2.0",
"dependency-cruiser": "16.4.2",
"esbuild": "0.24.0",
"eslint": "^8.57.1",
"eslint-config-moving-meadow": "4.0.2",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-budapestian": "6.0.0",
"eslint-plugin-eslint-comments": "3.2.0",
"eslint-plugin-import": "2.31.0",
"eslint-plugin-mocha": "10.5.0",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-security": "3.0.1",
"eslint-plugin-unicorn": "56.0.0",
"grammkit": "0.7.2",
"husky": "9.1.6",
"is-pdf": "1.0.0",
"is-png": "3.0.1",
"lint-staged": "15.2.10",
"mocha": "10.7.3",
"npm-run-all": "4.1.5",
"peggy": "4.1.1",
"prettier": "3.3.3",
"query-string": "9.1.0",
"ts-node": "10.9.2",
"tsx": "4.19.1",
"typescript": "5.6.2",
"upem": "9.0.4",
"watskeburt": "4.1.0",
"xml-name-validator": "5.0.0"
},
"engines": {
"node": "^18.17||>=20"
},
"upem": {
"policies": [
{
"package": "eslint",
"policy": "wanted",
"because": "@typescript-eslint/eslint-plugin 7.6.0 uses @typescript-eslint/parser 7.6.0 (currently _latest_) which isn't on eslint 9 yet (it peer requires ^8.56.0)"
},
{
"package": "traverse",
"policy": "pin",
"because": "with traverse 0.6.9 the website errors out with a 'index.js:24 Uncaught ReferenceError: global is not defined' (see comments in commit this line was added for full message)"
}
]
},
"browserslist": [
"last 1 Chrome version",
"last 1 Firefox version",
"last 1 Safari version"
],
"homepage": "https://state-machine-cat.js.org",
"repository": {
"type": "git",
"url": "git+https://github.com/sverweij/state-machine-cat.git"
},
"bugs": {
"url": "https://github.com/sverweij/state-machine-cat/issues"
}
}