Run tests for Deno
deno test `fd test`
Update the Deno cache. Run after pushing changes.
set -e
for file in `$INKJET changed`; do
deno cache -r=https://x.kite.run/lib/${file} https://x.kite.run/lib/${file}
done
echo -n `git rev-parse HEAD` >| .git/last_push.txt
Cache all files
files=`fd --extension ts --extension js -E wip -E npm`
for file in $files; do
deno cache -r https://x.kite.run/lib/${file}
done
Update a single file in the Deno cache
deno cache -r=https://x.kite.run/lib/${file} https://x.kite.run/lib/${file}
Show changed TypeScript/JavaScript modules
current=`git rev-parse HEAD`
last=`cat .git/last_push.txt`
files=''
if [ "$current" != "$last" ]; then
files=`git diff --name-only $last $current | grep -E -i -e '.tsx?$' -e '.jsx?$' | grep -E -v '^npm/'`
echo $files
fi
Typecheck all files by caching them
deno cache `fd -e ts -E wip -E npm`
Generate Readme index from TypeScript files
deno run --allow-read doc-gen.ts -m