1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
builddir = .ninja

outdir = ./dist
jsdir = $outdir/js

rule tsc
  command = node_modules/.bin/tsc

build $outdir/index.js: tsc | src/index.ts tsconfig.json

rule run
  command = node $in

build run: run $outdir/index.js

build run-tap-bpm: run $outdir/index.js tap-bpm
  pool = console