Skip to content

Commit

Permalink
tea served by Gitpod (pkgxdev#127)
Browse files Browse the repository at this point in the history
Installs `deno` in prebuild and compiles ./tea on opening workspace
  • Loading branch information
abitrolly authored Dec 21, 2022
1 parent ece4d8b commit 6164c6b
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# List the start up tasks. Learn more https://www.gitpod.io/docs/config-start-tasks/

tasks:
- init: |
# runs during prebuild
(
set -e
# install `deno` for bootstrap into workspace dir
# https://www.gitpod.io/docs/configure/projects/prebuilds#workspace-directory-only
curl -fsSL https://deno.land/install.sh | DENO_INSTALL=.deno sh
)
command: |
# runs during startup
(
set -e
# compile ./tea
.deno/bin/deno compile \
--allow-read \
--allow-write \
--allow-net \
--allow-run \
--allow-env \
--unstable \
--import-map="import-map.json" \
--output "./tea" \
"src/app.ts"
echo "./tea is hot"
)

0 comments on commit 6164c6b

Please sign in to comment.