-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
chompfile.toml
106 lines (82 loc) · 1.82 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
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
version = 0.1
default-task = 'build'
[[task]]
name = 'build'
run = 'tsup src/loader.ts --format esm --dts'
dep = 'src/#.ts'
target = 'dist/loader.js'
[[task]]
name = 'npm:install'
run = 'npm install'
dep = 'package.json'
target = 'package-lock.json'
[[task]]
name = 'clean'
run = 'rm -rf dist'
[[task]]
name = 'commit'
run = 'git-cz'
[[task]]
name = 'default'
run = 'npm install --no-save react-dom@17.0.2 @teleporthq/teleport-project-generator-react@0.25.4 @teleporthq/teleport-project-generator-preact@0.20.0 chalk express morgan react-router@5.2.1 react-router-dom@5.2.1'
[[task]]
name = 'format'
run = 'prettier --write **/*.{ts,json,md}'
[[task]]
name = 'lint'
run = 'eslint src --ext .ts'
deps = ['src/#.ts']
[[task]]
name = 'lint:fix'
run = 'eslint src --ext .ts --fix'
deps = ['src/#.ts']
[[task]]
name = 'post-merge'
deps = ['npm:install', 'build']
[[task]]
name = 'pre-commit'
deps = ['typecheck', 'test:changed', 'lint:fix', 'format']
[[task]]
name = 'prepare'
run = 'husky install'
[[task]]
name = 'prepublishOnly'
deps = ['test', 'build']
[[task]]
name = 'release'
run = 'release-it'
[[task]]
name = 'server'
deps = ['server:build', 'server:start']
[[task]]
name = 'server:build'
run = "echo 'Building...' && chomp build && echo 'Build complete.'"
[[task]]
name = 'server:start'
run = '''
echo "Starting server..."
node --loader ./dist/loader.js tests/e2e/test-server.js
echo "Server started."
'''
[[task]]
name = 'test'
deps = ['test:unit', 'test:e2e']
[[task]]
name = 'test:e2e'
run = 'node --loader ./dist/loader.js tests/e2e/test.js'
deps = ['default', 'build']
[[task]]
name = 'test:unit'
run = 'jest'
[[task]]
name = 'test:changed'
run = 'jest --bail --changesince=main'
[[task]]
name = 'typecheck'
run = 'tsc --noEmit'
[[task]]
name = 'upgrade'
run = 'npm update --latest'
[[task]]
name = 'dir-size'
run = 'du -hs .cache'