2019-05-10 14:19:38 +00:00
|
|
|
VER_BOOTSTRAP=4.3.1
|
|
|
|
VER_BOOTSWATCH=4.3.1
|
2020-08-10 15:45:26 +00:00
|
|
|
VER_FONTAWESOME=5.14.0
|
2018-05-05 16:09:37 +00:00
|
|
|
VER_GIBBERISH_AES=1.0.0
|
2019-05-10 14:19:38 +00:00
|
|
|
VER_JQUERY=3.4.1
|
|
|
|
VER_POPPER=1.15.0
|
|
|
|
VER_VUE=2.6.10
|
2019-07-14 15:38:22 +00:00
|
|
|
VER_VUE_I18N=8.12.0
|
2018-05-05 16:09:37 +00:00
|
|
|
|
|
|
|
|
|
|
|
default: generate
|
|
|
|
|
2019-05-10 21:12:00 +00:00
|
|
|
generate: download_libs
|
2018-10-06 17:57:53 +00:00
|
|
|
docker run --rm -ti -v $(CURDIR):$(CURDIR) -w $(CURDIR)/src node:10-alpine \
|
2019-07-14 16:20:16 +00:00
|
|
|
sh -exc "npx npm@lts ci && npx npm@lts run build && chown -R $(shell id -u) ../frontend node_modules"
|
2017-08-03 16:33:56 +00:00
|
|
|
|
|
|
|
publish:
|
|
|
|
curl -sSLo golang.sh https://raw.githubusercontent.com/Luzifer/github-publish/master/golang.sh
|
|
|
|
bash golang.sh
|
2018-05-05 16:09:37 +00:00
|
|
|
|
|
|
|
# -- Download / refresh external libraries --
|
|
|
|
|
|
|
|
clean_libs:
|
|
|
|
rm -rf frontend/css frontend/webfonts frontend/js
|
|
|
|
|
2020-08-10 15:45:26 +00:00
|
|
|
download_libs: clean_libs fontawesome #libs_js libs_css
|
2018-05-05 16:09:37 +00:00
|
|
|
|
|
|
|
fontawesome:
|
|
|
|
curl -sSfL https://github.com/FortAwesome/Font-Awesome/archive/$(VER_FONTAWESOME).tar.gz | \
|
2019-05-10 14:19:38 +00:00
|
|
|
tar -vC frontend -xz --strip-components=1 --wildcards --exclude='*/js-packages' '*/css' '*/webfonts'
|
2018-05-05 16:09:37 +00:00
|
|
|
|
|
|
|
libs_css:
|
|
|
|
mkdir -p frontend/css
|
2019-05-10 14:19:38 +00:00
|
|
|
curl -sSfLo frontend/css/bundle.css "https://cdn.jsdelivr.net/combine/npm/bootstrap@$(VER_BOOTSTRAP)/dist/css/bootstrap.min.css,npm/bootswatch@$(VER_BOOTSWATCH)/dist/flatly/bootstrap.min.css"
|
2018-05-05 16:09:37 +00:00
|
|
|
|
|
|
|
libs_js:
|
|
|
|
mkdir -p frontend/js
|
2019-05-10 21:12:00 +00:00
|
|
|
curl -sSfLo frontend/js/bundle.js "https://cdn.jsdelivr.net/combine/npm/jquery@$(VER_JQUERY),npm/popper.js@$(VER_POPPER),npm/bootstrap@$(VER_BOOTSTRAP)/dist/js/bootstrap.min.js,npm/gibberish-aes@$(VER_GIBBERISH_AES)/dist/gibberish-aes-$(VER_GIBBERISH_AES).min.js,npm/vue@$(VER_VUE),npm/vue-i18n@$(VER_VUE_I18N)/dist/vue-i18n.min.js"
|