Skip to content

Commit 982bb0e

Browse files
committed
chore: build types when bundling
1 parent a2f93cf commit 982bb0e

File tree

1 file changed

+65
-64
lines changed

1 file changed

+65
-64
lines changed

package.json

Lines changed: 65 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,67 @@
11
{
2-
"name": "q5",
3-
"version": "3.3.2",
4-
"description": "Beginner friendly graphics powered by WebGPU and optimized for interactive art!",
5-
"author": "quinton-ashley",
6-
"contributors": [
7-
"evanalulu",
8-
"Tezumie",
9-
"ormaq",
10-
"Dukemz",
11-
"LingDong-"
12-
],
13-
"license": "LGPL-3.0",
14-
"homepage": "https://q5js.org/home",
15-
"main": "q5-server.js",
16-
"types": "q5.d.ts",
17-
"funding": [
18-
{
19-
"type": "patreon",
20-
"url": "https://www.patreon.com/q5play"
21-
},
22-
{
23-
"type": "ko-fi",
24-
"url": "https://ko-fi.com/q5play"
25-
},
26-
{
27-
"type": "github",
28-
"url": "https://github.com/sponsors/quinton-ashley"
29-
}
30-
],
31-
"scripts": {
32-
"bundle": "cat src/q5-core.js src/q5-canvas.js src/q5-c2d-canvas.js src/q5-c2d-shapes.js src/q5-c2d-image.js src/q5-c2d-soft-filters.js src/q5-c2d-text.js src/q5-color.js src/q5-display.js src/q5-dom.js src/q5-fes.js src/q5-input.js src/q5-math.js src/q5-record.js src/q5-sound.js src/q5-util.js src/q5-vector.js src/q5-webgpu.js > q5.js",
33-
"min": "terser q5.js --compress ecma=2025 --mangle > q5.min.js",
34-
"dist": "bun bundle && bun min",
35-
"dist-p5play": "bun dist && cp q5.js ../../web/p5play-web/v3/q5.js && cp q5.min.js ../../web/p5play-web/v3/q5.min.js",
36-
"tests": "jest test",
37-
"v": "npm version patch --force",
38-
"V": "npm version minor --force",
39-
"version": "git add -A",
40-
"postversion": "git push"
41-
},
42-
"repository": {
43-
"type": "git",
44-
"url": "git+https://github.com/q5js/q5.js.git"
45-
},
46-
"bugs": {
47-
"url": "https://github.com/q5js/q5.js/issues"
48-
},
49-
"keywords": [
50-
"q5.js",
51-
"q5js",
52-
"q5xjs",
53-
"p5",
54-
"p5js",
55-
"p5.js",
56-
"p5xjs"
57-
],
58-
"devDependencies": {
59-
"typescript": "^5.9.2",
60-
"@types/bun": "^1.2.20",
61-
"jest-cli": "^29.7.0",
62-
"jsdom": "^25.0.1",
63-
"skia-canvas": "^1.0.2",
64-
"json2csv": "^6.0.0-alpha.2"
65-
}
2+
"name": "q5",
3+
"version": "3.3.2",
4+
"description": "Beginner friendly graphics powered by WebGPU and optimized for interactive art!",
5+
"author": "quinton-ashley",
6+
"contributors": [
7+
"evanalulu",
8+
"Tezumie",
9+
"ormaq",
10+
"Dukemz",
11+
"LingDong-"
12+
],
13+
"license": "LGPL-3.0",
14+
"homepage": "https://q5js.org/home",
15+
"main": "q5-server.js",
16+
"types": "q5.d.ts",
17+
"funding": [
18+
{
19+
"type": "patreon",
20+
"url": "https://www.patreon.com/q5play"
21+
},
22+
{
23+
"type": "ko-fi",
24+
"url": "https://ko-fi.com/q5play"
25+
},
26+
{
27+
"type": "github",
28+
"url": "https://github.com/sponsors/quinton-ashley"
29+
}
30+
],
31+
"scripts": {
32+
"bundle": "bun build-types && cat src/q5-core.js src/q5-canvas.js src/q5-c2d-canvas.js src/q5-c2d-shapes.js src/q5-c2d-image.js src/q5-c2d-soft-filters.js src/q5-c2d-text.js src/q5-color.js src/q5-display.js src/q5-dom.js src/q5-fes.js src/q5-input.js src/q5-math.js src/q5-record.js src/q5-sound.js src/q5-util.js src/q5-vector.js src/q5-webgpu.js > q5.js",
33+
"min": "terser q5.js --compress ecma=2025 --mangle > q5.min.js",
34+
"dist": "bun bundle && bun min",
35+
"dist-p5play": "bun dist && cp q5.js ../../web/p5play-web/v3/q5.js && cp q5.min.js ../../web/p5play-web/v3/q5.min.js",
36+
"build-types": "bun types/build-types.ts",
37+
"tests": "jest test",
38+
"v": "npm version patch --force",
39+
"V": "npm version minor --force",
40+
"version": "git add -A",
41+
"postversion": "git push"
42+
},
43+
"repository": {
44+
"type": "git",
45+
"url": "git+https://github.com/q5js/q5.js.git"
46+
},
47+
"bugs": {
48+
"url": "https://github.com/q5js/q5.js/issues"
49+
},
50+
"keywords": [
51+
"q5.js",
52+
"q5js",
53+
"q5xjs",
54+
"p5",
55+
"p5js",
56+
"p5.js",
57+
"p5xjs"
58+
],
59+
"devDependencies": {
60+
"typescript": "^5.9.2",
61+
"@types/bun": "^1.2.20",
62+
"jest-cli": "^29.7.0",
63+
"jsdom": "^25.0.1",
64+
"skia-canvas": "^1.0.2",
65+
"json2csv": "^6.0.0-alpha.2"
66+
}
6667
}

0 commit comments

Comments
 (0)