Skip to content

Commit bfdfa9a

Browse files
silverwindlunny
authored andcommitted
move fomantic target, update 'make help' (#9945)
I'd like to run webpack without fomantic in the prereqs so move it to the `generate` target. Co-authored-by: Lunny Xiao <[email protected]>
1 parent c8d7ae1 commit bfdfa9a

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Makefile

+6-5
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,11 @@ help:
103103
@echo " - clean-all delete all generated files (integration test, build, css and js files)"
104104
@echo " - css rebuild only css files"
105105
@echo " - js rebuild only js files"
106-
@echo " - generate run \"make css js\" and \"go generate\""
106+
@echo " - fomantic rebuild fomantic-ui files"
107+
@echo " - generate run \"make fomantic css js\" and \"go generate\""
107108
@echo " - fmt format the code"
108109
@echo " - generate-swagger generate the swagger spec from code comments"
109-
@echo " - swagger-validate check if the swagger spec is valide"
110+
@echo " - swagger-validate check if the swagger spec is valid"
110111
@echo " - revive run code linter revive"
111112
@echo " - misspell check if a word is written wrong"
112113
@echo " - vet examines Go source code and reports suspicious constructs"
@@ -159,7 +160,7 @@ vet:
159160
$(GO) vet $(PACKAGES)
160161

161162
.PHONY: generate
162-
generate: js css
163+
generate: fomantic js css
163164
GO111MODULE=on $(GO) generate -mod=vendor $(PACKAGES)
164165

165166
.PHONY: generate-swagger
@@ -475,7 +476,7 @@ npm-update: node-check node_modules
475476
npm install --package-lock
476477

477478
.PHONY: js
478-
js: node-check fomantic $(JS_DEST)
479+
js: node-check $(JS_DEST)
479480

480481
$(JS_DEST): node_modules $(JS_SOURCES)
481482
npx eslint web_src/js webpack.config.js
@@ -489,7 +490,7 @@ $(FOMANTIC_DEST_DIR): node_modules semantic.json web_src/fomantic/theme.config.l
489490
npx gulp -f node_modules/fomantic-ui/gulpfile.js build
490491

491492
.PHONY: css
492-
css: node-check fomantic $(CSS_DEST)
493+
css: node-check $(CSS_DEST)
493494

494495
$(CSS_DEST): node_modules $(CSS_SOURCES)
495496
npx stylelint web_src/less

0 commit comments

Comments
 (0)