From 61e1a570095a57b9efd4aeef3456a85b199bce92 Mon Sep 17 00:00:00 2001 From: Miles Johnson Date: Sun, 8 Oct 2023 17:10:20 -0700 Subject: [PATCH] Start on blog post. --- Cargo.lock | 4 +- Cargo.toml | 2 +- website/blog/2023-10-09_moon-v1.15.mdx | 48 ++++++++++++++++++++++ website/docs/commands/action-graph.mdx | 4 ++ website/docs/how-it-works/action-graph.mdx | 4 +- website/docs/install.mdx | 6 +-- 6 files changed, 58 insertions(+), 10 deletions(-) create mode 100644 website/blog/2023-10-09_moon-v1.15.mdx diff --git a/Cargo.lock b/Cargo.lock index d5d37f50dc1..9040ec64626 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -5482,9 +5482,9 @@ checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" [[package]] name = "starbase" -version = "0.2.7" +version = "0.2.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8dc2dc5364b3a7b113afd1f3d609edc1ae4c9f742f345949669c7ae5b9ac1944" +checksum = "0ce70d3d623e4e26202bdac9fedda7f6e91a12c12f98147eaf2e624c7525c457" dependencies = [ "async-trait", "chrono", diff --git a/Cargo.toml b/Cargo.toml index 0f4e2bb94a6..3a3819e8f38 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -60,7 +60,7 @@ semver = "1.0.19" serde = { version = "1.0.188", features = ["derive", "rc"] } serde_json = "1.0.107" serde_yaml = "0.9.25" -starbase = "0.2.7" +starbase = "0.2.8" starbase_archive = { version = "0.2.3", default-features = false, features = [ "tar-gz", ] } diff --git a/website/blog/2023-10-09_moon-v1.15.mdx b/website/blog/2023-10-09_moon-v1.15.mdx new file mode 100644 index 00000000000..36427395e26 --- /dev/null +++ b/website/blog/2023-10-09_moon-v1.15.mdx @@ -0,0 +1,48 @@ +--- +slug: moon-v1.15 +title: moon v1.15 - Next-generation action graph +authors: [milesj] +tags: [action, dependency, graph] +# image: ./img/moon/v1.14.png +--- + +??? + + + +## Hello action graph, goodbye dependency graph + +??? + +## New `moonrepo/setup-toolchain` GitHub action + +??? + +## Now supported in Railway + +If you're a big fan of [Railway](https://railway.app/) (like we are), and you're deploying a Node.js +backed application, then you'll be happy to hear that Railway now officially and natively supports +moon! We spent some time over the past month +[integrating moon support into their Nixpacks architecture](https://nixpacks.com/docs/providers/node). + +To make use of this, set the `NIXPACKS_MOON_APP_NAME` environment variable to the name of your moon +project that you want to be deployed. This will then automatically run `moon run :build` and +`moon run :start` respectively. To customize the task names, you can set the +`NIXPACKS_MOON_BUILD_TASK` and `NIXPACKS_MOON_START_TASK` environment variables. + +:::info + +This is currently only supported for Node.js projects, but will be expanded to other languages in +the future! + +::: + +## Other changes + +View the [official release](https://github.com/moonrepo/moon/releases/tag/v1.15.0) for a full list +of changes. + +- Added a `moon action-graph` command. +- Added a `--dependents` argument to `moon action-graph`. +- Added the ability to skip non-`RunTask` actions using environment variables. +- Deprecated the `moon dep-graph` command. diff --git a/website/docs/commands/action-graph.mdx b/website/docs/commands/action-graph.mdx index bc4e517d171..2b8c6710fa1 100644 --- a/website/docs/commands/action-graph.mdx +++ b/website/docs/commands/action-graph.mdx @@ -2,6 +2,10 @@ title: action-graph --- +import VersionLabel from '@site/src/components/Docs/VersionLabel'; + + + The `moon action-graph [target]` (or `moon ag`) command will generate and serve a visual graph of all actions and tasks within the workspace, known as the [action graph](../how-it-works/action-graph). In other tools, this is sometimes referred to as a diff --git a/website/docs/how-it-works/action-graph.mdx b/website/docs/how-it-works/action-graph.mdx index 3c9cb38d2ea..8c3af6798b6 100644 --- a/website/docs/how-it-works/action-graph.mdx +++ b/website/docs/how-it-works/action-graph.mdx @@ -95,5 +95,5 @@ that never exits. All persistent tasks are run in parallel as the last batch in ## What is the graph used for? -Without the action graph, tasks would not efficiently, or possibly at all! The graph helps to run -tasks in parallel, in the correct order, and to ensure a reliable outcome. +Without the action graph, tasks would not efficiently run, or possibly at all! The graph helps to +run tasks in parallel, in the correct order, and to ensure a reliable outcome. diff --git a/website/docs/install.mdx b/website/docs/install.mdx index 08b1dfb671c..ead8b814672 100644 --- a/website/docs/install.mdx +++ b/website/docs/install.mdx @@ -50,12 +50,8 @@ current session. To persist across sessions, update `PATH` manually. moon can be installed and managed in [proto's toolchain](/proto) using a TOML plugin. This will install moon to `~/.proto/tools/moon` and make the binary available at `~/.proto/bin`. -```toml title=".prototools" -[plugins] -moon = "source:https://raw.githubusercontent.com/moonrepo/moon/master/proto-plugin.toml" -``` - ```shell +proto add-plugin moon "source:https://raw.githubusercontent.com/moonrepo/moon/master/proto-plugin.toml" proto install moon ```