forked from pusher/pusher-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
78 lines (58 loc) · 2.39 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
SHELL := /bin/bash
.PHONY: build_all
build_all: web react-native node worker
.PHONY: json2
json2:
cp src/runtimes/web/dom/json2.js dist/web
node_modules/.bin/uglifyjs dist/web/json2.js -o dist/web/json2.min.js
.PHONY: web
web:
@echo "Browser Release:"
MINIMIZE=false node_modules/webpack/bin/webpack.js --config=webpack/config.web.js
@echo "Browser Release (with encryption)"
INCLUDE_TWEETNACL=true MINIMIZE=false node_modules/webpack/bin/webpack.js --config=webpack/config.web.js
@echo "Minified Browser Release:"
node_modules/webpack/bin/webpack.js --config=webpack/config.web.js
@echo "Minified Browser Release (with encryption)"
INCLUDE_TWEETNACL=true node_modules/webpack/bin/webpack.js --config=webpack/config.web.js
.PHONY: react-native
react-native:
@echo "React Native Release:"
node_modules/webpack/bin/webpack.js --config=webpack/config.react-native.js
.PHONY: node
node:
@echo "NodeJS Release":
MINIMIZE=false node_modules/webpack/bin/webpack.js --config=webpack/config.node.js
.PHONY: worker
worker:
@echo "Web Worker Release"
MINIMIZE=false node_modules/webpack/bin/webpack.js --config=webpack/config.worker.js
@echo "Web Worker Release (with encryption)"
INCLUDE_TWEETNACL=true MINIMIZE=false node_modules/webpack/bin/webpack.js --config=webpack/config.worker.js
@echo "Minified Web Worker Release"
node_modules/webpack/bin/webpack.js --config=webpack/config.worker.js
@echo "Minified Web Worker Release (with encryption)"
INCLUDE_TWEETNACL=true node_modules/webpack/bin/webpack.js --config=webpack/config.worker.js
.PHONY: web_unit
web_unit:
node_modules/karma/bin/karma start spec/config/karma/unit.js
.PHONY: web_integration
web_integration:
node_modules/karma/bin/karma start spec/config/karma/integration.js
.PHONY: worker_unit
worker_unit:
WORKER=true node_modules/karma/bin/karma start spec/config/karma/unit.js
.PHONY: worker_integration
worker_integration:
WORKER=true node_modules/karma/bin/karma start spec/config/karma/integration.js
.PHONY: node_unit
node_unit:
node_modules/webpack/bin/webpack.js --config=spec/config/jasmine/webpack.unit.js && \
node_modules/.bin/jasmine --config=spec/config/jasmine/unit.json
.PHONY: node_integration
node_integration:
node_modules/webpack/bin/webpack.js --config=spec/config/jasmine/webpack.integration.js && \
node_modules/.bin/jasmine --config=spec/config/jasmine/integration.json
.PHONY: serve
serve:
node webpack/dev.server.js