-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdeno.json
177 lines (177 loc) · 6.68 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
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
{
"lock": false,
"lockfile": "deno.lock",
"tasks": {
"check:fmt": "deno fmt --check .",
"check:fmt:debug": "deno fmt --check --log-level=debug . && find . -type f -name '*.ts' -o -name '*.tsx' | grep -v -E '(node_modules|_fresh|.git|coverage|tmp|.cache|build|vendor|static)' | wc -l",
"check:lint": "deno lint --quiet",
"check:lint:debug": "deno lint --json",
"check:types": "deno check main.ts dev.ts",
"check:types:debug": "deno check --log-level=debug main.ts dev.ts",
"check": "deno task check:fmt && deno task check:lint && deno task check:types",
"check:debug": "deno task check:fmt:debug && deno task check:lint:debug && deno task check:types:debug",
"start": "deno task check_version && deno run -A main.ts",
"dev": "DENO_ENV=development && deno run --inspect --allow-all --watch --watch-exclude=dist/,node_modules/,_fresh/,.git/,coverage/,tmp/,tests/ --no-clear-screen dev.ts --host",
"build": "deno run -A main.ts build",
"dev:build": "deno task build && deno task dev",
"docs": "deno run --allow-read --allow-write swagger.js",
"fakebuild": "echo 'fake build'",
"preview": "deno run -A main.ts",
"update": "deno run -A -r https://fresh.deno.dev/update .",
"decode": "deno run -A utils/decodeSrc20MsigTx.ts",
"decode_olga": "deno run -A utils/decodeSrc20OlgaTx.ts",
"check_version": "deno run --allow-run --allow-env utils/check_deno_version.ts",
"cleanup": "deno run --allow-run scripts/cleanup.ts",
"dev:safe": "deno task cleanup && deno task dev",
"validate:schema": "npx @redocly/cli lint --config .redocly.yaml --format stylish ./schema.yml",
"dredd": "deno task validate:schema && npx dredd",
"test:version": "deno test -A --log-level=debug --no-check tests/versioning/versionChain.test.ts",
"test:src20": "deno test --allow-net tests/src20/createTransaction.test.ts tests/src20/api-compatibility.ts tests/src20/performance.test.ts --no-check --allow-read --allow-env --allow-write",
"test:src20:watch": "deno test --allow-net tests/src20/createTransaction.test.ts tests/src20/api-compatibility.ts tests/src20/performance.test.ts --no-check --allow-read --allow-env --allow-write --watch",
"analyze:types": "deno run --allow-run --allow-write scripts/analyze-type-errors.ts"
},
"lint": {
"rules": {
"tags": ["fresh", "recommended"],
"include": [
"ban-untagged-todo",
"no-node-buffer",
"prefer-native-node-imports"
],
"exclude": ["no-explicit-any"]
},
"exclude": [
"**/_fresh/**/*",
"**/node_modules/**/*",
"**/dist/**/*",
"**/.git/**/*",
"**/coverage/**/*",
"**/tmp/**/*",
"**/.cache/**/*",
"**/build/**/*",
"**/vendor/**/*"
],
"include": [
"routes/",
"components/",
"islands/",
"lib/",
"utils/",
"client/",
"tests/"
]
},
"exclude": ["**/_fresh/*", "**/server/**/*"],
"nodeModulesDir": "auto",
"imports": {
"stream": "node:stream",
"stream/promises": "node:stream/promises",
"stream/consumers": "node:stream/consumers",
"stream/web": "node:stream/web",
"events": "node:events",
"buffer": "node:buffer",
"crypto": "node:crypto",
"tls": "node:tls",
"net": "node:net",
"dns": "node:dns",
"dns/promises": "node:dns/promises",
"@preact/signals": "https://esm.sh/*@preact/signals@1.2.2",
"@preact/signals-core": "https://esm.sh/*@preact/signals-core@1.5.1",
"@std/assert": "jsr:/@std/assert@^1.0.9",
"@std/async": "jsr:/@std/async@^1.0.5",
"@std/crypto": "jsr:@std/crypto@^1.0.3",
"@std/dotenv": "jsr:/@std/dotenv@^0.225.2",
"@std/encoding": "jsr:@std/encoding@^1.0.5",
"@std/log": "jsr:/@std/log@0.224.0",
"@std/path": "jsr:/@std/path@^0.219.1",
"@std/testing": "jsr:/@std/testing@^1.0.6",
"@std/yaml": "jsr:/@std/yaml@^0.219.1",
"axiod": "https://deno.land/x/axiod@0.26.2/mod.ts",
"bitcoinjs-lib": "npm:bitcoinjs-lib@7.0.0-rc.0",
"big": "https://esm.sh/big.js@6.2.1",
"bigfloat/": "https://deno.land/x/bigfloat@v3.0.2/",
"compress": "https://deno.land/x/foras@v2.1.4/src/deno/mod.ts",
"dayjs": "https://esm.sh/dayjs@1.11.10",
"dayjs/": "https://esm.sh/dayjs@1.11.10/",
"djwt/": "https://deno.land/x/djwt@v3.0.2/",
"$fresh/": "https://deno.land/x/fresh@1.7.3/",
"fresh_charts/": "https://deno.land/x/fresh_charts@0.3.1/",
"fresh/tests/": "https://deno.land/x/fresh@1.7.6/tests/",
"msgpack": "https://deno.land/x/msgpack@v1.4/mod.ts",
"mysql/": "https://deno.land/x/mysql@v2.12.1/",
"preact": "https://esm.sh/preact@10.22.0",
"preact/": "https://esm.sh/preact@10.22.0/",
"puppeteer": "https://deno.land/x/puppeteer@16.2.0/mod.ts",
"qrcode": "https://esm.sh/qrcode@1.5.1",
"redis": "https://deno.land/x/redis@v0.32.4/mod.ts",
"swiper/": "https://esm.sh/swiper@11.1.14/",
"swiper": "https://esm.sh/swiper@11.1.14",
"tailwindcss": "npm:tailwindcss@3.4.1",
"tailwindcss/": "npm:tailwindcss@3.4.1/",
"tailwindcss/plugin": "npm:tailwindcss@3.4.1/plugin.js",
"tiny-secp256k1": "npm:tiny-secp256k1@2.2.3",
"$/": "./",
"$client/": "./client/",
"$components/": "./components/",
"$constants": "./lib/utils/constants.ts",
"$globals": "./globals.d.ts",
"$handlers/": "./routes/handlers/",
"$islands/": "./islands/",
"$lib/": "./lib/",
"$routes/": "./routes/",
"$server/": "./server/",
"$types/": "./lib/types/",
"flatpickr": "https://esm.sh/flatpickr@4.6.13",
"flatpickr/": "https://esm.sh/flatpickr@4.6.13/",
"dom": "https://deno.land/x/deno_dom/deno-dom-wasm.ts"
},
"compilerOptions": {
"jsx": "react-jsx",
"jsxImportSource": "preact",
"strict": true,
"types": ["npm:@types/node", "npm:@types/bitcoinjs-lib"],
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"exactOptionalPropertyTypes": true,
"noFallthroughCasesInSwitch": true
},
"fmt": {
"include": ["**/*.ts", "**/*.tsx"],
"exclude": [
"**/_fresh/**/*",
"**/server/**/*",
"**/node_modules/**/*",
"**/dist/**/*",
"**/.git/**/*",
"**/coverage/**/*",
"**/tmp/**/*",
"**/.cache/**/*",
"**/.*/",
"**/.*",
"**/build/**/*",
"**/vendor/**/*",
"**/*.yml",
"**/*.yaml",
"**/schema.yml",
"**/swagger/**/*.yml",
"**/swagger/**/*.yaml",
"**/.redocly.*",
"**/*.css",
"**/*.json",
"**/*.md",
"**/*.html",
"**/static/**/*",
".vscode/**/*",
".idea/**/*",
".github/**/*",
".git/**/*",
".env*"
],
"useTabs": false,
"lineWidth": 80,
"indentWidth": 2,
"singleQuote": false,
"proseWrap": "preserve"
}
}