2022-10-10 20:50:21 +08:00
|
|
|
{
|
2022-10-22 02:20:58 +08:00
|
|
|
"tasks": {
|
|
|
|
"clean": "rm -rf dist dist_bundle",
|
2023-01-15 18:33:09 +08:00
|
|
|
"check": "find web common server plugs cmd plug-api plugos -name '*.ts*' | xargs deno check",
|
2022-10-22 02:20:58 +08:00
|
|
|
"test": "deno test -A --unstable",
|
2023-01-15 18:35:32 +08:00
|
|
|
"build": "deno run -A --unstable build_plugs.ts && deno run -A --unstable build_web.ts",
|
|
|
|
"plugs": "deno run -A --unstable build_plugs.ts",
|
2023-01-13 22:41:29 +08:00
|
|
|
"watch-web": "deno run -A --unstable --check build_web.ts --watch",
|
2023-01-20 23:08:01 +08:00
|
|
|
"server": "deno run -A --unstable --check silverbullet.ts",
|
2022-10-24 19:51:26 +08:00
|
|
|
"watch-server": "deno run -A --unstable --check --watch silverbullet.ts",
|
2022-12-30 03:33:40 +08:00
|
|
|
"watch-plugs": "deno run -A --unstable --check build_plugs.ts -w",
|
2023-05-07 15:54:01 +08:00
|
|
|
"compile": "mkdir -p bin && deno compile -A --unstable --include plugos/environments/sandbox_worker.ts --include plugos/sqlite/worker.ts -o bin/silverbullet silverbullet.ts",
|
|
|
|
"server:dist:linux-x86_64": "deno compile -A --unstable --target x86_64-unknown-linux-gnu --include plugos/environments/sandbox_worker.ts --include plugos/sqlite/worker.ts silverbullet.ts -o silverbullet && zip silverbullet-server-linux-x86_64.zip silverbullet",
|
|
|
|
"server:dist:darwin-x86_64": "deno compile -A --unstable --target x86_64-apple-darwin --include plugos/environments/sandbox_worker.ts --include plugos/sqlite/worker.ts silverbullet.ts -o silverbullet && zip silverbullet-server-darwin-x86_64.zip silverbullet",
|
|
|
|
"server:dist:darwin-aarch64": "deno compile -A --unstable --target aarch64-apple-darwin --include plugos/environments/sandbox_worker.ts --include plugos/sqlite/worker.ts silverbullet.ts -o silverbullet && zip silverbullet-server-darwin-aarch64.zip silverbullet",
|
|
|
|
"server:dist:windows-x86_64": "deno compile -A --unstable --target x86_64-pc-windows-msvc --include plugos/environments/sandbox_worker.ts --include plugos/sqlite/worker.ts silverbullet.ts -o silverbullet.exe && zip silverbullet-server-windows-x86_64.zip silverbullet.exe",
|
2022-10-24 19:51:26 +08:00
|
|
|
// Regenerates some bundle files (checked into the repo)
|
2022-10-28 22:17:40 +08:00
|
|
|
// Install lezer-generator with "npm install -g @lezer/generator"
|
2023-05-07 15:54:01 +08:00
|
|
|
"generate": "lezer-generator common/markdown_parser/query.grammar -o common/markdown_parser/parse-query.js",
|
2023-01-04 17:45:11 +08:00
|
|
|
// Install npm dependencies for desktop app
|
2023-01-08 19:24:12 +08:00
|
|
|
"desktop:deps": "cd desktop && npm install",
|
2023-01-04 17:45:11 +08:00
|
|
|
// Run the desktop app for local development
|
|
|
|
"desktop:run": "cd desktop && npm start",
|
|
|
|
// Build the desktop app as a package for this platform
|
2023-05-07 15:54:01 +08:00
|
|
|
"desktop:build": "deno task build && deno task compile && cd desktop && npm run make",
|
2023-01-08 19:24:12 +08:00
|
|
|
// Mobile
|
2023-02-28 17:13:52 +08:00
|
|
|
"mobile:deps": "cd mobile && npm install",
|
|
|
|
"mobile:clean-build": "deno task clean && deno task plugs && deno run -A --unstable --check build_mobile.ts && cd mobile && npx cap sync",
|
2023-01-21 18:10:46 +08:00
|
|
|
"mobile:build": "deno run -A --unstable --check build_mobile.ts && cd mobile && npx cap copy"
|
2022-10-22 02:20:58 +08:00
|
|
|
},
|
|
|
|
|
2022-10-12 17:47:13 +08:00
|
|
|
"compilerOptions": {
|
|
|
|
"lib": ["dom", "dom.iterable", "dom.asynciterable", "deno.ns"],
|
|
|
|
"jsx": "react-jsx",
|
|
|
|
"jsxImportSource": "https://esm.sh/preact@10.11.1"
|
|
|
|
},
|
|
|
|
"importMap": "import_map.json",
|
|
|
|
"lint": {
|
|
|
|
"files": {
|
|
|
|
"exclude": [
|
|
|
|
"dist",
|
|
|
|
"dist_bundle"
|
|
|
|
]
|
2022-10-10 20:50:21 +08:00
|
|
|
},
|
2022-10-12 17:47:13 +08:00
|
|
|
"rules": {
|
|
|
|
"exclude": ["no-explicit-any"]
|
|
|
|
}
|
|
|
|
},
|
2022-10-19 15:55:00 +08:00
|
|
|
"test": {
|
|
|
|
"files": {
|
2022-10-21 16:00:43 +08:00
|
|
|
"exclude": ["plugos/forked", "plugos/sqlite/deno-sqlite"]
|
2022-10-19 15:55:00 +08:00
|
|
|
}
|
|
|
|
},
|
2022-10-12 17:47:13 +08:00
|
|
|
"fmt": {
|
|
|
|
"files": {
|
2022-10-16 01:02:56 +08:00
|
|
|
"exclude": [
|
|
|
|
"dist",
|
|
|
|
"dist_bundle",
|
2023-01-23 01:53:14 +08:00
|
|
|
"desktop",
|
|
|
|
"mobile",
|
2022-10-16 01:02:56 +08:00
|
|
|
"pages",
|
|
|
|
"website",
|
2023-01-23 01:53:14 +08:00
|
|
|
"website_build",
|
2022-10-16 01:02:56 +08:00
|
|
|
"test_space",
|
2023-01-23 01:53:14 +08:00
|
|
|
"plugos/environments/worker_bundle.json",
|
|
|
|
"README.md"
|
2022-10-16 01:02:56 +08:00
|
|
|
]
|
2022-10-10 20:50:21 +08:00
|
|
|
}
|
|
|
|
}
|
2022-10-12 17:47:13 +08:00
|
|
|
}
|