Skip to content

Commit

Permalink
internal: Polish docs, tests, and workflows. (#1)
Browse files Browse the repository at this point in the history
* Remove latest versions.

* Update readmes.

* Rename plugins.

* Disable cache.
  • Loading branch information
milesj authored Jul 17, 2024
1 parent 6934b8b commit 3a00b6d
Show file tree
Hide file tree
Showing 25 changed files with 43 additions and 42 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
- uses: moonrepo/setup-rust@v1
with:
bins: cargo-nextest
cache: false
cache: false # Runs out of disk space
- uses: moonrepo/setup-toolchain@v0
with:
moon-version: latest
Expand Down
22 changes: 11 additions & 11 deletions .prototools
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[plugins]
bun-test = "source:target/wasm32-wasi/debug/bun_plugin.wasm"
deno-test = "source:target/wasm32-wasi/debug/deno_plugin.wasm"
go-test = "source:target/wasm32-wasi/debug/go_plugin.wasm"
# internal-schema = "source:target/wasm32-wasi/debug/schema_plugin.wasm"
moon-test = "source:https://raw.githubusercontent.com/moonrepo/moon/master/proto-plugin.toml"
node-test = "source:target/wasm32-wasi/debug/node_plugin.wasm"
npm-test = "source:target/wasm32-wasi/debug/node_depman_plugin.wasm"
pnpm-test = "source:target/wasm32-wasi/debug/node_depman_plugin.wasm"
python-test = "source:target/wasm32-wasi/debug/python_plugin.wasm"
rust-test = "source:target/wasm32-wasi/debug/rust_plugin.wasm"
yarn-test = "source:target/wasm32-wasi/debug/node_depman_plugin.wasm"
bun-test = "file://./target/wasm32-wasi/debug/bun_tool.wasm"
deno-test = "file://./target/wasm32-wasi/debug/deno_tool.wasm"
go-test = "file://./target/wasm32-wasi/debug/go_tool.wasm"
# internal-schema = "file://./target/wasm32-wasi/debug/schema_tool.wasm"
moon-test = "https://raw.githubusercontent.com/moonrepo/moon/master/proto-plugin.toml"
node-test = "file://./target/wasm32-wasi/debug/node_tool.wasm"
npm-test = "file://./target/wasm32-wasi/debug/node_depman_tool.wasm"
pnpm-test = "file://./target/wasm32-wasi/debug/node_depman_tool.wasm"
python-test = "file://./target/wasm32-wasi/debug/python_tool.wasm"
rust-test = "file://./target/wasm32-wasi/debug/rust_tool.wasm"
yarn-test = "file://./target/wasm32-wasi/debug/node_depman_tool.wasm"
16 changes: 8 additions & 8 deletions Cargo.lock

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

3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Toolchest

This repository contains all official WASM plugins for proto tools and moon toolchains.
2 changes: 1 addition & 1 deletion tools/bun/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "bun_plugin"
name = "bun_tool"
version = "0.12.2"
edition = "2021"
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion tools/bun/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This plugin is built-in to proto, but if you want to override it with an explici

```toml
[plugins]
bun = "source:https://github.com/moonrepo/bun-plugin/releases/download/vX.Y.Z/bun_plugin.wasm"
bun = "https://github.com/moonrepo/bun-plugin/releases/download/vX.Y.Z/bun_tool.wasm"
```

## Configuration
Expand Down
2 changes: 1 addition & 1 deletion tools/deno/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "deno_plugin"
name = "deno_tool"
version = "0.11.2"
edition = "2021"
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion tools/deno/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This plugin is built-in to proto, but if you want to override it with an explici

```toml
[plugins]
deno = "source:https://github.com/moonrepo/deno-plugin/releases/download/vX.Y.Z/deno_plugin.wasm"
deno = "https://github.com/moonrepo/deno-plugin/releases/download/vX.Y.Z/deno_tool.wasm"
```

## Configuration
Expand Down
1 change: 0 additions & 1 deletion tools/deno/tests/versions_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ generate_resolve_versions_tests!("deno-test", {
"1.19" => "1.19.3",
"1.11" => "1.11.5",
"1.9.2" => "1.9.2",
"1" => "1.44.4",
});

#[test]
Expand Down
2 changes: 1 addition & 1 deletion tools/go/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "go_plugin"
name = "go_tool"
version = "0.11.3"
edition = "2021"
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion tools/go/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This plugin is built-in to proto, but if you want to override it with an explici

```toml
[plugins]
go = "source:https://github.com/moonrepo/go-plugin/releases/download/vX.Y.Z/go_plugin.wasm"
go = "https://github.com/moonrepo/go-plugin/releases/download/vX.Y.Z/go_tool.wasm"
```

## Configuration
Expand Down
1 change: 0 additions & 1 deletion tools/go/tests/versions_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ generate_resolve_versions_tests!("go-test", {
"1.11" => "1.11.13",
"1.9.0-rc2" => "1.9.0-rc2",
"1.21.0" => "1.21.0",
"1.21" => "1.21.11",
});

#[test]
Expand Down
2 changes: 1 addition & 1 deletion tools/internal-schema/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "schema_plugin"
name = "schema_tool"
version = "0.14.0"
edition = "2021"
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion tools/internal-schema/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This plugin is built-in to proto, but if you want to override it with an explici

```toml
[plugins]
internal-schema = "source:https://github.com/moonrepo/schema-plugin/releases/download/vX.Y.Z/schema_plugin.wasm"
internal-schema = "https://github.com/moonrepo/schema-plugin/releases/download/vX.Y.Z/schema_tool.wasm"
```

## Configuration
Expand Down
2 changes: 1 addition & 1 deletion tools/node-depman/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "node_depman_plugin"
name = "node_depman_tool"
version = "0.11.5"
edition = "2021"
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion tools/node-depman/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This plugin is built-in to proto, but if you want to override it with an explici

```toml
[plugins]
npm|pnpm|yarn = "source:https://github.com/moonrepo/node-plugin/releases/download/vX.Y.Z/node_depman_plugin.wasm"
npm|pnpm|yarn = "https://github.com/moonrepo/node-plugin/releases/download/vX.Y.Z/node_depman_tool.wasm"
```

## Configuration
Expand Down
2 changes: 1 addition & 1 deletion tools/node-depman/tests/versions_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ mod yarn {
"1" => "1.22.22",
"2" => "2.4.3",
"3" => "3.8.3",
"berry" => "4.3.1",
// "berry" => "4.3.1",
});

#[test]
Expand Down
2 changes: 1 addition & 1 deletion tools/node/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "node_plugin"
name = "node_tool"
version = "0.11.5"
edition = "2021"
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion tools/node/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This plugin is built-in to proto, but if you want to override it with an explici

```toml
[plugins]
node = "source:https://github.com/moonrepo/node-plugin/releases/download/vX.Y.Z/node_plugin.wasm"
node = "https://github.com/moonrepo/node-plugin/releases/download/vX.Y.Z/node_tool.wasm"
```

## Configuration
Expand Down
4 changes: 2 additions & 2 deletions tools/node/tests/versions_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ generate_resolve_versions_tests!("node-test", {
"10.1" => "10.1.0",
"lts-gallium" => "16.20.2",
"lts/fermium" => "14.21.3",
"stable" => "20.15.1",
"node" => "22.4.1",
// "stable" => "20.15.1",
// "node" => "22.4.1",
});

#[test]
Expand Down
2 changes: 1 addition & 1 deletion tools/python/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "python_plugin"
name = "python_tool"
version = "0.10.4"
edition = "2021"
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion tools/python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This plugin is built-in to proto, but if you want to override it with an explici

```toml
[plugins]
python = "source:https://github.com/moonrepo/python-plugin/releases/download/vX.Y.Z/python_plugin.wasm"
python = "https://github.com/moonrepo/python-plugin/releases/download/vX.Y.Z/python_tool.wasm"
```

## Configuration
Expand Down
2 changes: 1 addition & 1 deletion tools/python/tests/versions_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ generate_resolve_versions_tests!("python-test", {
"2.3" => "2.3.7",
"3.10.1" => "3.10.1",
"3.10" => "3.10.14",
"3" => "3.12.4",
// "3" => "3.12.4",
});

#[test]
Expand Down
2 changes: 1 addition & 1 deletion tools/rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "rust_plugin"
name = "rust_tool"
version = "0.10.5"
edition = "2021"
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion tools/rust/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This plugin is built-in to proto, but if you want to override it with an explici

```toml
[plugins]
rust = "source:https://github.com/moonrepo/rust-plugin/releases/download/vX.Y.Z/rust_plugin.wasm"
rust = "https://github.com/moonrepo/rust-plugin/releases/download/vX.Y.Z/rust_tool.wasm"
```

## Configuration
Expand Down

0 comments on commit 3a00b6d

Please sign in to comment.