feat: introduce devbox for build and publish tasks

This commit is contained in:
Prad Nukala 2025-01-07 15:02:40 -05:00
parent d83b60a5db
commit c1c1a608c2
2 changed files with 35 additions and 3 deletions

View File

@ -7,14 +7,26 @@ tasks:
- templ generate - templ generate
silent: true silent: true
nebula-build: nebula:build:
dir: . dir: .
cmds: cmds:
- bun run build - devbox run build
silent: true silent: true
esclient-build: nebula:publish:
dir: .
cmds:
- devbox run publish
silent: true
esclient:build:
dir: ./libs/es-client dir: ./libs/es-client
cmds: cmds:
- devbox run build - devbox run build
silent: true silent: true
esclient:publish:
dir: ./libs/es-client
cmds:
- devbox run publish
silent: true

20
devbox.json Normal file
View File

@ -0,0 +1,20 @@
{
"$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.13.1/.schema/devbox.schema.json",
"packages": [
"pnpm@latest",
"bun@latest"
],
"shell": {
"init_hook": [
"bun install"
],
"scripts": {
"build": [
"bun run build"
],
"publish": [
"bun run publish"
]
}
}
}