diff options
author | Joram Wilander <jwawilander@gmail.com> | 2015-07-29 08:34:15 -0400 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2015-07-29 08:34:15 -0400 |
commit | 54265271fa16c624570ff89a26ae8596cf0fafc7 (patch) | |
tree | cff481ab565b20289169c0effa49f657063f7af8 /Makefile | |
parent | a9e9d10e41e6c3d1609095a6a370a4632d22e19c (diff) | |
parent | 9e64500e316199287a305a93d7ac6d12d78ea435 (diff) | |
download | chat-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-- | Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 |