|
1 | 1 | {
|
2 | 2 | "license": "./LICENSE",
|
3 | 3 | "tasks": {
|
4 |
| - "clean-dist": "rm -r ./dist/* || exit 0", |
5 |
| - "install": "deno install", |
| 4 | + "clear-dist": "rm -r ./dist/* || exit 0", |
| 5 | + "clear-reports": "rm -r ./reports/* || exit 0", |
| 6 | + "install": { |
| 7 | + "description": "Install all dependencies specified in the \"deno.lock\" file.", |
| 8 | + "command": "deno install" |
| 9 | + }, |
6 | 10 | "build": {
|
7 | 11 | "description": "Build the app for production.",
|
8 | 12 | "command": "deno run -A ./config/build/index.ts",
|
9 |
| - "dependencies": [ "clean-dist" ] |
| 13 | + "dependencies": [ "clear-dist" ] |
10 | 14 | },
|
11 | 15 | "build:watch": {
|
12 | 16 | "description": "Build the app for production with watcher.",
|
13 | 17 | "command": "deno run -A ./config/build/index.ts --watch",
|
14 |
| - "dependencies": [ "clean-dist" ] |
| 18 | + "dependencies": [ "clear-dist" ] |
15 | 19 | },
|
16 | 20 | "build:dev": {
|
17 | 21 | "description": "Build the app for development.",
|
18 | 22 | "command": "deno run -A ./config/build/index.ts --develope",
|
19 |
| - "dependencies": [ "clean-dist" ] |
| 23 | + "dependencies": [ "clear-dist" ] |
20 | 24 | },
|
21 | 25 | "build:dev:watch": {
|
22 | 26 | "description": "Build the app for development with watcher.",
|
23 | 27 | "command": "deno run -A ./config/build/index.ts --develope --watch",
|
24 |
| - "dependencies": [ "clean-dist" ] |
| 28 | + "dependencies": [ "clear-dist" ] |
| 29 | + }, |
| 30 | + "cache-reload": { |
| 31 | + "description": "Reload the dependency cache.", |
| 32 | + "command": "deno cache --reload ." |
25 | 33 | },
|
26 |
| - "cache": "deno cache --reload .", |
27 | 34 | "serve": {
|
28 | 35 | "description": "Run the server on port 8000 for production.",
|
29 | 36 | "command": "deno run -A ./src/server/index.ts --port=8000",
|
|
34 | 41 | "command": "deno run -A ./src/server/index.ts --develope --port=8000",
|
35 | 42 | "dependencies": [ "build" ]
|
36 | 43 | },
|
37 |
| - "lint": "deno lint", |
| 44 | + "lint": { |
| 45 | + "description": "Run linter.", |
| 46 | + "command": "deno lint" |
| 47 | + }, |
38 | 48 | "test": {
|
39 | 49 | "description": "Run unit tests. Junit reports will be saved to \"./reports/report.xml\".",
|
40 | 50 | "command": "deno test -A --check --reload --doc --permit-no-files --junit-path=\"./reports/report.xml\"",
|
41 |
| - "dependencies": [ "build" ] |
| 51 | + "dependencies": [ "clear-reports" ] |
42 | 52 | }
|
43 | 53 | },
|
44 | 54 | "lock": "./config/lock.json",
|
|
0 commit comments