forked from finos/morphir
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Leaning on moon to help orchestrate polyglot builds
- Loading branch information
1 parent
7e6f646
commit ec7e8c1
Showing
18 changed files
with
150 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,4 +25,7 @@ target/ | |
.scala-build/ | ||
.metals/ | ||
.bloop/ | ||
.bsp/ | ||
.bsp/ | ||
# moon | ||
.moon/cache | ||
.moon/docker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
$schema: "https://moonrepo.dev/schemas/tasks.json" | ||
tasks: | ||
build: | ||
inputs: [] | ||
deps: | ||
- target: "~:morphir-elm-build" | ||
optional: true | ||
- target: "~:elm-library-build" | ||
optional: true | ||
- target: "~:cargo-build" | ||
optional: true | ||
fmt: | ||
inputs: [] | ||
deps: | ||
- target: "~:elm-format" | ||
optional: true | ||
- target: "~:scala-format" | ||
optional: true | ||
|
||
lint: | ||
inputs: [] | ||
deps: | ||
- target: "~:elm-lint" | ||
optional: true | ||
- target: "~:scala-lint" | ||
optional: true | ||
test: | ||
inputs: [] | ||
deps: | ||
- target: "~:scala-jvm" | ||
optional: true | ||
- target: "~:elm-test" | ||
optional: true | ||
|
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
fileGroups: | ||
elmSources: | ||
- "src" | ||
tasks: | ||
elm-lint: | ||
command: | | ||
yarn exec elm-format @dirs(elmSources) @files(elmSources) --validate --yes | ||
inputs: | ||
- "@files(elmSources)" | ||
|
||
elm-format: | ||
command: | | ||
yarn exec elm-format @dirs(elmSources) @files(elmSources) --yes | ||
inputs: | ||
- "@files(elmSources)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
fileGroups: | ||
morphirProjectFiles: | ||
- "morphir.json" | ||
morphirElmSources: | ||
- "src/**/*.elm" | ||
morphirElmArtifacts: | ||
- "morphir-hashes.json" | ||
- "morphir-ir.json" | ||
|
||
tasks: | ||
morphir-elm-build: | ||
deps: | ||
- "~:morphir-elm-make" | ||
|
||
morphir-elm-rebuild: | ||
deps: | ||
- "~:morphir-elm-clean" | ||
- "~:morphir-elm-build" | ||
|
||
morphir-elm-clean: | ||
command: | | ||
rm -rf @files(morphirElmArtifacts) | ||
inputs: | ||
- "@files(morphirElmArtifacts)" | ||
|
||
morphir-elm-make: | ||
command: | | ||
morphir make | ||
inputs: | ||
- "@files(morphirProjectFiles)" | ||
- "@files(morphirElmArtifacts)" | ||
- "package.json" | ||
- "@files(morphirElmSources)" | ||
outputs: | ||
- "morphir-hashes.json" | ||
- "morphir-ir.json" |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
fileGroups: | ||
scalaSources: | ||
- "morphir/**/*.scala" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
$schema: "https://moonrepo.dev/schemas/toolchain.json" | ||
|
||
bun: | ||
syncProjectWorkspaceDependencies: true | ||
|
||
node: | ||
packageManager: bun | ||
|
||
rust: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# https://moonrepo.dev/docs/config/workspace | ||
$schema: 'https://moonrepo.dev/schemas/workspace.json' | ||
|
||
# Require a specific version of moon while running commands, otherwise fail. | ||
# versionConstraint: '>=1.0.0' | ||
|
||
# Extend and inherit an external configuration file. Must be a valid HTTPS URL or file system path. | ||
# extends: './shared/workspace.yml' | ||
|
||
# REQUIRED: A map of all projects found within the workspace, or a list or file system globs. | ||
# When using a map, each entry requires a unique project ID as the map key, and a file system | ||
# path to the project folder as the map value. File paths are relative from the workspace root, | ||
# and cannot reference projects located outside the workspace boundary. | ||
projects: | ||
- '.' | ||
- 'apps/*' | ||
- 'crates/*' | ||
- 'packages/*' | ||
|
||
# Configures the version control system to utilize within the workspace. A VCS | ||
# is required for determining touched (added, modified, etc) files, calculating file hashes, | ||
# computing affected files, and much more. | ||
vcs: | ||
# The client to use when managing the repository. | ||
# Accepts "git". Defaults to "git". | ||
manager: 'git' | ||
|
||
# The default branch (master/main/trunk) in the repository for comparing the | ||
# local branch against. For git, this is is typically "master" or "main", | ||
# and must include the remote prefix (before /). | ||
defaultBranch: 'main' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
18.12.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
bun = "1.1.10" | ||
bun = "1.1.10" | ||
moon = "1.25.1" | ||
|
||
[plugins] | ||
moon = "source:https://raw.githubusercontent.com/moonrepo/moon/master/proto-plugin.toml" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
language: typescript |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
language: elm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
fileGroups: | ||
elmSources: | ||
- "src" | ||
tags: | ||
- "elm" |