Skip to content

Commit

Permalink
Follow updated slack.json format (#3)
Browse files Browse the repository at this point in the history
* Rename the hooks

* restructure

* Add hooks key

* Update src/mod.ts

Co-authored-by: Fil Maj <[email protected]>

* Fix formatting

* Bump runtime to 0.0.4

Co-authored-by: Fil Maj <[email protected]>
  • Loading branch information
srajiang and Fil Maj authored Apr 12, 2022
1 parent 7d16c16 commit 7866ffb
Showing 1 changed file with 10 additions and 18 deletions.
28 changes: 10 additions & 18 deletions src/mod.ts
Original file line number Diff line number Diff line change
@@ -1,26 +1,18 @@
export const BUILDER_TAG = "[email protected]";
export const RUNTIME_TAG = "[email protected].3";
export const RUNTIME_TAG = "[email protected].4";

export const projectScripts = () => {
return {
"manifest": {
"script": {
"default":
`deno run -q --unstable --import-map=import_map.json --allow-read --allow-net https://deno.land/x/${BUILDER_TAG}/mod.ts --manifest`,
},
},
"package": {
"script": {
"default":
`deno run -q --unstable --import-map=import_map.json --allow-read --allow-write --allow-net https://deno.land/x/${BUILDER_TAG}/mod.ts`,
},
"hooks": {
"get-manifest":
`deno run -q --unstable --import-map=import_map.json --allow-read --allow-net https://deno.land/x/${BUILDER_TAG}/mod.ts --manifest`,
"build":
`deno run -q --unstable --import-map=import_map.json --allow-read --allow-write --allow-net https://deno.land/x/${BUILDER_TAG}/mod.ts`,
"start":
`deno run -q --unstable --import-map=import_map.json --allow-read --allow-net https://deno.land/x/${RUNTIME_TAG}/local-run.ts`,
},
"run": {
"script": {
"default":
`deno run -q --unstable --import-map=import_map.json --allow-read --allow-net https://deno.land/x/${RUNTIME_TAG}/mod.ts`,
},
"watcher": {
"config": {
"watch": {
"filter_regex": "^manifest\\.(ts|js|json)$",
"paths": ["."],
},
Expand Down

0 comments on commit 7866ffb

Please sign in to comment.