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:
Aditya Toshniwal
2019-08-02 14:05:09 +01:00
committed by Dave Page
parent 99a8b70e00
commit 8780462708
5 changed files with 2563 additions and 1520 deletions

View File

@@ -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/