aboutsummaryrefslogtreecommitdiff
path: root/dev
diff options
context:
space:
mode:
authorJoris2020-02-02 13:53:54 +0100
committerJoris2020-02-02 13:58:19 +0100
commit0ce8744897b9aa13ea568a6985da9570e4aca90b (patch)
tree3619508ff9ec5d846c567c3562d05ca77e686c76 /dev
parent13d29804ba4bb8d578fb0278ddeb6e187bbafa6f (diff)
downloadcooking-0ce8744897b9aa13ea568a6985da9570e4aca90b.tar.gz
cooking-0ce8744897b9aa13ea568a6985da9570e4aca90b.tar.bz2
cooking-0ce8744897b9aa13ea568a6985da9570e4aca90b.zip
Use zola generator
- Use CSS instead of Haskell with Clay - Use TypeScript instead of PureScript
Diffstat (limited to 'dev')
-rwxr-xr-xdev33
1 files changed, 33 insertions, 0 deletions
diff --git a/dev b/dev
new file mode 100755
index 0000000..b7eddfe
--- /dev/null
+++ b/dev
@@ -0,0 +1,33 @@
+#!/usr/bin/env bash
+cd "$(dirname $0)"
+CMD="$1"
+PROJECT="cooking"
+
+if [ "$CMD" = "start" ]; then
+
+ nix-shell --run "tmuxinator local"
+
+elif [ "$CMD" = "stop" ]; then
+
+ nix-shell --run "tmux kill-session -t $PROJECT"
+
+elif [ "$CMD" = "watch-ts" ]; then
+
+ tsc \
+ --watch \
+ --pretty \
+ --sourceMap \
+ --removeComments \
+ --strict \
+ --noUnusedLocals \
+ --noUnusedParameters \
+ --noImplicitReturns \
+ --outDir static \
+ main.ts
+
+else
+
+ echo "Usage: $0 start|stop|watch-ts"
+ exit 1
+
+fi