about summary refs log tree commit diff
path: root/users/Profpatsch/lyric/build.ninja
diff options
context:
space:
mode:
Diffstat (limited to 'users/Profpatsch/lyric/build.ninja')
-rw-r--r--users/Profpatsch/lyric/build.ninja17
1 files changed, 17 insertions, 0 deletions
diff --git a/users/Profpatsch/lyric/build.ninja b/users/Profpatsch/lyric/build.ninja
new file mode 100644
index 000000000000..a5752bef5002
--- /dev/null
+++ b/users/Profpatsch/lyric/build.ninja
@@ -0,0 +1,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