-
Notifications
You must be signed in to change notification settings - Fork 56
/
moon.yml
79 lines (76 loc) · 1.61 KB
/
moon.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
language: 'rust'
type: 'application'
tags:
- 'elm'
env:
CARGO_TERM_COLOR: 'always'
fileGroups:
elm-sources:
- 'src/**/*.elm'
sources:
- 'apps/cli/src/**/*'
- 'crates/*/src/**/*'
- 'crates/*/Cargo.toml'
- 'Cargo.toml'
tests:
- 'crates/*/benches/**/*'
- 'crates/*/tests/**/*'
tasks:
build:
command: 'cargo build'
inputs:
- '@globs(sources)'
deps:
- target: "~:elm-build"
check:
command: 'cargo check --workspace'
inputs:
- '@globs(sources)'
deps:
- target: "~:check-elm-docs"
elm-build:
inputs: []
deps:
- target: "~:elm-library-make"
- target: "~:check-elm-docs"
ensure-elm-docs-dir:
command: 'mkdir -p @out(0)'
outputs:
- '.out/elm-out/finos/morphir'
check-elm-docs:
platform: 'bun'
command: 'elm make --docs=./.out/elm-out/finos/morphir/docs.json'
inputs:
- '@globs(elm-sources)'
outputs:
- '.out/elm-out/finos/morphir/docs.json'
deps:
- target: "~:ensure-elm-docs-dir"
cargo-clean:
inputs: []
command: 'cargo clean'
elm-clean-outputs:
inputs:
- '.out/elm-out'
command: 'rm -rf @in(0)'
clean:
inputs: []
deps:
- "~:cargo-clean"
- "~:elm-clean-outputs"
purge:
inputs: []
deps:
- "~:clean"
- "~:purge-targets"
- "~:purge-elm-dependencies"
- "~:purge-node-dependencies"
purge-targets:
inputs: []
command: 'rm -rf target'
purge-elm-dependencies:
inputs: []
command: 'rm -rf elm-stuff'
purge-node-dependencies:
inputs: []
command: 'rm -rf node_modules'