Add Cannonical Workshop to make building and iteration easier on modern operating systems
Some checks failed
Node.js CI / lint (push) Has been cancelled
Node.js CI / build (16.x, macos-13) (push) Has been cancelled
Node.js CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node.js CI / build (16.x, windows-latest) (push) Has been cancelled

This commit is contained in:
unfunny
2026-10-24 16:33:30 -04:00
parent 14275cfdee
commit 6c6e2ae311
3 changed files with 39 additions and 0 deletions

1
.workshop.lock Normal file
View File

@@ -0,0 +1 @@
7be62bc9

10
.workshop/build.yaml Normal file
View File

@@ -0,0 +1,10 @@
name: build
base: ubuntu@24.04
sdks:
- name: node
channel: 20/stable
# project requires node 20 and yarn to build so we install them here
actions:
setup: |
npm install -g yarn@1

28
.workshop/dev.yaml Normal file
View File

@@ -0,0 +1,28 @@
name: dev
base: ubuntu@24.04
sdks:
- name: opencode
channel: 1/stable
plugs:
hostsvc:
interface: tunnel
endpoint: localhost:1234
- name: node
channel: 20/stable
- name: system
plugs:
datasets:
interface: mount
workshop-target: /home/workshop/.config/opencode.json
slots:
hostsvc:
interface: tunnel
endpoint: localhost:1234 # LM Studio
# project requires node 20 and yarn to build so we install them here
actions:
setup: |
npm install -g yarn@1
echo "export OPENCODE_PERMISSIONS__BASH=allow" >> /home/workshop/.bashrc
echo "export OPENCODE_PERMISSIONS__WRITE=allow" >> /home/workshop/.bashrc
echo "export OPENCODE_PERMISSIONS__READ=allow" >> /home/workshop/.bashrc