-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile
40 lines (29 loc) · 791 Bytes
/
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
DOCKER-IMAGE="repejota/nats-mon"
VERSION=`cat VERSION`
all:
./node_modules/.bin/gulp default
clean:
./node_modules/.bin/gulp clean
dist-clean:
./node_modules/.bin/gulp dist-clean
lint:
./node_modules/.bin/gulp jshint
./node_modules/.bin/gulp csslint
test:
./node_modules/.bin/mocha test/unit
uitest:
./node_modules/.bin/casperjs test test/ui/suite.js
cover:
./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha test/unit -- -R spec
./node_modules/.bin/gulp coveralls
docker:
docker build -t $(DOCKER-IMAGE) .
docker tag $(DOCKER-IMAGE) $(DOCKER-IMAGE):$(VERSION)
docker push $(DOCKER-IMAGE)
docker rmi $(DOCKER-IMAGE)
docker rmi $(DOCKER-IMAGE):$(VERSION)
serve:
npm start
serve-dev:
npm run-script start-dev
.PHONY: all clean dist-clean lint uitest test