-
Notifications
You must be signed in to change notification settings - Fork 4
/
deno.json
74 lines (74 loc) · 2.64 KB
/
deno.json
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
{
"tasks": {
"build": "deno task build:js 2> /dev/null ; deno task build:css && deno task build:js",
"build:css": "deno task esbuild --outbase=style --outdir=an_website/static/css 'style/**/*.css'",
"build:js:debug": "deno task esbuild an_website/**/*[!_].ts --bundle '--external:/static/*' --legal-comments=inline '--footer:js=// @license-end' --format=esm --outbase=an_website --outdir=an_website/static/js \"--alias:@utils/utils.js=$(./scripts/fix_static_url_path.py /static/js/utils/utils.js)\"",
"build:js": "deno task build:js:debug --pure:console.log --pure:console.debug",
"clean": "deno task clean:css && deno task clean:js && ./scripts/compress_static_files.py --clean",
"clean:css": "rm -fr an_website/static/css",
"clean:js": "rm -fr an_website/static/js",
"esbuild": "deno run -A https://deno.land/x/[email protected]/mod.js --target=$(deno task target),chrome79,edge123,firefox115,ios12.2,opera107,safari15.6 --charset=utf8 --minify --sourcemap --tree-shaking=false",
"target": "echo es$(python3 -c 'from datetime import datetime, timezone; print(min((now := datetime.now(timezone.utc)).year - (5 + (now.month < 7)), 2022))')",
"watch:css": "deno task build:css --watch",
"watch:js": "deno task build:js --watch",
"watch:js:debug": "deno task build:js:debug --watch",
"watman": "deno eval 'console.log(Array(16).join(\"wat\" - 1) + \" Batman!\")'"
},
"compilerOptions": {
"exactOptionalPropertyTypes": true,
"noFallthroughCasesInSwitch": true,
"noImplicitOverride": true,
"noImplicitReturns": true,
"noPropertyAccessFromIndexSignature": true,
"noUncheckedIndexedAccess": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"verbatimModuleSyntax": true
},
"imports": {
"dax": "https://jsr.io/@david/dax/0.40.1/mod.ts",
"esbuild": "https://deno.land/x/[email protected]/wasm.js",
"std/": "https://deno.land/[email protected]/"
},
"nodeModulesDir": "none",
"lint": {
"include": [
"scripts/deno"
],
"rules": {
"tags": [
"recommended"
],
"include": [
"camelcase",
"default-param-last",
"eqeqeq",
"explicit-function-return-type",
"explicit-module-boundary-types",
"guard-for-in",
"no-await-in-loop",
"no-const-assign",
"no-eval",
"no-implicit-declare-namespace-export",
"no-sparse-arrays",
"no-sync-fn-in-async-fn"
]
}
},
"fmt": {
"include": [
"scripts/deno"
],
"indentWidth": 4
},
"test": {
"include": [
"scripts/deno"
]
},
"bench": {
"include": [
"scripts/deno"
]
}
}