aboutsummaryrefslogtreecommitdiffstats
path: root/web/template
diff options
context:
space:
mode:
Diffstat (limited to 'web/template')
-rw-r--r--web/template/.gitmodules3
-rw-r--r--web/template/Makefile17
2 files changed, 20 insertions, 0 deletions
diff --git a/web/template/.gitmodules b/web/template/.gitmodules
new file mode 100644
index 0000000..e2ff495
--- /dev/null
+++ b/web/template/.gitmodules
@@ -0,0 +1,3 @@
+[submodule "vendor/custom-bootstrap"]
+ path = vendor/custom-bootstrap
+ url = git@github.com:ijanc/custom-bootstrap
diff --git a/web/template/Makefile b/web/template/Makefile
new file mode 100644
index 0000000..447ab66
--- /dev/null
+++ b/web/template/Makefile
@@ -0,0 +1,17 @@
+SASS ?= sass
+PNPM ?= pnpm
+
+CUSTOM_BOOTSTRAP_SCSS := vendor/custom-bootstrap/scss/custom.scss
+CUSTOM_CSS_OUT := assets/css/custom.css
+VENDOR_FOLDER := vendor/custom-bootstrap
+
+.PHONY: css watch-css install
+
+install:
+ $(SASS) -C $(VENDOR_FOLDER) install
+
+css:
+ $(SASS) $(CUSTOM_BOOTSTRAP_SCSS) $(CUSTOM_CSS_OUT)
+
+watch-css:
+ $(SASS) --watch $(CUSTOM_BOOTSTRAP_SCSS):$(CUSTOM_CSS_OUT)