-
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.
correct error handling; formal build; formatting; various
- Loading branch information
Showing
29 changed files
with
1,334 additions
and
21,921 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
HERE="$(realpath "$(dirname "$0")")" | ||
|
||
deno install -rf --allow-read="$HERE/" --allow-write="$HERE/" --allow-net https://deno.land/x/udd/main.ts | ||
|
||
cd "$HERE/legacy/" && ( | ||
./build.ts | ||
) | ||
|
||
cd "$HERE/site/" && ( | ||
cargo install mdbook | ||
mdbook build | ||
rm -rf ../docs/* | ||
rsync -av ./book/ ../docs/ | ||
) | ||
|
||
cd "$HERE" && ( | ||
# udd `find . -type f -name "*.ts"` | ||
|
||
deno fmt `find . -type f -name "*.md"` | ||
deno fmt `find . -type f -name "*.ts"` | ||
|
||
# This detects the hack pattern, only on the second line of the file | ||
# and removes the added semicolon if present. `deno fmt` breaks the | ||
# hack shebang pattern, so we have to fix it up. | ||
sed -i '2s|^":";\s[/][/]#;|":" //#;|' `find . -type f -name "*.ts"` | ||
|
||
deno lint `find . -type f -name "*.ts"` | ||
deno check `find . -type f -name "*.ts"` | ||
|
||
deno test --reload --allow-read --allow-run=grep,sort,uniq,gunzip,ls,deno ./tests/ | ||
) | ||
|
Oops, something went wrong.