-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
46 lines (31 loc) · 854 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
41
42
43
44
45
46
CSS = $(shell find lib -name '*.css')
HTML = $(shell find lib -name '*.html')
JS = $(shell find lib -name '*.js')
JSON = $(shell find lib -name '*.json')
PORT = 3000
build: components $(CSS) $(HTML) $(JS) $(JSON)
@$(MAKE) lint
@./node_modules/.bin/component build --dev --verbose
beautify:
@./node_modules/.bin/js-beautify --replace $(JS)
clean:
@rm -rf build
@rm -rf components
components: component.json $(JSON)
@./node_modules/.bin/component install --dev --verbose
help:
@cat Makefile
install: node_modules components
node_modules: package.json
@npm install
lint:
@./node_modules/.bin/jshint $(JS)
release: beautify lint test
@./node_modules/.bin/component build --verbose --use
serve:
@./node_modules/.bin/serve --port $(PORT)
test:
@./node_modules/.bin/mocha
watch:
@watch $(MAKE) build
.PHONY: beautify lint test watch