Skip to content

Commit 57692fe

Browse files
committed
Precompile fomantic-ui files
We rarely change fomantic-ui or its configuration so it's kind of a waste to have it rebuild on every CI run. These changes remove the fomantic files from the build and instead add the relevant output files to the git index, which should shave of 2-3 minutes on every CI run. `make fomantic` should still work and should be ran whenever fomantic is updated or its configuration is changed.
1 parent bb89fa1 commit 57692fe

File tree

6 files changed

+62672
-4
lines changed

6 files changed

+62672
-4
lines changed

.gitignore

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,17 @@ coverage.all
8080
/public/css
8181
/public/fonts
8282
/public/img/webpack
83-
/web_src/fomantic/build
83+
/web_src/fomantic/build/*
84+
!/web_src/fomantic/build/semantic.js
85+
!/web_src/fomantic/build/semantic.css
86+
!/web_src/fomantic/build/themes
87+
/web_src/fomantic/build/themes/*
88+
!/web_src/fomantic/build/themes/default
89+
/web_src/fomantic/build/themes/default/assets/*
90+
!/web_src/fomantic/build/themes/default/assets/fonts
91+
/web_src/fomantic/build/themes/default/assets/fonts/*
92+
!/web_src/fomantic/build/themes/default/assets/fonts/icons.woff2
93+
!/web_src/fomantic/build/themes/default/assets/fonts/outline-icons.woff2
8494
/VERSION
8595
/.air
8696

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ node-check:
210210

211211
.PHONY: clean-all
212212
clean-all: clean
213-
rm -rf $(WEBPACK_DEST_ENTRIES) $(FOMANTIC_DEST_DIR)
213+
rm -rf $(WEBPACK_DEST_ENTRIES)
214214

215215
.PHONY: clean
216216
clean:
@@ -323,7 +323,7 @@ watch:
323323
bash tools/watch.sh
324324

325325
.PHONY: watch-frontend
326-
watch-frontend: node-check $(FOMANTIC_DEST) node_modules
326+
watch-frontend: node-check node_modules
327327
rm -rf $(WEBPACK_DEST_ENTRIES)
328328
NODE_ENV=development npx webpack --hide-modules --display-entrypoints=false --watch --progress
329329

@@ -541,7 +541,7 @@ install: $(wildcard *.go)
541541
build: frontend backend
542542

543543
.PHONY: frontend
544-
frontend: node-check $(FOMANTIC_DEST) $(WEBPACK_DEST)
544+
frontend: node-check $(WEBPACK_DEST)
545545

546546
.PHONY: backend
547547
backend: go-check generate $(EXECUTABLE)

0 commit comments

Comments
 (0)