Skip to content

Commit

Permalink
docs: Update blog post. (#1194)
Browse files Browse the repository at this point in the history
* First pass.

* Add blog post.

* Fix indents.

* Update product pages.

* Add image.
  • Loading branch information
milesj committed Nov 20, 2023
1 parent 23a3e04 commit 40ce29d
Show file tree
Hide file tree
Showing 96 changed files with 1,121 additions and 1,070 deletions.
27 changes: 18 additions & 9 deletions Cargo.lock

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

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ pathdiff = "0.2.1"
petgraph = { version = "0.6.4", default-features = false, features = [
"serde-1",
] }
proto_core = "0.23.1"
proto_core = "0.23.2"
relative-path = { version = "1.9.0", features = ["serde"] }
regex = "1.10.2"
reqwest = { version = "0.11.22", default-features = false, features = [
Expand Down Expand Up @@ -68,7 +68,7 @@ starbase_archive = { version = "0.2.4", default-features = false, features = [
starbase_events = { version = "0.2.2" }
starbase_sandbox = "0.1.12"
starbase_styles = { version = "0.1.16", features = ["relative-path"] }
starbase_utils = { version = "0.3.8", default-features = false, features = [
starbase_utils = { version = "0.3.11", default-features = false, features = [
"editor-config",
"glob",
"json",
Expand All @@ -90,4 +90,4 @@ tokio = { version = "1.34.0", default-features = false, features = [
tokio-util = "0.7.10"
tracing = "0.1.40"
url = "2.4.1"
uuid = { version = "1.5.0", features = ["v4"] }
uuid = { version = "1.6.0", features = ["v4"] }
2 changes: 1 addition & 1 deletion crates/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ console = { workspace = true }
dialoguer = { version = "0.11.0", default-features = false }
diff = "0.1.13"
indicatif = "0.17.7"
itertools = "0.11.0"
itertools = "0.12.0"
miette = { workspace = true }
mimalloc = { version = "0.1.39", default-features = false }
open = "5.0.0"
Expand Down
2 changes: 1 addition & 1 deletion crates/rust/lang/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ moon_lang = { path = "../../core/lang" }
moon_logger = { path = "../../core/logger" }
cached = { workspace = true }
cargo-lock = "9.0.0"
cargo_toml = "0.16.3"
cargo_toml = "0.17.0"
miette = { workspace = true }
rustc-hash = { workspace = true }
serde = { workspace = true }
Expand Down
18 changes: 9 additions & 9 deletions scripts/new-language.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ This allows projects to configure their primary language, and is utilized by edi

```rust
enum ProjectLanguage {
// ...
Kotlin,
// ...
Kotlin,
}
```

Expand Down Expand Up @@ -112,10 +112,10 @@ When ready, add a new field to the `ToolchainConfig` struct.

```rust
pub struct ToolchainConfig {
// ...
// ...
#[setting(nested)]
pub kotlin: Option<KotlinConfig>,
#[setting(nested)]
pub kotlin: Option<KotlinConfig>,
}
```

Expand All @@ -132,8 +132,8 @@ This enum is the backbone of supporting language specific platforms.

```rust
enum PlatformType {
// ...
Kotlin,
// ...
Kotlin,
}
```

Expand Down Expand Up @@ -226,8 +226,8 @@ toolchain to be disabled.
```rust
#[derive(Config)]
pub struct KotlinConfig {
// ...
pub version: Option<String>,
// ...
pub version: Option<String>,
}
```

Expand Down
36 changes: 18 additions & 18 deletions website/blog/2023-01-30_v0.23.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -104,53 +104,53 @@ to handle, and yet to be discovered functionality.

```yaml title=".moon/tasks/node.yml"
tasks:
format:
command: 'prettier --write .'
format:
command: 'prettier --write .'
```
</TabItem>
<TabItem value="go">
```yaml title=".moon/tasks/go.yml"
tasks:
format:
command: 'go fmt'
format:
command: 'go fmt'
```
</TabItem>
<TabItem value="php">
```yaml title=".moon/tasks/php.yml"
tasks:
format:
command: 'phpcbf .'
format:
command: 'phpcbf .'
```
</TabItem>
<TabItem value="python">
```yaml title=".moon/tasks/python.yml"
tasks:
format:
command: 'pylint .'
format:
command: 'pylint .'
```
</TabItem>
<TabItem value="ruby">
```yaml title=".moon/tasks/ruby.yml"
tasks:
format:
command: 'rubocop -l'
format:
command: 'rubocop -l'
```
</TabItem>
<TabItem value="rust">
```yaml title=".moon/tasks/rust.yml"
tasks:
format:
command: 'cargo fmt --all --check'
format:
command: 'cargo fmt --all --check'
```
</TabItem>
Expand Down Expand Up @@ -182,47 +182,47 @@ now inherit dependency manager related files as implicit inputs on a per-languag

```yaml title=".moon/tasks/node.yml"
implicitInputs:
- 'package.json'
- 'package.json'
```

</TabItem>
<TabItem value="go">

```yaml title=".moon/tasks/go.yml"
implicitInputs:
- 'go.mod'
- 'go.mod'
```

</TabItem>
<TabItem value="php">

```yaml title=".moon/tasks/php.yml"
implicitInputs:
- 'composer.json'
- 'composer.json'
```

</TabItem>
<TabItem value="python">

```yaml title=".moon/tasks/python.yml"
implicitInputs:
- 'pyproject.toml'
- 'pyproject.toml'
```

</TabItem>
<TabItem value="ruby">

```yaml title=".moon/tasks/ruby.yml"
implicitInputs:
- 'Gemfile'
- 'Gemfile'
```

</TabItem>
<TabItem value="rust">

```yaml title=".moon/tasks/rust.yml"
implicitInputs:
- 'Cargo.toml'
- 'Cargo.toml'
```

</TabItem>
Expand Down
26 changes: 13 additions & 13 deletions website/blog/2023-02-13_v0.24.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ defined, we'll attempt to detect the correct platform based on the state of the
platform: 'node'

tasks:
# Will be node
# Will be node
dev: # ...

# Will be node
# Will be node
build: # ...

# Will be system
# Will be system
serve:
# ...
platform: 'system'
Expand Down Expand Up @@ -126,17 +126,17 @@ introducing a new [`moon query tasks`](/docs/commands/query/tasks) command!
```
$ moon query tasks
types
:build | packemon
:format | prettier
:lint | eslint
:test | jest
:typecheck | tsc
:build | packemon
:format | prettier
:lint | eslint
:test | jest
:typecheck | tsc
report
:build | packemon
:format | prettier
:lint | eslint
:test | jest
:typecheck | tsc
:build | packemon
:format | prettier
:lint | eslint
:test | jest
:typecheck | tsc
...
```
Expand Down
14 changes: 7 additions & 7 deletions website/blog/2023-02-27_v0.25.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ the [`platform`](/docs/config/project#platform-1) to "deno" when using a deno co

```yaml title="moon.yml"
tasks:
format:
command: 'deno fmt'
format:
command: 'deno fmt'
```

:::info
Expand Down Expand Up @@ -124,8 +124,8 @@ Well no more, projects can now override the workspace-level TypeScript settings

```yaml title="moon.yml"
toolchain:
typescript:
routeOutDirToCache: false
typescript:
routeOutDirToCache: false
```

Because this setting was changed from a boolean to an object, the old pattern of disabling
Expand All @@ -134,12 +134,12 @@ Typescript must now use the `disabled` setting.
```yaml title="moon.yml"
# Old
toolchain:
typescript: false
typescript: false
# new
toolchain:
typescript:
disabled: true
typescript:
disabled: true
```

## New `moonrepo/setup-moon-action` GitHub action
Expand Down
4 changes: 2 additions & 2 deletions website/blog/2023-04-03_moon-v1.1.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ referencing shared scripts from the workspace root.

```yaml title="moon.yml"
tasks:
precheck:
command: '$workspaceRoot/scripts/precheck.sh'
precheck:
command: '$workspaceRoot/scripts/precheck.sh'
```

## Run targets in closest project
Expand Down
Loading

0 comments on commit 40ce29d

Please sign in to comment.