Add linting to makefile

This commit is contained in:
Simon Detheridge 2019-12-16 11:58:22 +00:00
parent 230baef8fa
commit 7870c8185e
2 changed files with 12 additions and 1 deletions

View file

@ -0,0 +1 @@
node_modules

View file

@ -21,7 +21,17 @@ clean:
rm -rf test/unit/js
rm -rf test/acceptance/js
test: test_unit test_acceptance
format:
$(DOCKER_COMPOSE) run --rm test_unit npm run format
format_fix:
$(DOCKER_COMPOSE) run --rm test_unit npm run format:fix
lint:
$(DOCKER_COMPOSE) run --rm test_unit npm run lint
test: format lint test_unit test_acceptance
test_unit:
@[ ! -d test/unit ] && echo "filestore has no unit tests" || $(DOCKER_COMPOSE) run --rm test_unit