-
Notifications
You must be signed in to change notification settings - Fork 4
/
package.json
116 lines (116 loc) · 6.23 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
{
"name": "mscgenjs",
"version": "7.0.2",
"description": "Sequence chart rendering library",
"main": "dist/cjs/index.js",
"module": "dist/es/index.js",
"sideEffects": false,
"files": [
"dist/",
"types/",
"COPYING",
"LICENSE.md",
"package.json",
"README.md"
],
"devDependencies": {
"@types/node": "22.5.4",
"ajv": "8.17.1",
"c8": "10.1.2",
"clean-pkg-json": "1.2.0",
"dependency-cruiser": "16.4.1",
"fast-xml-parser": "4.5.0",
"jsdom": "^25.0.0",
"npm-run-all": "4.1.5",
"peggy": "4.0.3",
"prettier": "3.3.3",
"ts-loader": "9.5.1",
"tsx": "4.19.0",
"typescript": "^5.6.2",
"upem": "9.0.4",
"webpack": "5.94.0",
"webpack-cli": "5.1.4"
},
"scripts": {
"build": "npm-run-all build:clean build:prereq --parallel build:es build:cjs build:bundle",
"build:prereq": "npm-run-all --parallel build:csstemplates build:compile:peggy build:extractversion",
"build:es": "npm-run-all build:es:clean build:es:copy build:es:compile:typescript format:dist:es",
"build:cjs": "npm-run-all build:cjs:clean build:cjs:copy build:cjs:compile:typescript format:dist:cjs",
"build:bundle": "webpack",
"build:clean": "npm-run-all --parallel build:cjs:clean build:es:clean build:clean:parse build:clean:csstemplates",
"build:clean:csstemplates": "rm -f src/render/graphics/csstemplates.json",
"build:clean:parse": "rm -rf src/parse/*parser.js",
"build:csstemplates": "node tools/to-csstemplates-js.utility.js > src/render/graphics/csstemplates.json",
"build:compile:peggy": "npm-run-all --parallel build:compile:peggy:mscgen build:compile:peggy:msgenny build:compile:peggy:xu",
"build:compile:peggy:mscgen": "peggy --extra-options-file config/.peggy-config.json -o src/parse/mscgenparser.js src/parse/peg/mscgenparser.peggy",
"build:compile:peggy:msgenny": "peggy --extra-options-file config/.peggy-config.json -o src/parse/msgennyparser.js src/parse/peg/msgennyparser.peggy",
"build:compile:peggy:xu": "peggy --extra-options-file config/.peggy-config.json -o src/parse/xuparser.js src/parse/peg/xuparser.peggy",
"build:extractversion": "node tools/create-stripped-packagejson.utility.js > src/version.json",
"build:cjs:clean": "rm -rf dist/cjs/*",
"build:cjs:compile:typescript": "tsc --project src/tsconfig.cjs.json",
"build:cjs:copy": "npm-run-all build:cjs:copy:mkdir --parallel build:cjs:copy:parser build:cjs:copy:csstemplates build:cjs:copy:version",
"build:cjs:copy:mkdir": "mkdir -p dist/cjs/parse dist/cjs/render/graphics",
"build:cjs:copy:parser": "cp src/parse/*.js* dist/cjs/parse",
"build:cjs:copy:csstemplates": "cp src/render/graphics/csstemplates.json dist/cjs/render/graphics/csstemplates.json",
"build:cjs:copy:version": "cp src/version.json dist/cjs/.",
"build:es:clean": "rm -rf dist/es/*",
"build:es:compile:typescript": "tsc --project src/tsconfig.es.json",
"build:es:copy": "npm-run-all build:es:copy:mkdir --parallel build:es:copy:parser build:es:copy:csstemplates build:es:copy:version",
"build:es:copy:mkdir": "mkdir -p dist/es/parse dist/es/render/graphics",
"build:es:copy:parser": "cp src/parse/*.js* dist/es/parse",
"build:es:copy:csstemplates": "cp src/render/graphics/csstemplates.json dist/es/render/graphics/csstemplates.json",
"build:es:copy:version": "cp src/version.json dist/es/.",
"check": "npm-run-all depcruise test:cover",
"check:full": "npm-run-all --parallel depcruise test:cover",
"depcruise": "depcruise src test",
"depcruise:graph": "npm-run-all --parallel depcruise:graph:*",
"depcruise:graph:html": "depcruise src test --output-type dot | dot -T svg | tee docs/dependencygraph.svg | depcruise-wrap-stream-in-html > docs/dependencygraph.html",
"depcruise:graph:png": "depcruise src test --output-type dot | dot -Gdpi=192 -T png | pngquant - > docs/dependencygraph.png",
"format": "prettier --log-level warn --write \"{src,test,tools,types,.github,doc,docs}/**/*.{md,ts,js,json,yml}\" *.{md,json,js,yml}",
"format:dist:cjs": "prettier --log-level warn --write --use-tabs dist/cjs/**",
"format:dist:es": "prettier --log-level warn --write --use-tabs dist/es/**",
"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",
"prepublishOnly": "npm run check",
"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 .",
"version": "npm-run-all build depcruise:graph scm:stage",
"test": "tsx --disable-warning=DEP0040 --test-reporter ./tools/dot-with-summary.reporter.mjs --test test/*.test.ts test/**/*.test.ts test/**/**/*.test.ts",
"test:node18": "tsx --test-reporter ./tools/dot-with-summary.reporter.mjs --test test/*.test.ts test/**/*.test.ts test/**/**/*.test.ts",
"test:cover": "c8 npm test",
"update-dependencies": "npm-run-all upem:update upem:install build check:full",
"upem-outdated": "npm outdated --json --long | upem --dry-run",
"upem:update": "npm outdated --json --long | upem | pbcopy && pbpaste",
"upem:install": "npm install",
"watch": "tsc --project src/tsconfig.cjs.json --watch"
},
"repository": {
"type": "git",
"url": "git+https://github.com/mscgenjs/mscgenjs-core.git"
},
"author": "Sander Verweij",
"license": "GPL-3.0",
"keywords": [
"mscgen",
"sequence chart",
"sequence diagram",
"xu",
"msgenny"
],
"engines": {
"node": "^18||>=20"
},
"types": "./types/mscgen.d.ts",
"bugs": {
"url": "https://github.com/mscgenjs/mscgenjs-core/issues"
},
"homepage": "https://github.com/mscgenjs/mscgenjs-core"
}