This repository was archived by the owner on Jul 31, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
91 lines (61 loc) · 1.86 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
TYPE ?= prod
BUILDFLAGS = -- --$(TYPE)
all: release
#-------------------------------------------------------------
clean:
@-rm -rf dist
#-------------------------------------------------------------
.PHONY: build test e2e
build: basic-example material-example nativescript
test: test-core test-basic test-material
e2e: e2e-basic-example e2e-material-example
#-------------------------------------------------------------
.PHONY: core test-core
core:
npm run build:core $(BUILDFLAGS)
test-core:
npm run coverage:core
#-------------------------------------------------------------
.PHONY: basic test-basic
basic: core
npm run build:basic $(BUILDFLAGS)
test-basic:
npm run coverage:basic
#-------------------------------------------------------------
.PHONY: material test-material
material: core
npm run build:material $(BUILDFLAGS)
test-material:
npm run coverage:material
#-------------------------------------------------------------
.PHONY: nativescript
nativescript:
npm run build:nativescript $(BUILDFLAGS)
#-------------------------------------------------------------
.PHONY: basic-example e2e-basic-example
basic-example: basic
npm run build:basic-example $(BUILDFLAGS)
e2e-basic-example:
npm run e2e:basic-example
#-------------------------------------------------------------
.PHONY: material-example e2e-material-example
material-example: material
npm run build:material-example $(BUILDFLAGS)
e2e-material-example:
npm run e2e:material-example
#-------------------------------------------------------------
# release build
.PHONY: release
lint:
@npm run lint:core
@npm run lint:basic
@npm run lint:material
@npm run lint:basic-example
@npm run lint:material-example
coverage:
@npm run coverage:core
@npm run coverage:basic
@npm run coverage:material
release: clean lint build coverage
@./build/publish-prepare
@echo RELEASE BUILD SUCCEEDED