-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
73 lines (73 loc) · 2.14 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
{
"name": "@charming-art/charming",
"version": "0.0.9",
"description": "The declarative language for computational art with high performance.",
"author": {
"name": "Bairui SU",
"url": "https://github.com/pearmini"
},
"license": "ISC",
"type": "module",
"main": "dist/es/index.js",
"module": "dist/es/index.js",
"jsdelivr": "dist/cm.umd.min.js",
"unpkg": "dist/cm.umd.min.js",
"exports": {
"./umd": "./dist/cm.umd.min.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/charming-art/charming.git"
},
"files": [
"dist/**/*.wasm",
"dist/**/*.js"
],
"scripts": {
"dev": "npm run build:rust && vite dev",
"test": "npm run test:lint && npm run test:format && npm run test:rust && npm run test:js",
"test:js": "vitest",
"test:rust": "cargo test --manifest-path ./rust/Cargo.toml",
"test:lint": "eslint src test",
"test:format": "prettier --check src test && cargo fmt --manifest-path ./rust/Cargo.toml --check",
"build": "npm run build:rust && npm run build:js",
"build:js": "rm -rf dist && rollup -c",
"build:rust": "rm -rf ./src/backend && wasm-pack build ./rust --out-dir ../src/backend --out-name index --target web",
"preview": "npm run build && vite preview",
"prepublishOnly": "npm run build"
},
"sideEffect": false,
"devDependencies": {
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-terser": "^0.4.3",
"@rollup/plugin-wasm": "^6.1.3",
"d3-geo": "^3.1.0",
"eslint": "^8.55.0",
"eslint-config-prettier": "^9.1.0",
"matter-js": "^0.19.0",
"pixelmatch": "^5.3.0",
"playwright": "^1.41.2",
"pngjs": "^7.0.0",
"prettier": "^3.1.0",
"rollup": "^3.29.4",
"rollup-plugin-polyfill-node": "^0.12.0",
"stats.js": "^0.17.0",
"toxiclibsjs": "^0.3.3",
"vite": "^4.4.9",
"vitest": "^0.34.6"
},
"dependencies": {
"d3-color": "^3.1.0",
"d3-path": "^3.1.0",
"d3-scale-chromatic": "^3.0.0",
"d3-timer": "^3.0.1",
"figlet": "^1.6.0"
},
"engines": {
"node": ">=14.18"
},
"publishConfig": {
"access": "public"
}
}