From 77fdb514505eb184e26ae36b3445e0846e7bbc85 Mon Sep 17 00:00:00 2001 From: Joachim Bauch Date: Thu, 22 May 2014 18:30:52 +0200 Subject: [PATCH] Added target "jshint" to check JS syntax. --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 4cfa6dbb..70f43dd3 100644 --- a/Makefile +++ b/Makefile @@ -107,6 +107,9 @@ javascript: -o $(CURDIR)/build/build.js \ dir=$(OUTPUT_JS) $(RJSFLAGS) +jshint: + find static/ -wholename static/js/libs -prune -o -name "*.js" -exec jshint {} \; + release: GOPATH = "$(DIST):$(VENDOR):$(CURDIR)" release: LDFLAGS = -X main.version $(VERSION) -X main.defaultConfig $(CONFIG_PATH)/$(CONFIG_FILE) release: OUTPUT = $(DIST_BIN)