-
Notifications
You must be signed in to change notification settings - Fork 38
/
package.json
77 lines (77 loc) · 3.88 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
{
"name": "svg-sequence-diagram",
"version": "1.3.0",
"description": "Generates SVG Sequence Diagrams from code in the browser",
"homepage": "https://github.com/davidje13/SequenceDiagram",
"repository": {
"type": "git",
"url": "https://github.com/davidje13/SequenceDiagram.git"
},
"bugs": {
"url": "https://github.com/davidje13/SequenceDiagram/issues"
},
"license": "LGPL-3.0",
"files": [
"bin",
"fonts",
"lib"
],
"main": "lib/sequence-diagram.js",
"module": "lib/sequence-diagram.mjs",
"exports": {
"browser": {
"import": "./lib/sequence-diagram-web.mjs",
"require": "./lib/sequence-diagram-web.js"
},
"default": {
"import": "./lib/sequence-diagram.mjs",
"require": "./lib/sequence-diagram.js"
}
},
"bin": {
"svg-sequence-diagram": "bin/svg-sequence-diagram.mjs"
},
"eslintIgnore": [
"lib",
"web/lib",
"ephemeral",
"*FontData.mjs"
],
"scripts": {
"copy-third-party": "cat node_modules/codemirror/lib/codemirror.css node_modules/codemirror/addon/hint/show-hint.css > web/lib/codemirror.css",
"copy-fonts": "rm -r fonts || true; mkdir -p fonts/handlee fonts/liberation-fonts && cp fonts-raw/handlee/LICENSE fonts/handlee && cp fonts-raw/liberation-fonts/LICENSE fonts/liberation-fonts && ./dev-bin/crush-font.mjs < fonts-raw/handlee/Handlee.ttf > fonts/handlee/Handlee.ttf && ./dev-bin/crush-font.mjs < fonts-raw/liberation-fonts/LiberationMono-Bold.ttf > fonts/liberation-fonts/LiberationMono-Bold.ttf && ./dev-bin/crush-font.mjs < fonts-raw/liberation-fonts/LiberationMono-BoldItalic.ttf > fonts/liberation-fonts/LiberationMono-BoldItalic.ttf && ./dev-bin/crush-font.mjs < fonts-raw/liberation-fonts/LiberationMono-Italic.ttf > fonts/liberation-fonts/LiberationMono-Italic.ttf && ./dev-bin/crush-font.mjs < fonts-raw/liberation-fonts/LiberationMono-Regular.ttf > fonts/liberation-fonts/LiberationMono-Regular.ttf && ./dev-bin/crush-font.mjs < fonts-raw/liberation-fonts/LiberationSans-Bold.ttf > fonts/liberation-fonts/LiberationSans-Bold.ttf && ./dev-bin/crush-font.mjs < fonts-raw/liberation-fonts/LiberationSans-BoldItalic.ttf > fonts/liberation-fonts/LiberationSans-BoldItalic.ttf && ./dev-bin/crush-font.mjs < fonts-raw/liberation-fonts/LiberationSans-Italic.ttf > fonts/liberation-fonts/LiberationSans-Italic.ttf && ./dev-bin/crush-font.mjs < fonts-raw/liberation-fonts/LiberationSans-Regular.ttf > fonts/liberation-fonts/LiberationSans-Regular.ttf",
"lint": "eslint . --config eslintrc.js --ext .js --ext .mjs",
"generate-screenshots": "dev-bin/generate-screenshots.mjs README.md",
"minify-lib": "rm -r lib || true; rollup --config scripts/rollup.config.mjs",
"minify-web": "rm -r web/lib || true; rollup --config web/scripts/rollup.config.mjs && npm run copy-third-party",
"minify": "npm run minify-lib && npm run minify-web",
"prepublishOnly": "npm run minify-lib && npm test",
"start": "dev-bin/server.mjs",
"test": "npm run unit-test && npm run web-test && npm run lint && echo 'PASSED :)'",
"unit-test": "rollup --config spec/support/rollup.config.mjs && node --enable-source-maps node_modules/.bin/jasmine --config=spec/support/jasmine.json",
"web-test": "karma start spec/support/karma.conf.js --single-run",
"web-test:manual": "MANUAL=1 karma start spec/support/karma.conf.js"
},
"devDependencies": {
"@rollup/plugin-multi-entry": "6.x",
"@rollup/plugin-node-resolve": "15.x",
"@rollup/plugin-replace": "5.x",
"@rollup/plugin-terser": "0.4.x",
"codemirror": "5.65.x",
"eslint": "8.x",
"eslint-plugin-jasmine": "4.x",
"jasmine": "4.x",
"karma": "6.x",
"karma-chrome-launcher": "3.x",
"karma-detect-browsers": "2.x",
"karma-firefox-launcher": "2.x",
"karma-jasmine": "5.x",
"karma-safari-launcher": "1.x",
"pngcrush": "3.x",
"rollup": "3.x",
"svg2png": "4.x"
},
"dependencies": {
"opentype.js": "1.x"
}
}