summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2015-07-29 08:34:15 -0400
committerJoram Wilander <jwawilander@gmail.com>2015-07-29 08:34:15 -0400
commit54265271fa16c624570ff89a26ae8596cf0fafc7 (patch)
treecff481ab565b20289169c0effa49f657063f7af8 /Makefile
parenta9e9d10e41e6c3d1609095a6a370a4632d22e19c (diff)
parent9e64500e316199287a305a93d7ac6d12d78ea435 (diff)
downloadchat-54265271fa16c624570ff89a26ae8596cf0fafc7.tar.gz
chat-54265271fa16c624570ff89a26ae8596cf0fafc7.tar.bz2
chat-54265271fa16c624570ff89a26ae8596cf0fafc7.zip
Merge pull request #268 from mattermost/mm-1358
MM-1358, MM-1203 Adding preview of style guide and ESLint Javascript + JSX static analyzer
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 222d4ffe4..14a6ffc7d 100644
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,7 @@ GOFLAGS ?= $(GOFLAGS:)
BUILD_NUMBER ?= $(BUILD_NUMBER:)
GO=$(GOPATH)/bin/godep go
+ESLINT=web/react/node_modules/eslint/bin/eslint.js
ifeq ($(BUILD_NUMBER),)
BUILD_NUMBER := dev
@@ -62,6 +63,14 @@ install:
@cd web/react/ && npm install
+check: install
+ @echo Running ESLint...
+ @$(ESLINT) web/react/components/*
+ @$(ESLINT) web/react/dispatcher/*
+ @$(ESLINT) web/react/pages/*
+ @$(ESLINT) web/react/stores/*
+ @$(ESLINT) web/react/utils/*
+
test: install
@mkdir -p logs
@$(GO) test $(GOFLAGS) -run=$(TESTS) -test.v -test.timeout=180s ./api || exit 1