web: exploring other dev environment options.

This commit is contained in:
2019-04-12 05:56:58 -05:00
parent 80c33c85c3
commit 125ffd1017
4 changed files with 48 additions and 4 deletions

View File

@ -1,6 +1,24 @@
API_HOST='localhost'
API_LOG_LEVEL='WARN'
LOG_LEVEL='TRACE'
build-dev:
npm run build-dev
build:
npm run build
serve:
local-ssl-proxy --source=8443 --target=8080 &
VUE_APP_LOG_LEVEL=TRACE \
VUE_APP_API_LOG_LEVEL=WARN \
VUE_APP_PM_API_BASE=https://localhost:8443/api \
VUE_APP_PM_API_BASE=http://${API_HOST}:8080/api \
VUE_APP_API_LOG_LEVEL=${API_LOG_LEVEL} \
VUE_APP_LOG_LEVEL=${LOG_LEVEL} \
npm run serve
serve-dev: build-dev
(cd dist && npx live-server . --port=8080 --entry-file=index.html --proxy=/api:http://localhost:8081/api --no-browser)
serve-ssl: build-dev
(cd dist && \
(local-ssl-proxy --source=8443 --target=8080 & \
echo `pwd` && \
npx live-server . --port=8080 --entry-file=index.html --proxy=/api:http://localhost:8081/api --no-browser))