mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-05 10:53:28 -05:00
local dev upgrades
This commit is contained in:
11
Makefile
11
Makefile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user