-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
54 lines (40 loc) · 1.4 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
ONLINE_APP = build/online-app
ONLINE_DIST = $(ONLINE_APP)/mobile-vmp-online-dist
init:
cp -r phonegap build
-cd build/phonegap && phonegap platform add ios
clean:
rm -rf build
build:
cd build/phonegap && phonegap build
build-all: init
gulp browserify-external-libs build
make copy-app
cd build/phonegap && phonegap build
emulate: copy-app
cd build/phonegap && phonegap build && phonegap emulate ios
device: copy-app
#-pkill lldb
cd build/phonegap && phonegap run ios --device # --release
copy-app:
cp -r build/online-app/* build/phonegap/www/
install-plugins:
cd build/phonegap && node ./scripts/install_plugins.js
rm-plugins:
cd build/phonegap && node ./scripts/rm_plugins.js
release-phonegap:
NODE_ENV=production gulp browserify-external-libs build
make copy-app
uglifyjs $(ONLINE_APP)/external-libs-bundle.js -cm > build/phonegap/www/external-libs-bundle.js
uglifyjs $(ONLINE_APP)/app.js -c drop_console=true -m > build/phonegap/www/app.js
cssmin $(ONLINE_APP)/app.css > build/phonegap/www/app.css
cd build/phonegap && phonegap build ios --device
release-web:
NODE_ENV=production gulp browserify-external-libs build
NODE_ENV=production gulp dist
mv $(ONLINE_DIST)/index.html $(ONLINE_DIST)/index-mobile.html
pack:
cd $(ONLINE_APP) && zip -r mobile-vmp-online-dist.zip mobile-vmp-online-dist
deploy:
scp build/online-app/mobile-vmp-online-dist.zip vmponline:/var/vmp
.PHONY: phonegap build