فهرست منبع

Add linting to makefile

Simon Detheridge 6 سال پیش
والد
کامیت
7870c8185e
2فایلهای تغییر یافته به همراه12 افزوده شده و 1 حذف شده
  1. 1 0
      services/filestore/.prettierignore
  2. 11 1
      services/filestore/Makefile

+ 1 - 0
services/filestore/.prettierignore

@@ -0,0 +1 @@
+node_modules

+ 11 - 1
services/filestore/Makefile

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