forked from pkgxdev/pkgx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Installs `deno` in prebuild and compiles ./tea on opening workspace
- Loading branch information
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
) |