-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yml
61 lines (51 loc) · 1.2 KB
/
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
version: "3"
tasks:
default:
cmds:
- echo 'hello'
pkg:
aliases: [ "pm", "magic" ]
cmds:
- magic {{.CLI_ARGS}}
dev:
aliases: [ "d" ]
cmds:
- magic run mojo src/main.mojo
dev2:
aliases: [ "d2" ]
cmds:
- magic run cli
- magic run cli2
test:
aliases: [ "t" ]
cmds:
- magic run mojo test -I src/ test/
build:
aliases: [ "b" ]
cmds:
- mkdir -p build/
- magic run mojo build src/main.mojo -o build/jojo-cli # --target-platform=$TARGET_PLATFORM
- open build/
ignore_error: true
build:run:
aliases: [ "br", "rb" ]
cmds:
- task: build
- ./build/jojo-cli
ignore_error: true
release:
aliases: [ "rel", "publish" ]
cmds:
- task: build
- magic run mojo publish
package:
aliases: [ "p", "pack" ]
cmds:
- mkdir -p build/
- magic run mojo package src/ -o build/jojo-cli.mojopkg
init:
cmds:
- magic project channel add "conda-forge"
- magic project channel add "https://conda.modular.com/max"
- magic project channel add "https://repo.prefix.dev/mojo-community"
- magic project channel add "https://repo.prefix.dev/jojo"