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 11:51:26 +00:00
|
|
|
"install": "deno install -f -A --unstable plugos/bin/plugos-bundle.ts && deno install -f -A --unstable silverbullet.ts",
|
2022-10-21 18:20:58 +00:00
|
|
|
"test": "deno test -A --unstable",
|
|
|
|
"build": "./build_plugs.sh && deno run -A --unstable --check build.ts",
|
|
|
|
"watch-web": "deno run -A --unstable --check build.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)
|
|
|
|
"watch-plugs": "./build_plugs.sh --watch",
|
2022-10-24 11:51:26 +00:00
|
|
|
"bundle": "deno bundle --importmap import_map.json silverbullet.ts dist/silverbullet.js",
|
|
|
|
// Regenerates some bundle files (checked into the repo)
|
2022-10-21 18:20:58 +00:00
|
|
|
"generate": "deno run -A plugos/gen.ts"
|
|
|
|
},
|
|
|
|
|
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
|
|
|
}
|