Skip to content

Commit 436462d

Browse files
committed
chore(install) Issue #26: Post Installation script - Platform should be added after the installation of the plugins
1 parent 0208d13 commit 436462d

File tree

3 files changed

+19
-21
lines changed

3 files changed

+19
-21
lines changed

install.bat

+9-9
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,9 @@ mkdir www
88
::
99
bower install
1010

11-
::
12-
:: Add target platform
13-
::
14-
:: Comment out the platform(s) your system supports
15-
::
16-
grunt platform:add:ios
17-
:: grunt platform:add:android
18-
1911
::
2012
:: Install cordova plugins
21-
:: There quickest option is to ask from Ionic
13+
:: The quickest option is to ask from Ionic
2214
:: to restore the state of the app.
2315
:: https://github.com/driftyco/ionic-cli::ionic-state-restore
2416
:: If this process fails comment this line and uncomment the
@@ -37,6 +29,14 @@ ionic state restore
3729
:: cordova plugin add cordova-plugin-whitelist
3830
:: cordova plugin add cordova-plugin-transport-security
3931

32+
::
33+
:: Add target platform
34+
::
35+
:: Comment out the platform(s) your system supports
36+
::
37+
grunt platform:add:ios
38+
:: grunt platform:add:android
39+
4040
::
4141
:: Build the project and generate the cordova directory (www)
4242
::

install.sh

+9-9
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,9 @@ mkdir www
88
#
99
bower install
1010

11-
#
12-
# Add target platform
13-
#
14-
# Comment out the platform(s) your system supports
15-
#
16-
grunt platform:add:ios
17-
# grunt platform:add:android
18-
1911
#
2012
# Install cordova plugins
21-
# There quickest option is to ask from Ionic
13+
# The quickest option is to ask from Ionic
2214
# to restore the state of the app.
2315
# https://github.com/driftyco/ionic-cli#ionic-state-restore
2416
# If this process fails comment this line and uncomment the
@@ -37,6 +29,14 @@ ionic state restore
3729
# cordova plugin add cordova-plugin-whitelist
3830
# cordova plugin add cordova-plugin-transport-security
3931

32+
#
33+
# Add target platform
34+
#
35+
# Comment out the platform(s) your system supports
36+
#
37+
grunt platform:add:ios
38+
# grunt platform:add:android
39+
4040
#
4141
# Build the project and generate the cordova directory (www)
4242
#

package.json

+1-3
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,7 @@
5656
"//": { "postinstall": "./install.sh" },
5757
"//": { "postinstall": "./install.bat" }
5858
},
59-
"cordovaPlatforms": [
60-
"ios"
61-
],
59+
"cordovaPlatforms": [],
6260
"cordovaPlugins": [
6361
"cordova-plugin-device",
6462
"cordova-plugin-console",

0 commit comments

Comments
 (0)