Skip to content

Commit

Permalink
Start on blog post.
Browse files Browse the repository at this point in the history
  • Loading branch information
milesj committed Oct 9, 2023
1 parent a9f05f3 commit 61e1a57
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
] }
Expand Down
48 changes: 48 additions & 0 deletions website/blog/2023-10-09_moon-v1.15.mdx
Original file line number Diff line number Diff line change
@@ -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
---

???

<!--truncate-->

## 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 <app>:build` and
`moon run <app>: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.
4 changes: 4 additions & 0 deletions website/docs/commands/action-graph.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
title: action-graph
---

import VersionLabel from '@site/src/components/Docs/VersionLabel';

<VersionLabel version="1.15.0" header />

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
Expand Down
4 changes: 2 additions & 2 deletions website/docs/how-it-works/action-graph.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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.
6 changes: 1 addition & 5 deletions website/docs/install.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down

0 comments on commit 61e1a57

Please sign in to comment.