From a65e485aed5dec8a74b17162bd4c5064cd2270a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Mon, 14 Sep 2020 01:08:58 +0200 Subject: [PATCH] lint as a spearate makefile target, add backend_lint --- Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 7596c38..c3ec055 100644 --- a/Makefile +++ b/Makefile @@ -5,12 +5,16 @@ all: backend frontend cp target/release/upend dist/upend cp -r ui/dist dist/webui +lint: backend_lint frontend_lint + backend: cargo build --release -frontend: frontend_lint - cd ui && \ - npm run build +backend_lint: + cargo clippy + +frontend: npm_install + cd ui && npm run build frontend_lint: npm_install cd ui && npm run lint