1
0
silverbullet/deno.jsonc

69 lines
2.5 KiB
Plaintext
Raw Normal View History

{
2022-10-21 18:20:58 +00:00
"tasks": {
"clean": "rm -rf dist dist_bundle",
"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",
"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",
"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)
// 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
"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
"desktop:build": "deno task build && deno task bundle && cd desktop && npm run make",
// Mobile
"mobile:deps": "cd mobile && npm install && npx cap sync",
"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-12 09:47:13 +00:00
"rules": {
"exclude": ["no-explicit-any"]
}
},
2022-10-19 07:55:00 +00:00
"test": {
"files": {
"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-12 09:47:13 +00:00
}