Skip to content

Latest commit

 

History

History
71 lines (49 loc) · 1.13 KB

inkjet.md

File metadata and controls

71 lines (49 loc) · 1.13 KB

Inkjet Commands

test//default

Run tests for Deno

deno test `fd test`

update

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

all

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

cache (file)

Update a single file in the Deno cache

deno cache -r=https://x.kite.run/lib/${file} https://x.kite.run/lib/${file}

changed

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

checkall//c

Typecheck all files by caching them

deno cache `fd -e ts -E wip -E npm`

index

Generate Readme index from TypeScript files

deno run --allow-read doc-gen.ts -m