aboutsummaryrefslogtreecommitdiffstats
path: root/shell.nix
diff options
context:
space:
mode:
authors-ol <s+removethis@s-ol.nu>2022-09-02 23:15:19 +0000
committers-ol <s+removethis@s-ol.nu>2022-09-02 23:15:19 +0000
commitecdd1d8a0e18798b4fe7232dbf6ebe0185c23d5d (patch)
tree5ec99398082665a8ea8a7a8ae8768fd77b671b76 /shell.nix
parentfix duplicate plugin loading (diff)
downloadmmm-ecdd1d8a0e18798b4fe7232dbf6ebe0185c23d5d.tar.gz
mmm-ecdd1d8a0e18798b4fe7232dbf6ebe0185c23d5d.zip
handle interactive html in layout
Diffstat (limited to 'shell.nix')
-rw-r--r--shell.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/shell.nix b/shell.nix
index 43728b9..32021c9 100644
--- a/shell.nix
+++ b/shell.nix
@@ -55,7 +55,14 @@ in pkgs.mkShell {
runServer () {
find build mmm -name '*.moon' | entr -dr moon build/server.moon "$@"
}
+
+ build () {
+ mkdir -p root/static/mmm
+ find mmm -name '*.moon' | moon build/bundle_modules.moon "$1/static/mmm/text\$lua.lua"
+ }
+
echo -e "\e[90m# run hot-reload server: \e[31mrunServer …\e[0m"
+ echo -e "\e[90m# run hot-reload server: \e[31mrunServer $ROOT\e[0m"
'';
LUA_PATH = "?.lua;?/init.lua";
}