grunt-phonegap icon indicating copy to clipboard operation
grunt-phonegap copied to clipboard

[PROPOSAL] `phonegap:refresh` a task that updates assets only

Open runspired opened this issue 10 years ago • 2 comments

For a faster live preview of changes to the code, it would be great if there were a task for updating the app's html/js/css/image assets only instead of needing to re-build the platform with all of the plugins each time.

phonegap:refresh would then refresh all of the necessary assets (using grunt:newer) for all platforms, while phonegap:refresh:ios would update the assets for the ios platform only.

I'd be willing to submit a pull request adding this task if desired.

runspired avatar Oct 21 '14 16:10 runspired

I implemented it as a stand alone plugin task for the time being. It needs a bit of work for android icon/splash support, and has only been setup to work for ios and android currently. It's basically a wrapper around newer:copy:_some_task_ where some_task is auto generated.

https://github.com/runspired/grunt-phonegap-refresh

runspired avatar Oct 21 '14 23:10 runspired

I'd +1 this idea. I forked the grunt-phonegap repo and added a refresh task as a proof of concept for this. It adds the grunt phonegap:refresh task. It's really just a copy of the build task minus the last 2 steps (plugins and compile.)

cburyta avatar Dec 04 '14 15:12 cburyta