-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yml
45 lines (38 loc) · 854 Bytes
/
Taskfile.yml
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
# https://taskfile.dev
version: '3'
tasks:
default:
cmds:
- task: format
- task: test
- task: build
build:
desc: Builds app
cmds:
- roc build --target wasm32
sources:
- main.roc
generates:
- main.wasm
format:
desc: Formats roc files
cmds:
- roc format main.roc tests/
sources:
- main.roc
- tests/*.roc
test:
desc: Runs checks and tests
cmds:
- roc format --check main.roc tests/
- roc check
- roc test
sources:
- main.roc
- tests/*.roc
get-roc:
desc: Downloads the latest nightly build of roc and unzips it
cmds:
- wget https://github.com/roc-lang/roc/releases/download/nightly/roc_nightly-linux_x86_64-latest.tar.gz --output-document roc.tar.gz
- tar -xf roc.tar.gz
- rm roc.tar.gz