-
-
Notifications
You must be signed in to change notification settings - Fork 83
/
chompfile.toml
66 lines (54 loc) · 1.72 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
64
65
66
version = 0.1
extensions = ['[email protected]:footprint', '[email protected]:npm']
[server]
port = 8080
root = "."
[[task]]
name = 'bench'
run = 'chomp -c bench'
[[task]]
name = 'bench:clear'
run = 'rm -rf bench/results'
[[task]]
name = 'build'
targets = ['dist/es-module-shims.js', 'dist/es-module-shims.wasm.js', 'dist/es-module-shims.debug.js']
deps = ['src/*.js', 'npm:install', 'README.md']
run = 'rollup -c'
[[task]]
target = 'README.md'
dep = 'package.json'
engine = 'node'
run = '''
import { readFileSync, writeFileSync } from 'fs';
const { version } = JSON.parse(readFileSync(process.env.DEP, 'utf8'));
const source = readFileSync(process.env.TARGET, 'utf8')
.replace(/es-module-shims@\d+.\d+.\d+/g, `es-module-shims@${version}`);
writeFileSync(process.env.TARGET, source);
'''
[[task]]
name = 'footprint'
deps = ['dist/es-module-shims.js', 'dist/es-module-shims.wasm.js']
template = 'footprint'
[[task]]
name = 'test-watch'
dep = 'test:watch:'
[[task]]
name = 'test-watch:#'
serial = true
env = { WATCH_MODE = 'true' }
deps = ['npm:install', 'dist/es-module-shims.js', 'dist/es-module-shims.wasm.js', 'test/test-#.html']
run = 'node test/server.mjs test-${{ MATCH }}'
[[task]]
name = 'test'
dep = 'test:'
[[task]]
name = 'test:#'
serial = true
deps = ['npm:install', 'dist/es-module-shims.js', 'dist/es-module-shims.wasm.js', 'test/test-#.html']
run = 'node test/server.mjs test-${{ MATCH }}'
[[task]]
name = 'test:firefox'
env = { CI_BROWSER = 'C:\Program Files\Mozilla Firefox\firefox.exe', CI_BROWSER_FLAGS = '-headless', CI_BROWSER_FLUSH = 'taskkill /IM firefox.exe /F' }
serial = true
deps = ['npm:install', 'dist/es-module-shims.js', 'dist/es-module-shims.wasm.js', 'test/test-#.html']
run = 'node test/server.mjs test-${{ MATCH }}'