@@ -115,8 +115,6 @@ LINUX_ARCHS ?= linux/amd64,linux/386,linux/arm-5,linux/arm-6,linux/arm64
115
115
GO_TEST_PACKAGES ?= $(filter-out $(shell $(GO ) list code.gitea.io/gitea/models/migrations/...) code.gitea.io/gitea/tests/integration/migration-test code.gitea.io/gitea/tests code.gitea.io/gitea/tests/integration code.gitea.io/gitea/tests/e2e,$(shell $(GO ) list ./... | grep -v /vendor/) )
116
116
MIGRATE_TEST_PACKAGES ?= $(shell $(GO ) list code.gitea.io/gitea/models/migrations/...)
117
117
118
- FOMANTIC_WORK_DIR := web_src/fomantic
119
-
120
118
WEBPACK_SOURCES := $(shell find web_src/js web_src/css -type f)
121
119
WEBPACK_CONFIGS := webpack.config.js tailwind.config.js
122
120
WEBPACK_DEST := public/assets/js/index.js public/assets/css/index.css
@@ -140,7 +138,7 @@ TAGS_EVIDENCE := $(MAKE_EVIDENCE_DIR)/tags
140
138
141
139
TEST_TAGS ?= $(TAGS_SPLIT ) sqlite sqlite_unlock_notify
142
140
143
- TAR_EXCLUDES := .git data indexers queues log node_modules $(EXECUTABLE ) $(FOMANTIC_WORK_DIR ) /node_modules $( DIST ) $(MAKE_EVIDENCE_DIR ) $(AIR_TMP_DIR ) $(GO_LICENSE_TMP_DIR )
141
+ TAR_EXCLUDES := .git data indexers queues log node_modules $(EXECUTABLE ) $(DIST ) $(MAKE_EVIDENCE_DIR ) $(AIR_TMP_DIR ) $(GO_LICENSE_TMP_DIR )
144
142
145
143
GO_DIRS := build cmd models modules routers services tests
146
144
WEB_DIRS := web_src/js web_src/css
@@ -847,19 +845,6 @@ update-py: node-check | node_modules ## update py dependencies
847
845
poetry install
848
846
@touch .venv
849
847
850
- .PHONY : fomantic
851
- fomantic : # # build fomantic files
852
- rm -rf $(FOMANTIC_WORK_DIR ) /build
853
- cd $(FOMANTIC_WORK_DIR ) && npm install --no-save
854
- cp -f $(FOMANTIC_WORK_DIR ) /theme.config.less $(FOMANTIC_WORK_DIR ) /node_modules/fomantic-ui/src/theme.config
855
- cp -rf $(FOMANTIC_WORK_DIR ) /_site $(FOMANTIC_WORK_DIR ) /node_modules/fomantic-ui/src/
856
- $(SED_INPLACE ) -e ' s/ overrideBrowserslist\r/ overrideBrowserslist: ["defaults"]\r/g' $(FOMANTIC_WORK_DIR ) /node_modules/fomantic-ui/tasks/config/tasks.js
857
- cd $(FOMANTIC_WORK_DIR ) && npx gulp -f node_modules/fomantic-ui/gulpfile.js build
858
- # fomantic uses "touchstart" as click event for some browsers, it's not ideal, so we force fomantic to always use "click" as click event
859
- $(SED_INPLACE ) -e ' s/clickEvent[ \t]*=/clickEvent = "click", unstableClickEvent =/g' $(FOMANTIC_WORK_DIR ) /build/semantic.js
860
- $(SED_INPLACE ) -e ' s/\r//g' $(FOMANTIC_WORK_DIR ) /build/semantic.css $(FOMANTIC_WORK_DIR ) /build/semantic.js
861
- rm -f $(FOMANTIC_WORK_DIR ) /build/* .min.*
862
-
863
848
.PHONY : webpack
864
849
webpack : $(WEBPACK_DEST ) # # build webpack files
865
850
0 commit comments