-
-
Notifications
You must be signed in to change notification settings - Fork 28
/
scripts.config.ts
79 lines (77 loc) · 1.54 KB
/
scripts.config.ts
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
import type { DenonConfig } from './deps.ts';
const config: DenonConfig = {
$schema: 'https://deno.land/x/denon/schema.json',
allow: [
'net',
'env',
'read',
'write',
],
scripts: {
start: {
cmd: 'deno run -c deno.json --import-map=import_map.json app.ts',
unstable: false,
desc: 'run server',
env: {
'ENV': 'development',
},
watch: true,
},
test: {
cmd: 'deno test --import-map=import_map.json',
desc: 'Test the server.',
unstable: false,
env: {
ENV: 'test',
},
watch: false,
tsconfig: 'tsconfig.json',
},
'test:cov': {
cmd: 'deno test --coverage=./cov --import-map=import_map.json',
desc: 'Test Coverage',
unstable: false,
env: {
ENV: 'test',
},
watch: false,
tsconfig: 'tsconfig.json',
},
prod: {
cmd: 'deno run --import-map=import_map.json app.bundle.js',
desc: 'Run the server.',
unstable: false,
env: {
ENV: 'production',
},
watch: false,
},
fmt: {
cmd: 'deno fmt',
desc: 'Format the code.',
allow: [],
watch: false,
},
lint: {
cmd: 'deno lint',
desc: 'Code linter for JavaScript and TypeScript',
unstable: true,
watch: false,
allow: [],
},
},
logger: {
fullscreen: true,
quiet: false,
debug: true,
},
watcher: {
skip: [
'*/.git/*',
'*/.idea/*',
'*/.vscode/*',
'*/.env/*',
],
},
};
export default config;