-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
56 lines (45 loc) · 1.1 KB
/
Makefile
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
SHELL := /bin/bash
COFFEE = node_modules/.bin/coffee
COFFEELINT = node_modules/.bin/coffeelint
MOCHA = node_modules/.bin/mocha --compilers coffee:coffee-script --require "coffee-script/register"
REPORTER = spec
lint:
@[ ! -f coffeelint.json ] && $(COFFEELINT) --makeconfig > coffeelint.json || true
$(COFFEELINT) --file ./coffeelint.json src
build:
make lint || true
$(COFFEE) $(CSOPTS) --map --compile --output lib src
start: build
DEBUG=Huemidoro:* node ./bin/huemidoro.js start
register: build
DEBUG=Huemidoro:* node ./bin/huemidoro.js register
test: build
DEBUG=Huemidoro:* $(MOCHA) --reporter $(REPORTER) test/ --grep "$(GREP)"
compile:
@echo "Compiling files"
time make build
watch:
watch -n 2 make -s compile
release-major: build test
npm version major -m "Release %s"
git push
npm publish
release-minor: build test
npm version minor -m "Release %s"
git push
npm publish
release-patch: build test
npm version patch -m "Release %s"
git push
npm publish
.PHONY: \
test \
lint \
build \
start \
register \
release-major \
release-minor \
release-patch \
compile \
watch