-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·42 lines (32 loc) · 1.01 KB
/
setup.sh
File metadata and controls
executable file
·42 lines (32 loc) · 1.01 KB
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
#!/usr/bin/env bash
echo "Completing setup of Bricks based ionic app ..."
INSTALL_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
cd $INSTALL_DIR/..
echo "Updating index.html ..."
cp www/skeleton/index.html www/index.html
echo "Updating bower.json ..."
mv -f www/bower.json bower.json
echo "Updating dependencies for bower ..."
bower update
echo "Installing dependencies for gulp ..."
npm install gulp gulp-util gulp-uglify gulp-minify-css gulp-rename gulp-concat gulp-sass bower shelljs
echo "Adding iOS and Android platform ..."
ionic platform add ios
ionic platform add android
ionic browser add crosswalk
echo "Initializing git repository ..."
git init
cp www/skeleton/.gitignore .
echo "Cleaning up ..."
rm -f www/setup.sh
rm -rf www/skeleton
echo "Commiting initial state ..."
git add .
git commit -am "Initial commit"
if [ "$(uname)" == "Darwin" ]; then
echo "Starting iOS simulator with livereload ..."
ionic run ios --livereload
else
echo "Starting app in local browser ..."
ionic serve
fi