Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Experiment with platform specific live-reloading #21

Closed
diegonetto opened this issue Mar 22, 2014 · 2 comments
Closed

Experiment with platform specific live-reloading #21

diegonetto opened this issue Mar 22, 2014 · 2 comments

Comments

@diegonetto
Copy link
Owner

This poses some unique challenges but is theoretically possible.

We could add a grunt serve:<platform> task that builds the platform's Cordova assets but also spins up a connect server and injects the livereload snippet.

Some considerations will need to be made to the current workflow since we are using the www/ directory for built assets and then having the cordova:build task work its magic and publish to the correct platform/ directories.

For this to possibly work we would need a separate workflow that would put un-minified assets into the www/ directory, and re-run cordova:build as watched files changed.

There would have to be a new (dynamic) watch task looking at platform specific files.

@diegonetto diegonetto changed the title Consider adding support for platform specific live-reloading Experiment with adding support for platform specific live-reloading Mar 22, 2014
@diegonetto diegonetto changed the title Experiment with adding support for platform specific live-reloading Experiment with platform specific live-reloading Mar 22, 2014
@diegonetto
Copy link
Owner Author

Looks like a recent update to the ionic-cli added support for this - http://ionicframework.com/blog/live-reload-all-things-ionic-cli/

Instead of duplicating functionality (adding tasks that inject scripts which communicate with the livereload server), I propose exploring a build system refactor that would use the ionic-cli under the hood, so that users get the best of both worlds.

@diegonetto
Copy link
Owner Author

Opened #112

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant