aboutsummaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authormsi2025-11-14 14:28:38 -0300
committermsi2025-11-14 14:28:38 -0300
commite8fe7f5532aee563a949b78098208da9e48445f2 (patch)
treefa4ecf7e398fe746862b81124a98e3756529d2cd /web
parentc806356b760c9478ac6b47e22e71917ba436bcd8 (diff)
downloadtemplates-e8fe7f5532aee563a949b78098208da9e48445f2.tar.gz
Add submodule custom css
Diffstat (limited to 'web')
-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)