Closed rolandjitsu closed 7 years ago
@dwieeb any chance we can get this merged soon? I have an essential production app depending on this hook.
@rolandjitsu Yes, it looks good. I will merge it in and it will be available on Package servers momentarily. Thanks!
@dwieeb great, thanks.
@dwieeb I do have a question though. Does the ionic package command upload all the contents of the project to Ionic cloud? Or does it only upload the contents of www
, resources
, config.xml
and package.json
? Because if it does not, this hook would not work because the key files will not be uploaded since they live at the root.
And from the looks of it, ionic-app-lib at package.js#L225, only seems to upload the files that I have mentioned above.
So I wonder how should this be handled?
www
, and change this hook to look for them in that place as well. But that would mean you'd have to checkin www
;I really don't know what is the best way to tackle this.
Actually, adding the key files to www
would work without having to add them to source control. Because the package command does require to build the app before, and building the app with @ionic/app-scripts allows you to specify a custom copy config file which we could use to copy the key files from root to www
whenever the build is run.
What do you think about this?
@rolandjitsu Looks like you found out which files it sends. Your solution is great for today, but in general we're looking at a better way to manage all of this. 👍 Thanks!
@dwieeb I agree, this solution it's not quite what I'd imagine either. Hopefully, the Ionic team will keep this scenario in mind and provide a clean solution.
This hook will make sure the required config files are copied to the appropriate destinations when building in the cloud.