2022-10-10 12:50:21 +00:00
|
|
|
{
|
2022-10-21 18:20:58 +00:00
|
|
|
"tasks": {
|
2023-05-23 18:53:53 +00:00
|
|
|
"clean": "rm -rf dist dist_client_bundle dist_plug_bundle website_build",
|
2023-07-24 07:36:33 +00:00
|
|
|
"deep-clean-mac": "rm -f deno.lock && rm -rf $HOME/Library/Caches/deno && deno task clean",
|
2023-08-04 16:56:55 +00:00
|
|
|
"install": "deno install -f --unstable -A --importmap import_map.json silverbullet.ts",
|
2023-05-23 18:53:53 +00:00
|
|
|
"check": "find . -name '*.ts*' | xargs deno check",
|
2022-10-21 18:20:58 +00:00
|
|
|
"test": "deno test -A --unstable",
|
2023-05-23 18:53:53 +00:00
|
|
|
"build": "deno run -A build_plugs.ts && deno run -A --unstable build_web.ts",
|
|
|
|
"plugs": "deno run -A build_plugs.ts",
|
|
|
|
"server": "deno run -A --check silverbullet.ts",
|
2023-07-24 07:36:33 +00:00
|
|
|
|
|
|
|
"watch-web": "deno run -A --check build_web.ts --watch",
|
2023-05-23 18:53:53 +00:00
|
|
|
"watch-server": "deno run -A --check --watch silverbullet.ts",
|
|
|
|
"watch-plugs": "deno run -A --check build_plugs.ts -w",
|
2023-07-24 07:36:33 +00:00
|
|
|
|
2023-05-23 18:53:53 +00:00
|
|
|
"bundle": "deno run -A build_bundle.ts",
|
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-07-02 13:43:02 +00:00
|
|
|
"generate": "lezer-generator common/markdown_parser/query.grammar -o common/markdown_parser/parse-query.js",
|
|
|
|
|
|
|
|
// Compile
|
|
|
|
"compile": "deno task bundle && deno compile -A -o silverbullet dist/silverbullet.js",
|
|
|
|
"server:dist:linux-x86_64": "deno task bundle && deno compile -A --target x86_64-unknown-linux-gnu dist/silverbullet.js -o silverbullet && zip silverbullet-server-linux-x86_64.zip silverbullet",
|
|
|
|
"server:dist:darwin-x86_64": "deno task bundle && deno compile -A --target x86_64-apple-darwin dist/silverbullet.js -o silverbullet && zip silverbullet-server-darwin-x86_64.zip silverbullet",
|
|
|
|
"server:dist:darwin-aarch64": "deno task bundle && deno task bundle && deno compile -A --target aarch64-apple-darwin dist/silverbullet.js -o silverbullet && zip silverbullet-server-darwin-aarch64.zip silverbullet",
|
|
|
|
"server:dist:windows-x86_64": "deno compile -A --target x86_64-pc-windows-msvc dist/silverbullet.js -o silverbullet.exe && zip silverbullet-server-windows-x86_64.zip silverbullet.exe"
|
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": {
|
2023-07-07 11:09:44 +00:00
|
|
|
"exclude": [
|
|
|
|
"dist",
|
|
|
|
"dist_bundle"
|
|
|
|
],
|
2022-10-12 09:47:13 +00:00
|
|
|
"rules": {
|
|
|
|
"exclude": ["no-explicit-any"]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"fmt": {
|
2023-07-07 11:09:44 +00:00
|
|
|
"exclude": [
|
|
|
|
"dist",
|
|
|
|
"dist_bundle",
|
|
|
|
"website",
|
|
|
|
"website_build",
|
|
|
|
"test_space",
|
|
|
|
"README.md"
|
|
|
|
]
|
2022-10-10 12:50:21 +00:00
|
|
|
}
|
2022-10-12 09:47:13 +00:00
|
|
|
}
|