-
-
Notifications
You must be signed in to change notification settings - Fork 272
/
chompfile.toml
63 lines (51 loc) · 1.26 KB
/
chompfile.toml
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
version = 0.1
default-task = 'build'
extensions = ['[email protected]:npm', '[email protected]:prettier']
[[task]]
name = 'build'
deps = ['dist/cli.js', 'docs.md']
[[task]]
target = 'dist/cli.js'
deps = ['src/**/*.ts', 'npm:install']
run = 'esbuild src/cli.ts --bundle --platform=node --external:fsevents --external:@jspm/generator --external:ora --external:picocolors --external:@babel/core --format=esm --outfile=$TARGET'
[[task]]
name = 'docs'
target = 'docs.md'
deps = ['src/**/*.ts', 'docs/intro.md', 'docs/config.md', 'dist/cli.js']
run = '''
node docs/generate.js > docs.md
node docs/finalize.js
'''
[[task]]
name = 'lint'
run = 'eslint .'
[[task]]
name = 'lint:fix'
run = 'eslint . --fix'
[[task]]
name = 'prettier'
template = 'prettier'
deps = ['src/**/*.ts', 'test/*.ts']
[task.template-options]
files = 'src/**/*.ts test/*.ts'
loglevel = 'warn'
[[task]]
name = 'typecheck'
deps = ['src/**/*.ts', 'test/*.ts']
run = 'tsc --noEmit'
[[task]]
name = 'link:test'
dep = 'build'
run = 'node jspm.js link ./test/fixtures/test.js --env=deno,node'
[[task]]
name = 'deno:test'
dep = 'link:test'
run = 'deno --unstable run --importmap importmap.json -A ./test/fixtures/test.js'
[[task]]
name = 'test'
dep = 'test:'
[[task]]
name = 'test:##'
dep = 'test/##.test.ts'
run = 'tsx $DEP'
serial = true