omni
The package manager: one command fetches the toolchain and any library, verified before it is installed
| 1 | -- build.rg — Ridgun Project Build Definition for OMNI |
| 2 | -- @implements ADR-0001 |
| 3 | |
| 4 | fn :: project name => String |
| 5 | project name = "omni" |
| 6 | |
| 7 | fn :: project version => String |
| 8 | project version = "0.1.0" |
| 9 | |
| 10 | fn :: project kind => String |
| 11 | project kind = "exe" |
| 12 | |
| 13 | fn :: main entry => String |
| 14 | main entry = "src/main/ridgun/omni/main.rg" |
| 15 | |
| 16 | fn :: source dir => String |
| 17 | source dir = "src/main/ridgun" |
| 18 | |
| 19 | fn :: test dir => String |
| 20 | test dir = "src/test/ridgun" |
| 21 | |
| 22 | fn :: target dir => String |
| 23 | target dir = "target" |
| 24 | |
| 25 | fn :: dependencies => [String] |
| 26 | dependencies = ["~/ridgun/libs/src/main/ridgun/lib/str.rg", "~/ridgun/libs/src/main/ridgun/lib/test.rg", "pedrocorral/ridgun-libs#str", "pedrocorral/ridgun-libs#test"] |
| 27 | |
| 28 | fn :: plugins => [String] |
| 29 | plugins = ["plugins/omni.rg"] |
| 30 | |
| 31 | fn :: task sync libs => String |
| 32 | task sync libs = "mkdir -p .stable/deps target && cp -f ~/ridgun/libs/target/bundles/*.rglib .stable/deps/ && cp -f ~/ridgun/libs/target/bundles/*.rglib target/ && chmod 644 .stable/deps/*.rglib target/*.rglib" |