Skip to content

Commit 1b64a1d

Browse files
committed
Refactoring
1 parent 12589ad commit 1b64a1d

File tree

1 file changed

+19
-9
lines changed

1 file changed

+19
-9
lines changed

deno.json

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,36 @@
11
{
22
"license": "./LICENSE",
33
"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+
},
610
"build": {
711
"description": "Build the app for production.",
812
"command": "deno run -A ./config/build/index.ts",
9-
"dependencies": [ "clean-dist" ]
13+
"dependencies": [ "clear-dist" ]
1014
},
1115
"build:watch": {
1216
"description": "Build the app for production with watcher.",
1317
"command": "deno run -A ./config/build/index.ts --watch",
14-
"dependencies": [ "clean-dist" ]
18+
"dependencies": [ "clear-dist" ]
1519
},
1620
"build:dev": {
1721
"description": "Build the app for development.",
1822
"command": "deno run -A ./config/build/index.ts --develope",
19-
"dependencies": [ "clean-dist" ]
23+
"dependencies": [ "clear-dist" ]
2024
},
2125
"build:dev:watch": {
2226
"description": "Build the app for development with watcher.",
2327
"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 ."
2533
},
26-
"cache": "deno cache --reload .",
2734
"serve": {
2835
"description": "Run the server on port 8000 for production.",
2936
"command": "deno run -A ./src/server/index.ts --port=8000",
@@ -34,11 +41,14 @@
3441
"command": "deno run -A ./src/server/index.ts --develope --port=8000",
3542
"dependencies": [ "build" ]
3643
},
37-
"lint": "deno lint",
44+
"lint": {
45+
"description": "Run linter.",
46+
"command": "deno lint"
47+
},
3848
"test": {
3949
"description": "Run unit tests. Junit reports will be saved to \"./reports/report.xml\".",
4050
"command": "deno test -A --check --reload --doc --permit-no-files --junit-path=\"./reports/report.xml\"",
41-
"dependencies": [ "build" ]
51+
"dependencies": [ "clear-reports" ]
4252
}
4353
},
4454
"lock": "./config/lock.json",

0 commit comments

Comments
 (0)