-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: try to stabilize/rework before docs
- Loading branch information
1 parent
f227cd2
commit bb2771a
Showing
10 changed files
with
155 additions
and
92 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
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
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
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,33 @@ | ||
# shellcheck shell=bash disable=SC2016 | ||
|
||
denoBuildHook() { | ||
echo "Executing denoBuildHook" | ||
|
||
runHook preBuild | ||
|
||
local -r depsOut="$out/lib/deno_dir" | ||
|
||
if [ -z "${denoBuildTask-}" ]; then | ||
echo | ||
echo "ERROR: no build task was specified" | ||
echo 'Hint: set `denoBuildTask`, override `buildPhase`, or set `dontDenoBuild = true`.' | ||
echo | ||
exit 1 | ||
fi | ||
|
||
if ! deno task "$denoBuildTask"; then | ||
echo | ||
echo "ERROR: build task failed" | ||
echo | ||
echo 'Make sure that the `deno.json` file exists and that the specified task is valid.' | ||
exit 1 | ||
fi | ||
|
||
runHook postBuild | ||
|
||
echo "Finished denoBuildHook" | ||
} | ||
|
||
if [ -z "${dontDenoBuild-}" ] && [ -z "${buildPhase-}" ]; then | ||
buildPhase=denoBuildHook | ||
fi |
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
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,28 @@ | ||
# shellcheck shell=bash | ||
|
||
denoInstallHook() { | ||
echo "Executing denoInstallHook" | ||
|
||
local -r depsOut="$out/lib/deno_dir" | ||
|
||
if [ -z "${dontCopyDenoDir-}" ]; then | ||
mkdir -p "$depsOut" | ||
cp -Lr --reflink=auto -- "$DENO_PREFETCH_DIR" "$DENO_DIR" | ||
fi | ||
|
||
mkdir -p "$out/bin" | ||
makeWrapper \ | ||
@hostDeno@ \ | ||
"$out/bin/@binaryName@" \ | ||
--set DENO_DIR "$depsOut" \ | ||
--set DENO_NO_UPDATE_CHECK 1 \ | ||
--set DENO_REPL_HISTORY "" \ | ||
--set NPM_CONFIG_REGISTRY "$npmRegistryUrl" \ | ||
--add-flags "@denoFlags@" | ||
|
||
echo "Finished denoInstallHook" | ||
} | ||
|
||
if [ -z "${dontDenoInstall-}" ] && [ -z "${installPhase-}" ]; then | ||
installPhase=denoInstallHook | ||
fi |
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
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
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
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