Lint JavaScript

This commit is contained in:
Rowan Manning
2013-09-16 13:28:51 +01:00
parent 3836e9079b
commit b7cb3ab48a
6 changed files with 78 additions and 4 deletions

View File

@@ -1,12 +1,20 @@
# Group targets
all: deps
all: deps lint
# Install dependencies
deps:
@echo "Installing dependencies..."
@npm install
# Lint JavaScript
lint:
@echo "Linting JavaScript..."
@./node_modules/.bin/jshint \
--config ./test/config/jshint.json \
--exclude ./node_modules \
*.js **/*.js
# Start the application
start:
@echo "Starting application..."