|
3 | 3 | "lib": ["dom", "deno.ns"]
|
4 | 4 | },
|
5 | 5 | "tasks": {
|
6 |
| - "build": "deno run -E -R -W -N=jsr.io --allow-run --no-prompt --frozen --cached-only ./bundle.ts build", |
| 6 | + "build": { |
| 7 | + "description": "Builds `./dist/main.js` as minified file with source mapping at `./dist/main.js.map`. This command also builds the dictionary at `./dictionary/dictionary.ts`.", |
| 8 | + "command": "deno run -E -R -W -N=jsr.io --allow-run --no-prompt --frozen --cached-only ./bundle.ts build" |
| 9 | + }, |
| 10 | + "watch": { |
| 11 | + "description": "Similar to `deno task build` but doesn't minify the code. This command also watches the source code and rebuilds `./dist/main.js` or `./dictionary/dictionary.ts` whenever necessary. This DOESN'T auto-refreshes the webpage.", |
| 12 | + "command": "deno run -E -R -W -N=jsr.io --allow-run --no-prompt --frozen --cached-only ./bundle.ts watch" |
| 13 | + }, |
| 14 | + "start-server": { |
| 15 | + "description": "Starts a local server serving `./dist/` statically", |
| 16 | + "command": "deno run -N=0.0.0.0 -R=./dist/ --no-prompt jsr:@std/http/file-server ./dist/" |
| 17 | + }, |
7 | 18 | "repl": {
|
| 19 | + "description": "Starts a REPL", |
8 | 20 | "command": "deno run --no-prompt --frozen --cached-only ./src/repl.ts",
|
9 | 21 | "dependencies": ["build-dictionary"]
|
10 | 22 | },
|
11 |
| - "start": "deno run -N=0.0.0.0 -R=./dist/ --no-prompt jsr:@std/http/file-server ./dist/", |
12 |
| - "watch": "deno run -E -R -W -N=jsr.io --allow-run --no-prompt --frozen --cached-only ./bundle.ts watch", |
13 |
| - "update": "deno outdated --update && deno run -N=api.linku.la,gitlab.com -W=./telo_misikeke/linku_data.json,./telo_misikeke/Parser.js,./telo_misikeke/rules.js --no-prompt --frozen --cached-only ./telo_misikeke/update.ts", |
14 |
| - "build-dictionary": "deno run -R=./dictionary/dictionary -W=./dictionary/dictionary.ts --no-prompt --frozen --cached-only ./dictionary/build.ts" |
| 23 | + "update": { |
| 24 | + "description": "Updates dependencies and telo misikeke", |
| 25 | + "command": "deno outdated --update && deno run -N=api.linku.la,gitlab.com -W=./telo_misikeke/linku_data.json,./telo_misikeke/Parser.js,./telo_misikeke/rules.js --no-prompt --frozen --cached-only ./telo_misikeke/update.ts" |
| 26 | + }, |
| 27 | + "build-dictionary": { |
| 28 | + "description": "Builds the dictionary at `./dictionary/dictionary.ts`", |
| 29 | + "command": "deno run -R=./dictionary/dictionary -W=./dictionary/dictionary.ts --no-prompt --frozen --cached-only ./dictionary/build.ts" |
| 30 | + } |
15 | 31 | },
|
16 | 32 | "fmt": {
|
17 | 33 | "exclude": [
|
|
0 commit comments