Skip to content

Commit

Permalink
Add Grain
Browse files Browse the repository at this point in the history
  • Loading branch information
Phault committed Mar 31, 2024
1 parent 0caa207 commit ddd9116
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .prototools
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ deno = "1.41.2"
dprint = "0.45.0"
flyctl = "0.2.13"
gitleaks = "8.18.2"
grain = "0.6.1"
gum = "0.13.0"
hurl = "4.2.0"
# lacks aarch64-apple-darwin support
Expand Down Expand Up @@ -45,6 +46,7 @@ dagger = "source:dagger/plugin.toml"
dprint = "source:dprint/plugin.toml"
flyctl = "source:flyctl/plugin.toml"
gitleaks = "source:gitleaks/plugin.toml"
grain = "source:grain/plugin.toml"
gum = "source:gum/plugin.toml"
hurl = "source:hurl/plugin.toml"
hyperfine = "source:hyperfine/plugin.toml"
Expand Down
21 changes: 21 additions & 0 deletions grain/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Grain plugin

[Grain](https://grain-lang.org) plugin for [proto](https://github.com/moonrepo/proto).

## Installation

This is a community plugin and is thus not built-in to proto. In order to use it, first either add it to your global or project-based `.prototools` by running:

### Global install

```shell
proto plugin add grain "source:https://raw.githubusercontent.com/Phault/proto-toml-plugins/main/grain/plugin.toml" --global
proto install grain
```

## Per-project install

```shell
proto plugin add grain "source:https://raw.githubusercontent.com/Phault/proto-toml-plugins/main/grain/plugin.toml"
proto pin grain latest --resolve
```
25 changes: 25 additions & 0 deletions grain/plugin.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name = "Grain"
type = "language"

[resolve]
git-url = "https://github.com/grain-lang/grain"
version-pattern = "^grain-v((?<major>[0-9]+)\\.(?<minor>[0-9]+)\\.(?<patch>[0-9]+)(?<pre>-[^+]+)?)"

[platform.linux]
archs = ["x64"]
download-file = "grain-linux-{arch}"

[platform.macos]
archs = ["x64"]
download-file = "grain-mac-{arch}"

[platform.windows]
archs = ["x64"]
download-file = "grain-win-{arch}.exe"

[install]
download-url = "https://github.com/grain-lang/grain/releases/download/grain-v{version}/{download_file}"
unpack = false

[install.arch]
x86_64 = "x64"

0 comments on commit ddd9116

Please sign in to comment.