-
Notifications
You must be signed in to change notification settings - Fork 12
/
Makefile
59 lines (40 loc) · 967 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
58
59
# Config
BIN = $(CURDIR)/node_modules/.bin
.PHONY: bootstrap unbootstrap clean watch build debug lint release docs vendors
default: build
#-------------------------------------------------------
# Utils
bootstrap:
npm install
unbootstrap:
rm -Rf node_modules
clean:
rm -rf vendors
rm -rf dist
rm -Rf node_modules
clearvendors:
rm -rf 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
. ../Pipeline/env.sh; \
scripts/site_builder.sh
deploy: predeploy
. ../Pipeline/env.sh; \
$(BIN)/coffee scripts/site_builder.coffee upload