-
Notifications
You must be signed in to change notification settings - Fork 0
/
deno.json
97 lines (97 loc) · 4.02 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
{
"compilerOptions": {
"allowJs": true,
"allowUnreachableCode": false,
"allowUnusedLabels": false,
"alwaysStrict": true,
"checkJs": false,
"lib": [
"deno.window"
],
"noFallthroughCasesInSwitch": true,
"noImplicitAny": true,
"noImplicitOverride": false,
"noImplicitReturns": true,
"noImplicitThis": true,
"noStrictGenericChecks": false,
"noUncheckedIndexedAccess": false,
"noUnusedLocals": true,
"noUnusedParameters": true,
"strict": true,
"strictBindCallApply": true,
"strictFunctionTypes": true,
"strictNullChecks": true,
"strictPropertyInitialization": true,
"suppressExcessPropertyErrors": false,
"suppressImplicitAnyIndexErrors": false
},
"fmt": {
"files": {
"include": [
"src/"
]
},
"options": {
"indentWidth": 2,
"lineWidth": 80,
"proseWrap": "always",
"singleQuote": false,
"useTabs": false
}
},
"importMap": "import_map.json",
"lint": {
"files": {
"include": [
"src/"
]
},
"rules": {
"exclude": [
"no-unused-vars"
],
"include": [
"ban-untagged-todo"
],
"tags": [
"recommended"
]
}
},
"tasks": {
"build": "deno task clean && mkdir -p ./build && deno task build-local && deno task build-darwin-x86 && deno task build-darwin-aarch64 && deno task build-linux-x86 && deno task build-windows && deno task compress",
"build-darwin-aarch64": "rm -f ./build/truestamp-darwin-aarch64 && export DENO_DIR=./deno_dir && deno compile --target=aarch64-apple-darwin --output=./build/truestamp-darwin-aarch64 --allow-env --allow-net --allow-read --allow-write --import-map ./import_map.json src/cli.ts",
"build-darwin-x86": "rm -f ./build/truestamp-darwin-x86_64 && export DENO_DIR=./deno_dir && deno compile --target=x86_64-apple-darwin --output=./build/truestamp-darwin-x86_64 --allow-env --allow-net --allow-read --allow-write --import-map ./import_map.json src/cli.ts",
"build-linux-x86": "rm -f ./build/truestamp-linux-x86_64 && export DENO_DIR=./deno_dir && deno compile --target=x86_64-unknown-linux-gnu --output=./build/truestamp-linux-x86_64 --allow-env --allow-net --allow-read --allow-write --import-map ./import_map.json src/cli.ts",
"build-local": "rm -f ./truestamp && export DENO_DIR=./deno_dir && deno compile --output=./truestamp --allow-env --allow-net --allow-read --allow-write --import-map ./import_map.json src/cli.ts",
"build-windows": "rm -f ./build/truestamp-windows && export DENO_DIR=./deno_dir && deno compile --target=x86_64-pc-windows-msvc --output=./build/truestamp-windows --allow-env --allow-net --allow-read --allow-write --import-map ./import_map.json src/cli.ts",
"clean": "rm -f ./truestamp && rm -rf ./build",
"compress": "deno task compress-darwin && deno task compress-linux && deno task compress-windows",
"compress-darwin": "make compress-darwin",
"compress-linux": "make compress-linux",
"compress-windows": "make compress-windows",
"format": "deno fmt src/",
"format-watch": "deno fmt --watch src/",
"info": "deno info --import-map ./import_map.json src/cli.ts",
"lint": "deno lint src/",
"npm:add": "deno run -A https://esm.sh/v94 add",
"npm:remove": "deno run -A https://esm.sh/v94 remove",
"npm:update": "deno run -A https://esm.sh/v94 update",
"outdated": "udd --dry-run src/deps.ts",
"run": "deno run --allow-env --allow-net --allow-read --allow-write --import-map ./import_map.json src/cli.ts",
"run-help": "deno run --allow-env --allow-net --allow-read --allow-write --import-map ./import_map.json src/cli.ts --help",
"run-version": "deno run --allow-env --allow-net --allow-read --allow-write --import-map ./import_map.json src/cli.ts --version",
"update-types": "cp ../truestamp-monorepo/packages/types/src/index.ts ./src/types.ts",
"upgrade": "udd src/deps.ts"
},
"test": {
"files": {
"exclude": [
"src/testdata/"
],
"include": [
"src/"
]
}
}
}