-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeno.json
More file actions
122 lines (122 loc) · 3.93 KB
/
deno.json
File metadata and controls
122 lines (122 loc) · 3.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
{
"compilerOptions": {
"lib": [
"dom",
"deno.ns"
]
},
"permissions": {
"build-dictionary": {
"env": [
"NO_COLOR",
"DEBUG_TAGS",
"DEBUG_CHUNKS"
],
"read": [
"./dictionary.txt",
"./src/"
],
"write": [
"./src/dictionary/global_dictionary.ts"
]
}
},
"tasks": {
"build": {
"description": "Builds every static files needed for GitHub pages. This builds the dictionary first at `./src/dictionary/global_dictionary.ts` then the distribution code `./dist/main.js`.",
"command": "deno bundle --output=./dist/main.js --minify --sourcemap=linked --platform=browser --format=iife ./src/main.ts",
"dependencies": [
"build-dictionary"
]
},
"start": {
"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.",
"dependencies": [
"watch-code",
"watch-dictionary"
]
},
"repl": {
"description": "Starts a REPL",
"command": "deno run --no-prompt --frozen --cached-only ./src/repl.ts",
"dependencies": [
"build-dictionary"
]
},
"build-dictionary": {
"description": "Builds the dictionary at `./src/dictionary/global_dictionary.ts`",
"command": "deno run --permission-set=build-dictionary --no-prompt --frozen --cached-only ./src/dictionary/build.ts"
},
"watch-dictionary": {
"description": "Rebuild the dictionary everytime it is updated. Will also auto update when the dictionary builder codes has changed.",
"command": "deno run --permission-set=build-dictionary --no-prompt --frozen --cached-only --watch --no-clear-screen ./src/dictionary/watch.ts",
"dependencies": [
"soft-build-dictionary"
]
},
"watch-code": {
"description": "Rebuild the code, not including the dictionary, everytime it is updated",
"command": "deno bundle --output=./dist/main.js --sourcemap=linked --platform=browser --format=iife --watch ./src/main.ts",
"dependencies": [
"soft-build-dictionary"
]
},
"soft-build-dictionary": {
"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.",
"command": "deno run --permission-set=build-dictionary --no-prompt --frozen --cached-only ./src/dictionary/soft-build.ts"
}
},
"fmt": {
"exclude": [
"./src/dictionary/global_dictionary.ts",
"./dist/main.js"
]
},
"lint": {
"exclude": [
"./src/dictionary/global_dictionary.ts",
"./dist/main.js"
],
"rules": {
"tags": [
"recommended"
],
"include": [
"camelcase",
"explicit-module-boundary-types",
"no-console",
"default-param-last",
"guard-for-in",
"no-await-in-loop",
"no-boolean-literal-for-arguments",
"no-eval",
"no-external-import",
"no-inferrable-types",
"no-non-null-asserted-optional-chain",
"no-self-compare",
"no-sparse-arrays",
"no-sync-fn-in-async-fn",
"no-throw-literal",
"no-useless-rename",
"prefer-ascii",
"single-var-declarator"
],
"exclude": [
"no-explicit-any"
]
}
},
"imports": {
"@std/assert": "jsr:@std/assert@^1.0.18",
"@std/async": "jsr:@std/async@^1.1.1",
"@std/cache": "jsr:@std/cache@^0.2.2",
"@std/collections": "jsr:@std/collections@^1.1.5",
"@std/fs": "jsr:@std/fs@^1.0.22",
"@std/html": "jsr:@std/html@^1.0.5",
"@std/random": "jsr:@std/random@^0.1.5",
"@std/regexp": "jsr:@std/regexp@^1.0.1",
"@std/text": "jsr:@std/text@^1.0.17",
"browser-dtector": "npm:browser-dtector@^4.1.1",
"compromise": "npm:compromise@^14.14.5"
}
}