Files
pa11y-dashboard/Makefile
2013-10-04 11:37:40 +01:00

28 lines
579 B
Makefile

# Group targets
all: deps lint
# Install dependencies
deps:
@echo "Installing dependencies..."
@npm install
@./node_modules/.bin/bower 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..."
@NODE_ENV=production node .
# Start the application in development mode
start-dev:
@echo "Starting application (development mode)..."
@NODE_ENV=development ./node_modules/.bin/supervisor -q .