浏览代码

:gear: Updates configs

Jeff Triplett 4 年之前
父节点
当前提交
1e199827fe
共有 2 个文件被更改,包括 24 次插入3 次删除
  1. 4 3
      justfile
  2. 20 0
      modd.conf

+ 4 - 3
justfile

@@ -8,9 +8,13 @@ TAILWIND_CSS_VERSION := "2.1.1"
 
 @build:
     just toc
+    bundle exec jekyll build
 
 @lint:
     npx awesome-lint README.md
+@serve:
+    modd --file=modd.conf
+    bundle exec jekyll serve --drafts --watch --port 8000
 
 @static:
 	JEKYLL_ENV=production \
@@ -25,8 +29,5 @@ TAILWIND_CSS_VERSION := "2.1.1"
 		--output ./assets/development.css \
 		-w
 
-@serve:
-	bundle exec jekyll serve --drafts --watch --port 8000
-
 @toc:
 	npx doctoc README.md

+ 20 - 0
modd.conf

@@ -0,0 +1,20 @@
+{
+	# prep: "killall ruby"
+	daemon +sigterm: "bundle exec jekyll serve --drafts --watch --port 4000"
+}
+
+# DEVD proxy with livereload listening on port 8000
+
+**/*.css
+**/*.html
+**/*.js
+!src/**
+{
+    daemon: "devd --modd -l http://localhost:4000"
+}
+
+# src/*.css
+# src/*.js
+# {
+#     prep +onchange: "just static"
+# }