about summary refs log tree commit diff
path: root/users/Profpatsch/declib/build.ninja
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2024-02-11T16·31+0100
committerProfpatsch <mail@profpatsch.de>2024-02-11T16·38+0000
commit80c683c9ecf0129b5468028856a1443d87c6c64a (patch)
tree1e83ff04313ed98c6ae60edcc38a525ec63f065f /users/Profpatsch/declib/build.ninja
parentd2e3f8cd7bd4599f5d7e57b0887eff922d5e4a44 (diff)
feat(declib): initial mastodon bot experiment r/7499
No default.nix yet, just for development.

Change-Id: Ib8bd0057d697fecd083d5961e635c770b7638e08
Reviewed-on: https://cl.tvl.fyi/c/depot/+/10803
Reviewed-by: Profpatsch <mail@profpatsch.de>
Tested-by: BuildkiteCI
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 0000000000..f8844fc9be
--- /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