-
Notifications
You must be signed in to change notification settings - Fork 0
Baby Bash
sam1rm edited this page Sep 25, 2015
·
4 revisions
Make sure to pull from nick-dev-mobile
Gulp Replace Task
npm install gulp-replace-task --save-dev
Ensure package.json references plugins: '"gulp-replace-task": "^0.11.0"
Yargs is also required but should already be installed. Also ensure it's properly referenced in package.json.
runlocal() {
gulp replace --env=localdev --page=$1 --ip="$(ifconfig en0 | grep inet | grep -v inet6 | awk '{print $2}')"
ionic run ios -clr
}
Make sure to refresh your bash profile in terminal: source ~/.bashprofile
In terminal type runlocal <startpage>
where start page is the name of the view state to be loaded first.