-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (18 loc) · 703 Bytes
/
Makefile
File metadata and controls
25 lines (18 loc) · 703 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
SHELL=/bin/bash
.PHONY: watch lint clean install
APP_NAME?=$(shell basename `pwd`)
watch:
DEBUG=true ./node_modules/.bin/supervisor --watch 'src/,./' --ignore "./test" -e "litcoffee,coffee,js" --exec make run-server
lint:
find ./src -name '*.coffee' | xargs ./node_modules/.bin/coffeelint -f ./etc/coffeelint.conf
find ./src -name '*.js' | xargs ./node_modules/.bin/jshint
./node_modules/.bin/jshint server.js
install: node_modules/
node_modules/:
npm install .
build_output/: node_modules/
mkdir -p build_output
run-server: build_output/
exec bash -c "export APP_NAME=${APP_NAME}; test -r ~/.${APP_NAME}.env && . ~/.${APP_NAME}.env ; exec node server.js"
clean:
rm -rf ./node_modules/