local dev upgrades

This commit is contained in:
Jim Moffet
2022-06-13 14:26:46 -07:00
parent 543be77776
commit 2b727e13b4
10 changed files with 179 additions and 17 deletions

View File

@@ -26,15 +26,20 @@ VIRTUALENV_ROOT := $(shell [ -z $$VIRTUAL_ENV ] && echo $$(pwd)/venv || echo $$V
bootstrap: generate-version-file ## Set up everything to run the app
pip3 install -r requirements_for_test.txt
source $(HOME)/.nvm/nvm.sh && nvm install && npm ci --no-audit
. environment.sh; source $(HOME)/.nvm/nvm.sh && npm run build
source $(HOME)/.nvm/nvm.sh && npm run build
.PHONY: bootstrap-with-docker
bootstrap-with-docker: generate-version-file ## Set up everything to run the app
# npm ci --no-audit
npm run build
.PHONY: watch-frontend
watch-frontend: ## Build frontend and watch for changes
. environment.sh; npm run watch
npm run watch
.PHONY: run-flask
run-flask: ## Run flask
. environment.sh && flask run -p 6012
flask run -p 6012
.PHONY: npm-audit
npm-audit: ## Check for vulnerabilities in NPM packages