Add some useful make targets for bundling and linting.

This commit is contained in:
Dave Page 2017-07-06 13:02:43 +01:00
parent 9de6c08d28
commit 592c70e655

View File

@ -25,17 +25,23 @@ appbundle-webkit: docs
install-node:
cd web && yarn install
check: install-node
cd web && yarn run bundle && yarn run linter && yarn run karma start -- --single-run && python regression/runtests.py
bundle:
cd web && yarn run bundle
check-python: install-node
cd web && yarn run bundle && python regression/runtests.py --exclude feature_tests
linter:
cd web && yarn run linter
check-feature: install-node
cd web && yarn run bundle && python regression/runtests.py --pkg feature_tests
check: install-node bundle linter
cd web && yarn run karma start -- --single-run && python regression/runtests.py
check-js: install-node
cd web && yarn run linter && yarn run karma start -- --single-run
check-python: install-node bundle
cd web && python regression/runtests.py --exclude feature_tests
check-feature: install-node bundle
cd web && python regression/runtests.py --pkg feature_tests
check-js: install-node linter
cd web && yarn run karma start -- --single-run
# Include all clean sub-targets in clean
clean: clean-appbundle clean-dist clean-docs clean-pip clean-src