2023-06-10 08:50:21 -04:00
|
|
|
VER_FONTAWESOME=6.4.0
|
2018-05-05 12:09:37 -04:00
|
|
|
|
|
|
|
|
2021-09-08 11:43:24 -04:00
|
|
|
default: generate download_libs
|
2018-05-05 12:09:37 -04:00
|
|
|
|
2021-09-08 11:43:24 -04:00
|
|
|
generate:
|
2023-06-10 08:50:21 -04:00
|
|
|
docker run --rm -i -v $(CURDIR):$(CURDIR) -w $(CURDIR) node:18-alpine \
|
|
|
|
sh -exc "apk add make && make generate-inner generate-apidocs && chown -R $(shell id -u) frontend node_modules"
|
2021-09-26 18:52:44 -04:00
|
|
|
|
|
|
|
generate-apidocs:
|
2023-03-07 10:09:04 -05:00
|
|
|
npx @redocly/cli build-docs docs/openapi.yaml --disableGoogleFont true -o /tmp/api.html
|
|
|
|
mv /tmp/api.html frontend/
|
2021-09-26 08:49:18 -04:00
|
|
|
|
|
|
|
generate-inner:
|
2021-10-20 19:04:48 -04:00
|
|
|
npx npm@latest ci
|
2023-06-10 08:50:21 -04:00
|
|
|
node ./ci/build.mjs
|
2017-08-03 12:33:56 -04:00
|
|
|
|
2023-06-10 08:50:21 -04:00
|
|
|
publish: download_libs generate-inner generate-apidocs
|
2017-08-03 12:33:56 -04:00
|
|
|
curl -sSLo golang.sh https://raw.githubusercontent.com/Luzifer/github-publish/master/golang.sh
|
|
|
|
bash golang.sh
|
2018-05-05 12:09:37 -04:00
|
|
|
|
|
|
|
# -- Download / refresh external libraries --
|
|
|
|
|
|
|
|
clean_libs:
|
2021-09-08 11:43:24 -04:00
|
|
|
rm -rf \
|
|
|
|
frontend/css \
|
|
|
|
frontend/js \
|
|
|
|
frontend/webfonts
|
|
|
|
|
|
|
|
download_libs: clean_libs
|
|
|
|
download_libs: fontawesome
|
2018-05-05 12:09:37 -04:00
|
|
|
|
|
|
|
fontawesome:
|
|
|
|
curl -sSfL https://github.com/FortAwesome/Font-Awesome/archive/$(VER_FONTAWESOME).tar.gz | \
|
2019-05-10 10:19:38 -04:00
|
|
|
tar -vC frontend -xz --strip-components=1 --wildcards --exclude='*/js-packages' '*/css' '*/webfonts'
|