Adding check target to makefile to run eslint. Adding eslint to package.json

Этот коммит содержится в:
Christopher Speller
2015-07-28 10:24:24 -04:00
родитель c1637ce113
Коммит 18aaa9d175
2 изменённых файлов: 8 добавлений и 1 удалений

Просмотреть файл

@@ -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,10 @@ install:
@cd web/react/ && npm install
check: install
@echo Running ESLint...
@$(ESLINT) web/react/components/*
test: install
@mkdir -p logs
@$(GO) test $(GOFLAGS) -run=$(TESTS) -test.v -test.timeout=180s ./api || exit 1