mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Add various make targets for auditing the Python and JS modules. Update the install-node target so that it de-dupes JS modules.
Original patch by Aditya, with further work from Ashesh and I.
This commit is contained in:
committed by
Dave Page
parent
99a8b70e00
commit
8780462708
19
Makefile
19
Makefile
@@ -20,7 +20,12 @@ appbundle: docs
|
||||
./pkg/mac/build.sh
|
||||
|
||||
install-node:
|
||||
cd web && yarn install
|
||||
cd web && npm install
|
||||
cd web && npm audit fix
|
||||
rm -f web/yarn.lock
|
||||
cd web && yarn import
|
||||
cd web && yarn audit
|
||||
rm -f package-lock.json
|
||||
|
||||
bundle:
|
||||
cd web && yarn run bundle
|
||||
@@ -34,6 +39,18 @@ linter:
|
||||
check: install-node bundle linter check-pep8
|
||||
cd web && yarn run karma start --single-run && python regression/runtests.py
|
||||
|
||||
check-audit:
|
||||
cd web && yarn run audit
|
||||
|
||||
check-auditjs:
|
||||
cd web && yarn run auditjs
|
||||
|
||||
check-auditjs-html:
|
||||
cd web && yarn run auditjs-html
|
||||
|
||||
check-auditpy:
|
||||
cd web && yarn run auditpy
|
||||
|
||||
check-pep8:
|
||||
pycodestyle --config=.pycodestyle docs/
|
||||
pycodestyle --config=.pycodestyle pkg/
|
||||
|
||||
Reference in New Issue
Block a user