Skip to content

Commit dd4dba5

Browse files
authored
Merge pull request #30 from adl-lang/timbod-use-proto
use proto and drop local setup
2 parents a2ccf8e + 322e6c3 commit dd4dba5

File tree

10 files changed

+22
-141
lines changed

10 files changed

+22
-141
lines changed

.github/workflows/deno-ci.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,10 @@ jobs:
1313
- name: Checkout
1414
uses: actions/checkout@v4
1515

16-
- name: Setup Deno using local-setup script
17-
run: |
18-
source deno/local-setup.sh
19-
# Make sure .local/bin is added to PATH for subsequent steps
20-
echo "$PWD/.local/bin" >> $GITHUB_PATH
21-
deno --version
16+
- name: Setup tools using proto
17+
uses: moonrepo/setup-toolchain@v0
18+
with:
19+
auto-install: true
2220

2321
- name: Check formatting
2422
working-directory: ./deno
@@ -30,4 +28,4 @@ jobs:
3028

3129
- name: Check types
3230
working-directory: ./deno
33-
run: deno check local-setup.ts genadl.ts
31+
run: deno check genadl.ts

.github/workflows/ts-ci.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,10 @@ jobs:
1313
- name: Checkout
1414
uses: actions/checkout@v4
1515

16-
- name: Setup pnpm using local-setup script
17-
run: |
18-
source deno/local-setup.sh
19-
# Make sure .local/bin is added to PATH for subsequent steps
20-
echo "$PWD/.local/bin" >> $GITHUB_PATH
21-
deno --version
16+
- name: Setup tools using proto
17+
uses: moonrepo/setup-toolchain@v0
18+
with:
19+
auto-install: true
2220

2321
- name: Install deps
2422
working-directory: ./ts

.prototools

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
node = "20.7.0"
2+
pnpm = "10.6.5"
3+
deno = "2.2.5"
4+
adlc = "1.3.0"
5+
6+
[plugins]
7+
adlc = "https://raw.githubusercontent.com/adl-lang/proto-toml-plugins/main/adlc/plugin.toml"

.vscode/.zshrc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,3 @@ fi
55

66
# Keep history in the normal location
77
export HISTFILE="$HOME/.zsh_history"
8-
9-
# Source the local setup script
10-
if [ -f "$PWD/deno/local-setup.sh" ]; then
11-
. "$PWD/deno/local-setup.sh"
12-
fi

.vscode/settings.json

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,5 @@
33
"deno.enablePaths": ["deno"],
44
"deno.path": "./.local/bin/deno",
55
"deno.importMap": "./deno.json",
6-
"typescript.preferences.importModuleSpecifier": "non-relative",
7-
"terminal.integrated.profiles.osx": {
8-
"zsh (local-setup)": {
9-
"path": "zsh",
10-
"args": ["-i"],
11-
"env": {
12-
"ZDOTDIR": "${workspaceFolder}/.vscode",
13-
"ZSH_COMPDUMP": "${workspaceFolder}/.vscode/.zshcompdump",
14-
},
15-
"icon": "terminal-bash"
16-
}
17-
},
18-
"terminal.integrated.defaultProfile.osx": "zsh (local-setup)",
19-
"terminal.integrated.shellIntegration.enabled": true
6+
"typescript.preferences.importModuleSpecifier": "non-relative"
207
}

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,12 @@ current user are shown.
9393

9494
Currently linux and macos are supported.
9595

96-
Install docker and rust/cargo for your platform. Then install deno, node, pnpm, and adl into a repo
97-
local directory by sourcing the local setup script:
96+
Install docker and rust/cargo for your platform. Then install the appropriate versions of deno, node, pnpm, and
97+
adl locally using the [proto](https://moonrepo.dev/proto) tool.
9898

99-
```bash
100-
. deno/local-setup.sh
99+
```
100+
cd <repo root>
101+
proto install
101102
```
102103

103104
Check installed tool versions with:
@@ -173,7 +174,6 @@ cargo run --bin protoapp-tools -- create-user --is-admin sarah@test.com Sarah ab
173174
```bash
174175
(
175176
cd ts/ui
176-
# note pnpm is installed by local-setup.sh
177177
pnpm install
178178
pnpm run dev
179179
)
@@ -183,7 +183,6 @@ pnpm run dev
183183
```bash
184184
(
185185
cd ts/api-workbench
186-
# note pnpm is installed by local-setup.sh
187186
pnpm install
188187
pnpm run dev
189188
)

deno.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
"build-ui-image": "cd ts/ui && docker build --file Dockerfile --tag protoapp-ui:latest .."
77
},
88
"imports": {
9-
"@adllang/local-setup": "jsr:@adllang/local-setup@^0.16.0",
109
"@adllang/adl-runtime": "jsr:@adllang/adl-runtime@^0.1.0",
1110
"@adllang/adlc-tools": "jsr:@adllang/adlc-tools@^0.2.2",
1211
"@mesqueeb/case-anything": "jsr:@mesqueeb/case-anything@^3.1.0",

deno/deno.lock

Lines changed: 0 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deno/local-setup.sh

Lines changed: 0 additions & 55 deletions
This file was deleted.

deno/local-setup.ts

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)