-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
89 lines (89 loc) · 3.29 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
{
"name": "x-plot",
"author": "stagas",
"short": "stagas/x-plot",
"description": "A Web Component that plots zoomable and pannable waveforms.",
"version": "3.0.1",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://[email protected]:stagas/x-plot.git"
},
"keywords": [
"plot",
"zoom",
"waveform",
"graph",
"audio",
"wave"
],
"module": "dist/esm/index.js",
"main": "dist/cjs/index.js",
"exports": {
".": {
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js"
}
},
"files": [
"dist",
"!**/*.tsbuildinfo"
],
"scripts": {
"start:web": "vite-open example/web --https",
"start:web:debugging": "vite-open example/web --https --debugging-this",
"start:node": "onchange -i src example -- swcno example/node.ts",
"build:watch": "fastpm autolink && tsc -p tsconfig.dist.json --outDir dist/types --watch & swc -w -C module.type=commonjs ./src -d dist/cjs -w & swc -w -C module.type=es6 ./src -d dist/esm",
"build:dist": "npm run build:bundle && npm run build:min",
"cov:watch": "utr --coverage --watch",
"clean": "rimraf dist",
"docs": "dokio -o README.md && dprint fmt README.md",
"test": "npm run test:node && npm run test:web",
"test:node": "if find test -type f -iregex '.*\\.spec\\.\\(js\\|jsx\\|ts\\|tsx\\)$' | grep -q .; then utr 'test/*.spec.{js,jsx,ts,tsx}'; else echo no node tests; fi",
"test:web": "if find test -type f -iregex '.*\\.spec\\.web\\.\\(js\\|jsx\\|ts\\|tsx\\)$' | grep -q .; then utr --browser 'test/*.spec.web.{js,jsx,ts,tsx}'; else echo no web tests; fi",
"cov": "utr --coverage",
"build": "npm run build:cjs & npm run build:esm & npm run build:types && echo done.",
"build:cjs": "swc -C module.type=commonjs ./src -d dist/cjs",
"build:esm": "swc -C module.type=es6 ./src -d dist/esm && echo '{\"type\":\"module\"}' >dist/esm/package.json",
"build:types": "tsc -p tsconfig.dist.json --outDir dist/types",
"build:bundle": "bunzee src/index.ts \"dist/$(cat package.json | jq -r '.name').js\"",
"build:min": "bunzee -m src/index.ts \"dist/$(cat package.json | jq -r '.name').min.js\"",
"lint": "eslint src && dprint check",
"lint:fix": "eslint --fix src && dprint fmt",
"prepack": "npm run clean && npm run build && (npm run build:dist || echo unable to bundle)",
"prepack:dry": "npm pack --dry-run",
"prepush": "npm run lint && npm run test",
"prepare": "husky install"
},
"devDependencies": {
"@n1kk/intspector": "1.0.2",
"@swc/cli": "0.1.57",
"@swc/core": "1.2.218",
"@tsconfig/node16": "1.0.3",
"@types/audioworklet": "0.0.30",
"@types/jest": "27.5.2",
"@types/node": "17.0.45",
"@types/webmidi": "2.0.6",
"@typescript-eslint/eslint-plugin": "5.31.0",
"@typescript-eslint/parser": "5.31.0",
"bunzee": "^1.0.0",
"dokio": "^0.0.2",
"dprint": "0.30.3",
"eslint": "8.20.0",
"eslint-config-html-jsx": "^1.0.0",
"eslint-plugin-import": "2.26.0",
"eslint-plugin-react": "7.30.1",
"husky": "7.0.4",
"onchange": "7.1.0",
"pull-configs": "^0.2.0",
"rimraf": "3.0.2",
"swcno": "0.1.1",
"typescript": "4.7.3",
"utr": "^0.2.0",
"vite-open": "^3.0.1"
},
"dependencies": {
"sigl": "^1.0.0"
},
"types": "./dist/types/index.d.ts"
}