-
-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Add proto v0.18 blog post. (#1054)
* Update docs. * Fix query. * Add blog post. * Comment out test.
- Loading branch information
Showing
11 changed files
with
221 additions
and
60 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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
releases: | ||
"@moonrepo/cli": patch | ||
"@moonrepo/core-linux-arm64-gnu": patch | ||
"@moonrepo/core-linux-arm64-musl": patch | ||
"@moonrepo/core-linux-x64-gnu": patch | ||
"@moonrepo/core-linux-x64-musl": patch | ||
"@moonrepo/core-macos-arm64": patch | ||
"@moonrepo/core-macos-x64": patch | ||
"@moonrepo/core-windows-x64-msvc": patch |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,44 +1,44 @@ | ||
use moon_test_utils::{create_sandbox_with_config, get_cases_fixture_configs}; | ||
use moon_utils::is_ci; | ||
use starbase_utils::dirs; | ||
// use moon_test_utils::{create_sandbox_with_config, get_cases_fixture_configs}; | ||
// use moon_utils::is_ci; | ||
// use starbase_utils::dirs; | ||
|
||
#[test] | ||
fn sets_up_and_tears_down() { | ||
// This is heavy so avoid in local tests for now | ||
if !is_ci() { | ||
return; | ||
} | ||
// #[test] | ||
// fn sets_up_and_tears_down() { | ||
// // This is heavy so avoid in local tests for now | ||
// if !is_ci() { | ||
// return; | ||
// } | ||
|
||
// We use a different Node.js version as to not conflict with other tests! | ||
let node_version = "17.1.0"; | ||
let home_dir = dirs::home_dir().unwrap(); | ||
let moon_dir = home_dir.join(".proto"); | ||
let node_dir = moon_dir.join("tools/node").join(node_version); | ||
// // We use a different Node.js version as to not conflict with other tests! | ||
// let node_version = "17.1.0"; | ||
// let home_dir = dirs::home_dir().unwrap(); | ||
// let moon_dir = home_dir.join(".proto"); | ||
// let node_dir = moon_dir.join("tools/node").join(node_version); | ||
|
||
assert!(!node_dir.exists()); | ||
// assert!(!node_dir.exists()); | ||
|
||
let (workspace_config, toolchain_config, tasks_config) = get_cases_fixture_configs(); | ||
// let (workspace_config, toolchain_config, tasks_config) = get_cases_fixture_configs(); | ||
|
||
let sandbox = create_sandbox_with_config( | ||
"cases", | ||
Some(workspace_config), | ||
Some(toolchain_config), | ||
Some(tasks_config), | ||
); | ||
// let sandbox = create_sandbox_with_config( | ||
// "cases", | ||
// Some(workspace_config), | ||
// Some(toolchain_config), | ||
// Some(tasks_config), | ||
// ); | ||
|
||
let setup = sandbox.run_moon(|cmd| { | ||
cmd.arg("setup").env("MOON_NODE_VERSION", node_version); | ||
}); | ||
// let setup = sandbox.run_moon(|cmd| { | ||
// cmd.arg("setup").env("MOON_NODE_VERSION", node_version); | ||
// }); | ||
|
||
setup.success().code(0); | ||
// setup.success().code(0); | ||
|
||
assert!(node_dir.exists()); | ||
// assert!(node_dir.exists()); | ||
|
||
let teardown = sandbox.run_moon(|cmd| { | ||
cmd.arg("teardown").env("MOON_NODE_VERSION", node_version); | ||
}); | ||
// let teardown = sandbox.run_moon(|cmd| { | ||
// cmd.arg("teardown").env("MOON_NODE_VERSION", node_version); | ||
// }); | ||
|
||
teardown.success().code(0); | ||
// teardown.success().code(0); | ||
|
||
assert!(!node_dir.exists()); | ||
} | ||
// assert!(!node_dir.exists()); | ||
// } |
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
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,67 @@ | ||
--- | ||
slug: proto-v0.18 | ||
title: proto v0.18 - List installed tools and configure HTTP client | ||
authors: [milesj] | ||
tags: [proto, http] | ||
# image: ./img/proto/v0.17.png | ||
--- | ||
|
||
Today we've got a small release that includes some helpful features. | ||
|
||
<!--truncate--> | ||
|
||
## New `proto tools` command | ||
|
||
Are you curious what tools you have installed? And more specifically, which versions? What about | ||
configured aliases? Until now, you had to manually check the `~/.proto/tools` directory for this | ||
information, but now, you can simply run [`proto tools`](/docs/proto/commands/tools) to get a list | ||
of all installed tools. | ||
|
||
This command will list all tools that have been installed, along with their installed versions, | ||
relevant timestamps, available aliases, and store location. | ||
|
||
```shell | ||
$ proto tools | ||
go - Go | ||
Store: ~/.proto/tools/go | ||
Versions: | ||
1.20.0 - installed 08/24/23, last used 09/18/23 | ||
1.20.2 - installed 01/01/70, last used 09/18/23, default version | ||
|
||
node - Node.js | ||
Store: ~/.proto/tools/node | ||
Aliases: | ||
~20 = stable | ||
Versions: | ||
18.0.0 - installed 09/03/23, last used 09/18/23, default version | ||
18.14.0 - installed 09/04/23, last used 09/04/23 | ||
18.17.1 - installed 09/04/23, last used 09/04/23 | ||
19.0.0 - installed 09/03/23 | ||
20.0.0 - installed 09/03/23 | ||
20.6.0 - installed 09/04/23, last used 09/18/23 | ||
``` | ||
|
||
> This information can also be represented as JSON by passing the `--json` flag. | ||
|
||
## New `[http]` user settings | ||
|
||
Furthermore, we've added a new [`[http]` setting to `~/.proto/config.toml`](/docs/proto/config#http) | ||
that allows you to configure aspects of the HTTP client, which is primarily used for downloading | ||
tools. | ||
|
||
This may useful if you're behind a proxy, a VPN, or corporate network, and certain requests and | ||
certificates are blocked. | ||
|
||
```toml title="~/.proto/config.toml" | ||
[http] | ||
proxies = ["http://intra.net/proxy"] | ||
root-cert = "/path/to/root/cert.pem" | ||
``` | ||
|
||
## Other changes | ||
|
||
View the [official release](https://github.com/moonrepo/proto/releases/tag/v0.18.0) for a full list | ||
of changes. | ||
|
||
- For TOML plugins, we updated the schema internally to be represented as JSON instead of TOML, | ||
which may cause breakages depending on a version mismatch between proto and the plugin. |
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,41 @@ | ||
--- | ||
title: tools | ||
--- | ||
|
||
The `proto tools` command will list all tools that have been installed, along with their installed | ||
versions, relevant timestamps, available aliases, and store location. | ||
|
||
```shell | ||
$ proto tools | ||
go - Go | ||
Store: ~/.proto/tools/go | ||
Versions: | ||
1.20.0 - installed 08/24/23, last used 09/18/23 | ||
1.20.2 - installed 01/01/70, last used 09/18/23, default version | ||
|
||
node - Node.js | ||
Store: ~/.proto/tools/node | ||
Aliases: | ||
~20 = stable | ||
Versions: | ||
18.0.0 - installed 09/03/23, last used 09/18/23, default version | ||
18.14.0 - installed 09/04/23, last used 09/04/23 | ||
18.17.1 - installed 09/04/23, last used 09/04/23 | ||
19.0.0 - installed 09/03/23 | ||
20.0.0 - installed 09/03/23 | ||
20.6.0 - installed 09/04/23, last used 09/18/23 | ||
``` | ||
|
||
A list of tool IDs can be provided to filter the output list. | ||
|
||
```shell | ||
$ proto tools node npm | ||
``` | ||
|
||
### Arguments | ||
|
||
- `[id...]` - IDs of plugins. | ||
|
||
### Options | ||
|
||
- `--json` - Print the list in JSON format. |
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