-
Notifications
You must be signed in to change notification settings - Fork 12
/
Makefile
57 lines (38 loc) · 944 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
47
48
49
50
51
52
53
54
55
56
57
# Config
BIN = $(CURDIR)/node_modules/.bin
.PHONY: bootstrap unbootstrap clean watch build debug lint release
default: build
#-------------------------------------------------------
# Utils
bootstrap:
npm install
unbootstrap:
rm -Rf node_modules
clean: clearvendors
rm -rf build
rm -Rf node_modules
clearvendors: SHELL:=/bin/bash
clearvendors:
bash -c "rm -R ./vendors"
#-------------------------------------------------------
# Build
vendors: clearvendors
$(BIN)/gulp vendors
build: bootstrap vendors
$(BIN)/gulp webpack:debug
lint: build
$(BIN)/gulp lint
release: bootstrap vendors
$(BIN)/gulp webpack:release
watch: bootstrap vendors
$(BIN)/gulp watch
dev: bootstrap vendors
$(BIN)/gulp webpack:dev-server
#-------------------------------------------------------
# Dist
dist: release
scripts/dist.sh
predeploy: dist
scripts/site_builder.sh
deploy: predeploy
$(BIN)/coffee scripts/site_builder.coffee upload