Files
bworld/deno.json
T
2026-11-15 16:49:13 -03:00

52 lines
2.4 KiB
JSON

{
"tasks": {
"build": "deno run -A build.ts",
"serve:client": "deno run --allow-net --allow-read jsr:@std/http/file-server build",
"server": "deno run --unstable-worker-options --allow-net --allow-read --allow-write --allow-env server/main.ts",
"new-mod": "deno run --allow-read --allow-write tools/new_mod.ts",
"import": "deno run --allow-read --allow-write tools/importer.ts",
"check-mods": "deno run --allow-read --allow-run tools/check_mods.ts",
"pack-mod": "deno run --allow-read --allow-write --allow-run --allow-env tools/pack_mod.ts",
"test": "deno test --allow-read --allow-write --allow-run --allow-net tests/",
"bench": "deno bench --allow-read --allow-write --allow-run tests/",
"desktop": "deno run -A build.ts --once && deno desktop --allow-read --allow-write --allow-net --allow-ffi --allow-env=CUBI_SERVER,CUBI_CLIENT_UPDATES,HOME,USERPROFILE,APPDATA,XDG_DATA_HOME,DEBUG --include build --include server_mods --include server/game/worker.ts --include server/game/worldgen_worker.ts --include server/content_worker.ts --include desktop/config.json desktop/main.ts && deno run --allow-read --allow-write desktop/linux_launcher.ts dist/cubi",
"desktop-all": "deno run -A tools/desktop_all.ts"
},
"compilerOptions": {
"lib": ["dom", "dom.asynciterable", "dom.iterable", "deno.ns", "deno.unstable", "deno.webgpu"]
},
"unstable": ["bundle", "raw-imports", "worker-options"],
"fmt": {
"useTabs": true,
"indentWidth": 4,
"lineWidth": 120,
"newLineKind": "lf",
"exclude": ["desktop/*.md"]
},
"imports": {
"@/": "./",
"@std/msgpack": "jsr:@std/msgpack@^1.0.3",
"cubi/server": "./common/mod_api/server.ts",
"cubi/client": "./common/mod_api/client.ts",
"cubi/worldgen": "./common/mod_api/worldgen.ts",
"cubi/shared": "./common/mod_api/shared.ts",
"cubi/content": "./common/mod_api/content.ts",
"cubi/engine": "./common/mod_api/engine.ts",
"@gfx/canvas-wasm": "jsr:@gfx/canvas-wasm@^0.4.2",
"@paulaboks/rng": "jsr:@paulaboks/rng@^0.0.3",
"@std/assert": "jsr:@std/assert@^1.0.0",
"@std/fs": "jsr:@std/fs@^1.0.23",
"@std/http": "jsr:@std/http@^1.0.23",
"@std/path": "jsr:@std/path@^1.0.0",
"fflate": "npm:fflate@^0.8.2",
"gl-matrix": "npm:gl-matrix@^3.4.4",
"marked": "npm:marked@^17.0.3",
"zod": "jsr:@zod/zod@^4.6.7"
},
"desktop": {
"app": { "name": "cubi", "identifier": "com.bworld.game" },
"backend": "cef",
"output": { "macos": "./dist/cubi.app", "windows": "./dist/cubi", "linux": "./dist/cubi" }
}
}