2022-10-10 12:50:21 +00:00
|
|
|
{
|
2022-10-21 18:20:58 +00:00
|
|
|
"tasks": {
|
|
|
|
"clean": "rm -rf dist dist_bundle",
|
2023-01-20 15:08:01 +00:00
|
|
|
"install": "deno install -f -A --unstable --importmap import_map.json silverbullet.ts",
|
2023-01-15 10:33:09 +00:00
|
|
|
"check": "find web common server plugs cmd plug-api plugos -name '*.ts*' | xargs deno check",
|
2022-10-21 18:20:58 +00:00
|
|
|
"test": "deno test -A --unstable",
|
2023-01-15 10:35:32 +00: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 14:41:29 +00:00
|
|
|
"watch-web": "deno run -A --unstable --check build_web.ts --watch",
|
2023-01-20 15:08:01 +00:00
|
|
|
"server": "deno run -A --unstable --check silverbullet.ts",
|
2022-10-24 11:51:26 +00:00
|
|
|
"watch-server": "deno run -A --unstable --check --watch silverbullet.ts",
|
2022-10-21 18:20:58 +00:00
|
|
|
// The only reason to run a shell script is that deno task doesn't support globs yet (e.g. *.plug.yaml)
|
2022-12-29 19:33:40 +00:00
|
|
|
"watch-plugs": "deno run -A --unstable --check build_plugs.ts -w",
|
2022-11-26 18:05:55 +00:00
|
|
|
"bundle": "deno bundle silverbullet.ts dist/silverbullet.js",
|
2022-10-24 11:51:26 +00:00
|
|
|
// Regenerates some bundle files (checked into the repo)
|
2022-10-28 14:17:40 +00:00
|
|
|
// Install lezer-generator with "npm install -g @lezer/generator"
|
2023-01-04 09:45:11 +00:00
|
|
|
"generate": "deno run -A plugos/gen.ts && lezer-generator common/markdown_parser/query.grammar -o common/markdown_parser/parse-query.js",
|
|
|
|
// Install npm dependencies for desktop app
|
2023-01-08 11:24:12 +00:00
|
|
|
"desktop:deps": "cd desktop && npm install",
|
2023-01-04 09:45:11 +00: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-01-08 11:24:12 +00:00
|
|
|
"desktop:build": "deno task build && deno task bundle && cd desktop && npm run make",
|
|
|
|
// Mobile
|
|
|
|
"mobile:deps": "cd mobile && npm install && npx cap sync",
|
2023-01-21 10:10:46 +00:00
|
|
|
"mobile:clean-build": "deno task clean && deno task plugs && deno run -A --unstable --check build_mobile.ts && cd mobile && npx cap copy",
|
|
|
|
"mobile:build": "deno run -A --unstable --check build_mobile.ts && cd mobile && npx cap copy"
|
2022-10-21 18:20:58 +00:00
|
|
|
},
|
|
|
|
|
2022-10-12 09:47:13 +00: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 12:50:21 +00:00
|
|
|
},
|
2022-10-12 09:47:13 +00:00
|
|
|
"rules": {
|
|
|
|
"exclude": ["no-explicit-any"]
|
|
|
|
}
|
|
|
|
},
|
2022-10-19 07:55:00 +00:00
|
|
|
"test": {
|
|
|
|
"files": {
|
2022-10-21 08:00:43 +00:00
|
|
|
"exclude": ["plugos/forked", "plugos/sqlite/deno-sqlite"]
|
2022-10-19 07:55:00 +00:00
|
|
|
}
|
|
|
|
},
|
2022-10-12 09:47:13 +00:00
|
|
|
"fmt": {
|
|
|
|
"files": {
|
2022-10-15 17:02:56 +00:00
|
|
|
"exclude": [
|
|
|
|
"dist",
|
|
|
|
"dist_bundle",
|
2023-01-22 17:53:14 +00:00
|
|
|
"desktop",
|
|
|
|
"mobile",
|
2022-10-15 17:02:56 +00:00
|
|
|
"pages",
|
|
|
|
"website",
|
2023-01-22 17:53:14 +00:00
|
|
|
"website_build",
|
2022-10-15 17:02:56 +00:00
|
|
|
"test_space",
|
2023-01-22 17:53:14 +00:00
|
|
|
"plugos/environments/worker_bundle.json",
|
|
|
|
"README.md"
|
2022-10-15 17:02:56 +00:00
|
|
|
]
|
2022-10-10 12:50:21 +00:00
|
|
|
}
|
|
|
|
}
|
2022-10-12 09:47:13 +00:00
|
|
|
}
|