about summary refs log tree commit diff
path: root/users/Profpatsch/declib/build.ninja
diff options
context:
space:
mode:
Diffstat (limited to 'users/Profpatsch/declib/build.ninja')
-rw-r--r--users/Profpatsch/declib/build.ninja16
1 files changed, 16 insertions, 0 deletions
diff --git a/users/Profpatsch/declib/build.ninja b/users/Profpatsch/declib/build.ninja
new file mode 100644
index 000000000000..f8844fc9be16
--- /dev/null
+++ b/users/Profpatsch/declib/build.ninja
@@ -0,0 +1,16 @@
+
+builddir = .ninja
+
+outdir = ./output
+jsdir = $outdir/js
+
+rule tsc
+  command = node_modules/.bin/tsc
+
+build $outdir/index.js: tsc | index.ts tsconfig.json
+
+rule run
+  command = node $in
+
+build run: run $outdir/index.js
+  pool = console