Skip to content
sam1rm edited this page Sep 25, 2015 · 4 revisions

Make sure to pull from nick-dev-mobile

Required plugins:

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.

Setting up bash alias:

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

Running:

In terminal type runlocal <startpage> where start page is the name of the view state to be loaded first.

Clone this wiki locally