Skip to content

Commit 7ec39e1

Browse files
committed
Merge pull request #14 from satsalou/issue-13
chore(*) Issue #13: Change installation process
2 parents 284f36b + 74bb86a commit 7ec39e1

File tree

4 files changed

+91
-10
lines changed

4 files changed

+91
-10
lines changed

README.md

+5-8
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,12 @@ A super modular Ionic starter application.
1010

1111
Run `npm install` to install all needed dependencies.
1212

13-
**Note: Windows users** should remove the following line under `scripts` in package.json file:
13+
### Install Plugins and Javascript dependencies
14+
#### Linux/MacOX
15+
Run `./install.sh` to install all needed plugins and dependencies
1416

15-
``"postinstall": "./install.sh"``
16-
17-
and, then, run `npm install`.
18-
19-
### Install Javascript dependencies
20-
21-
Run `bower install` to install all needed dependencies
17+
#### Windows Users
18+
Similarly, Windows users should run `./install.bat`.
2219

2320
### Run the app
2421
Use `grunt serve -l` to run the app in browser and watch for changes in code

install.bat

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
::
2+
:: Create output (Cordova) directory
3+
::
4+
mkdir www
5+
6+
::
7+
:: Install client libraries
8+
::
9+
bower install
10+
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+
19+
::
20+
:: Install cordova plugins
21+
:: There quickest option is to ask from Ionic
22+
:: to restore the state of the app.
23+
:: https://github.com/driftyco/ionic-cli::ionic-state-restore
24+
:: If this process fails comment this line and uncomment the
25+
:: "cordova plugin add ..." lines that follow.
26+
::
27+
ionic state restore
28+
::
29+
:: cordova plugin add cordova-plugin-device
30+
:: cordova plugin add cordova-plugin-console
31+
:: cordova plugin add com.ionic.keyboard
32+
:: cordova plugin add cordova-plugin-inappbrowser
33+
:: cordova plugin add cordova-plugin-geolocation
34+
:: cordova plugin add https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin.git
35+
:: cordova plugin add de.appplant.cordova.plugin.email-composer
36+
:: cordova plugin add cordova-plugin-network-information
37+
:: cordova plugin add cordova-plugin-whitelist
38+
:: cordova plugin add cordova-plugin-transport-security
39+
40+
::
41+
:: Build the project and generate the cordova directory (www)
42+
::
43+
grunt build

install.sh

+40-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,43 @@
1+
#
2+
# Create output (Cordova) directory
3+
#
14
mkdir www
5+
6+
#
7+
# Install client libraries
8+
#
29
bower install
10+
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+
19+
#
20+
# Install cordova plugins
21+
# There quickest option is to ask from Ionic
22+
# to restore the state of the app.
23+
# https://github.com/driftyco/ionic-cli#ionic-state-restore
24+
# If this process fails comment this line and uncomment the
25+
# "cordova plugin add ..." lines that follow.
26+
#
327
ionic state restore
4-
grunt build
28+
#
29+
# cordova plugin add cordova-plugin-device
30+
# cordova plugin add cordova-plugin-console
31+
# cordova plugin add com.ionic.keyboard
32+
# cordova plugin add cordova-plugin-inappbrowser
33+
# cordova plugin add cordova-plugin-geolocation
34+
# cordova plugin add https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin.git
35+
# cordova plugin add de.appplant.cordova.plugin.email-composer
36+
# cordova plugin add cordova-plugin-network-information
37+
# cordova plugin add cordova-plugin-whitelist
38+
# cordova plugin add cordova-plugin-transport-security
39+
40+
#
41+
# Build the project and generate the cordova directory (www)
42+
#
43+
grunt build

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,11 @@
5050
},
5151
"scripts": {
5252
"test": "grunt test",
53+
"//": "Post installation.",
5354
"//": "Uncomment the next line to enable post install script.",
5455
"//": "There is always the option to run it manually.",
55-
"//": { "postinstall": "./install.sh" }
56+
"//": { "postinstall": "./install.sh" },
57+
"//": { "postinstall": "./install.bat" }
5658
},
5759
"cordovaPlatforms": [
5860
"ios"

0 commit comments

Comments
 (0)