Skip to content

Commit 4bab218

Browse files
committed
just use command dependencies
1 parent 2b01d41 commit 4bab218

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

deno.json

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@
3131
},
3232
"start": {
3333
"description": "Starts a development server which automatically rebuilds the project whenever there are changes to the code. However, there is no server that serves frontend and you have to manually refresh the page.",
34-
"command": "(trap 'kill 0' SIGINT; deno run --permission-set=build-dictionary --no-prompt --frozen --cached-only --watch --no-clear-screen ./src/dictionary/watch.ts & deno bundle --output=./dist/main.js --sourcemap=linked --platform=browser --format=iife --watch ./src/main.ts)",
3534
"dependencies": [
36-
"soft-build-dictionary"
35+
"watch-code",
36+
"watch-dictionary"
3737
]
3838
},
3939
"repl": {
@@ -47,6 +47,20 @@
4747
"description": "Builds the dictionary at `./src/dictionary/global_dictionary.ts`",
4848
"command": "deno run --permission-set=build-dictionary --no-prompt --frozen --cached-only ./src/dictionary/build.ts"
4949
},
50+
"watch-dictionary": {
51+
"description": "Rebuild the dictionary everytime it is updated",
52+
"command": "deno run --permission-set=build-dictionary --no-prompt --frozen --cached-only --watch --no-clear-screen ./src/dictionary/watch.ts",
53+
"dependencies": [
54+
"soft-build-dictionary"
55+
]
56+
},
57+
"watch-code": {
58+
"description": "Rebuild the code, not including the dictionary, everytime it is updated",
59+
"command": "deno bundle --output=./dist/main.js --sourcemap=linked --platform=browser --format=iife --watch ./src/main.ts",
60+
"dependencies": [
61+
"soft-build-dictionary"
62+
]
63+
},
5064
"soft-build-dictionary": {
5165
"description": "Only builds the dictionary at `./src/dictionary/global_dictionary.ts` when it doesn't exists. When an error occurs, an empty dictionary is provided.",
5266
"command": "deno run --permission-set=build-dictionary --no-prompt --frozen --cached-only ./src/dictionary/soft-build.ts"

0 commit comments

Comments
 (0)