-
Notifications
You must be signed in to change notification settings - Fork 3
/
clean-build.sh
executable file
·62 lines (51 loc) · 2.04 KB
/
clean-build.sh
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
#!/bin/bash
set -e
echo ========== Cleaning Bower ==========
rm -rf vendor
bower cache clean
rc=$?
if [ $rc != 0 ] ; then
echo Failed to clean the bower cache
exit $rc
fi
echo ========== Installing Bower Dependencies ==========
bower install
rc=$?
if [ $rc != 0 ] ; then
echo Failed to install bower dependencies
exit $rc
fi
echo ========== Cleaning Node Modules ==========
rm -rf node_modules
echo ========== Installing Node Modules ==========
npm install
echo ========== Cleaning Platforms ==========
rm -rf platforms
echo ========== Cleaning Plugins ==========
rm -rf plugins
echo ========== Adding Platforms ==========
ionic platform add android
ionic platform add ios
echo ========== Adding Plugins ==========
ionic plugin add ionic-plugin-keyboard
ionic plugin add cordova-plugin-whitelist
ionic plugin add cordova-plugin-device
ionic plugin add cordova-plugin-console
ionic plugin add cordova-plugin-network-information
ionic plugin add cordova-plugin-camera
ionic plugin add cordova-plugin-file
ionic plugin add cordova-plugin-file-transfer
ionic plugin add https://github.com/wildabeast/BarcodeScanner.git
ionic plugin add cordova-plugin-dialogs
ionic plugin add https://github.com/EddyVerbruggen/cordova-plugin-actionsheet.git
ionic plugin add https://github.com/EddyVerbruggen/Toast-PhoneGap-Plugin.git
ionic plugin add cordova-sqlite-storage@1.2.0
ionic plugin add https://github.com/an-rahulpandey/cordova-plugin-dbcopy.git
ionic plugin add https://github.com/pbernasconi/cordova-progressIndicator.git
ionic plugin add cordova-plugin-network-information
ionic plugin add cordova-plugin-geolocation
echo ========== Adding custom changes from merge_custom ==========
### copy any files in merge_custom/platforms to platforms essentially replacing any existing files in platforms
### and adding any files that dont exist. cordova/ionic have 'merges' but that only does it for www and we want to
### be able to change any file. for example, we need to build sqlite with READ_BLOB_AS_BASE64 set
rsync --recursive merge_custom/platforms/ platforms/