- Clone the repo
git clone git@github.com:silvercar/ionic-datepicker.git
at the same level asasf-hybrid/
andsc-web-core/
. - Do cd to
ionic-datepicker/
. - Install required node modules via
npm install
. - Install required bower components via
bower install
. - Do
git pull
insc-web-core
, to get modifiedbower.json
. - Do
git pull
inasf-hybrid
, to get modifiedapp/bower.json
.
--
Some of this sucks because of the extra hoops you have to jump through. :(
- Modify files in
ionic-datepicker/src/
with new code. - Run
gulp build
fromionic-datepicker/
. That crunches allsrc/
changes intodist/ionic-datepicker.bundle.min.js
. - Commit the modified source to master, along with
dist/ionic-datepicker.bundle.min.js
. - Run
git push origin master
. - Do cd to
asf-hybrid/app
and runbower update
. This should do the browser live reload with your changes.
If you want to eliminate a step, in the asf-hybrid/app/bower.json file
, change:
"ionic-datepicker": "git@github.com:silvercar/ionic-datepicker.git#master"
to
"ionic-datepicker": "file:///Users/demos/Documents/Projects/ionic-datepicker/.git#master"
except change that file path to wherever your ionic-datepicker/
is on your Mac. Then, you can do Workflow 1 but skip step 4 because it's looking in your local repo, rather than the one on github, so no push is necessary. Probably don't commit that change to bower.json
if you do it.
Should be that just modifying files in ionic-datepicker/
rebuilds everything for you, but I'm still working on that as a side project so it'll probably never happen.