mirror of
https://github.com/go-gitea/gitea.git
synced 2024-11-04 08:17:24 -05:00
Precompile fomantic-ui files (#13332)
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. Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
parent
7dfb2fc176
commit
946bbbe9b5
12
.gitignore
vendored
12
.gitignore
vendored
@ -80,7 +80,17 @@ coverage.all
|
||||
/public/css
|
||||
/public/fonts
|
||||
/public/img/webpack
|
||||
/web_src/fomantic/build
|
||||
/web_src/fomantic/build/*
|
||||
!/web_src/fomantic/build/semantic.js
|
||||
!/web_src/fomantic/build/semantic.css
|
||||
!/web_src/fomantic/build/themes
|
||||
/web_src/fomantic/build/themes/*
|
||||
!/web_src/fomantic/build/themes/default
|
||||
/web_src/fomantic/build/themes/default/assets/*
|
||||
!/web_src/fomantic/build/themes/default/assets/fonts
|
||||
/web_src/fomantic/build/themes/default/assets/fonts/*
|
||||
!/web_src/fomantic/build/themes/default/assets/fonts/icons.woff2
|
||||
!/web_src/fomantic/build/themes/default/assets/fonts/outline-icons.woff2
|
||||
/VERSION
|
||||
/.air
|
||||
|
||||
|
6
Makefile
6
Makefile
@ -210,7 +210,7 @@ node-check:
|
||||
|
||||
.PHONY: clean-all
|
||||
clean-all: clean
|
||||
rm -rf $(WEBPACK_DEST_ENTRIES) $(FOMANTIC_DEST_DIR)
|
||||
rm -rf $(WEBPACK_DEST_ENTRIES)
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
@ -323,7 +323,7 @@ watch:
|
||||
bash tools/watch.sh
|
||||
|
||||
.PHONY: watch-frontend
|
||||
watch-frontend: node-check $(FOMANTIC_DEST) node_modules
|
||||
watch-frontend: node-check node_modules
|
||||
rm -rf $(WEBPACK_DEST_ENTRIES)
|
||||
NODE_ENV=development npx webpack --hide-modules --display-entrypoints=false --watch --progress
|
||||
|
||||
@ -541,7 +541,7 @@ install: $(wildcard *.go)
|
||||
build: frontend backend
|
||||
|
||||
.PHONY: frontend
|
||||
frontend: node-check $(FOMANTIC_DEST) $(WEBPACK_DEST)
|
||||
frontend: node-check $(WEBPACK_DEST)
|
||||
|
||||
.PHONY: backend
|
||||
backend: go-check generate $(EXECUTABLE)
|
||||
|
43951
web_src/fomantic/build/semantic.css
Normal file
43951
web_src/fomantic/build/semantic.css
Normal file
File diff suppressed because it is too large
Load Diff
18707
web_src/fomantic/build/semantic.js
Normal file
18707
web_src/fomantic/build/semantic.js
Normal file
File diff suppressed because it is too large
Load Diff
BIN
web_src/fomantic/build/themes/default/assets/fonts/icons.woff2
Normal file
BIN
web_src/fomantic/build/themes/default/assets/fonts/icons.woff2
Normal file
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user