-
Notifications
You must be signed in to change notification settings - Fork 121
Expand file tree
/
Copy pathdeno.jsonc
More file actions
30 lines (24 loc) · 1.11 KB
/
deno.jsonc
File metadata and controls
30 lines (24 loc) · 1.11 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
{
"lint": {
"files": {
"include": ["lib/", "test/"],
"exclude": ["dist/", "test/dist/"]
}
},
/* Never run deno fmt, unless you want to change formatting of all files */
"fmt": {
"files": {
"include": ["lib/", "test/"]
}
},
"importMap": "import_map.json",
"tasks": {
/* Run deno tests with `deno task test`, using default import map */
"test": "deno test --lock=deno-lock.json --ignore=test/dist --allow-import test",
/* import_map.dist.json redirects ./lib -> ./dist, to make tests use dist/main.js instead of lib/main.js */
"test:dist": "deno test --lock=deno-lock.json --importmap=import_map.dist.json --ignore=test/dist --allow-import test",
/* Run after changing dependencies */
"update-deps": "deno cache -r --lock=deno-lock.json --importmap=import_map.json test/main.test.js lib/main.js --allow-import",
"build": "deno task test && deno bundle --lock=deno-lock.json lib/main.js -o dist/main.js --allow-import && deno bundle --lock=deno-lock.json lib/main.js --platform=browser -o dist/main.browser.js --allow-import && deno task test:dist"
}
}