2022-10-10 12:50:21 +00:00
{
2022-10-21 18:20:58 +00:00
"tasks": {
"clean": "rm -rf dist dist_bundle",
2022-10-24 14:06:36 +00:00
"install": "deno install -f -A --unstable silverbullet.ts",
2022-10-21 18:20:58 +00:00
"test": "deno test -A --unstable",
2023-01-13 14:41:29 +00:00
"build": "deno run -A --unstable --check build_plugs.ts && deno run -A --unstable --check build_web.ts",
2023-01-08 11:24:12 +00:00
"plugs": "deno run -A --unstable --check build_plugs.ts",
2023-01-13 14:41:29 +00:00
"watch-web": "deno run -A --unstable --check build_web.ts --watch",
2023-01-08 11:24:12 +00:00
"watch-mobile": "deno run -A --unstable --check build_mobile.ts --watch",
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-13 14:41:29 +00:00
"mobile:build": "deno task clean && deno task plugs && deno run -A --unstable --check build_mobile.ts && cd mobile && npx cap copy && npx cap open ios"
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",
"pages",
"website",
"test_space",
"plugos/environments/worker_bundle.json"
]
2022-10-10 12:50:21 +00:00
}
}
2022-10-12 09:47:13 +00:00
}