-
Notifications
You must be signed in to change notification settings - Fork 1.1k
feat: add migrate-to-spm cli command #7963
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added some comments.
Also:
-
ios-spm-template
already has the same files you created in theios-spm-migrate-template
, can't you useios-spm-template
files instead of a new ones? -
Do we need the
--unsafe
and--dry-run
options? for--unsafe
I assume people uses git or some other source control, so they could revert if they had some problem. And for--dry-run
we are documenting the changes the command does so people can know. -
We have a separate ticket for the messaging/handling of non SPM plugins, so you can leave those changes out of the migration command.
Another thought, since it doesn't do a full migration, maybe it should be renamed to And at the end it should show a link to the SPM docs, to the |
|
So the npm |
I don't understand what you mean in the comment, but can't you extract it to a temp folder and copy the needed files to the user project? |
Yeah, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are several comments that have not been addressed yet
I just pushed the removal of Cap-SPM as a separate zip file, should be ready now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes from https://github.com/ionic-team/capacitor/pull/7982/files need to be applied on the migration
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The debug.xcconfig
is not being added to the project (https://github.com/ionic-team/capacitor/blob/main/ios-spm-template/debug.xcconfig) and I think it should, or at least should be copied to the project folder and tell the users to manually add it to the Xcode project or explain how to create a new one, both in here and in the docs PR. But adding it or creating it and also adding the CapApp-SPM
dependency seem like too much manual changes for a "migrate" command, so would be cool if the command could add it.
The Package.swift
detection is not working properly, I get
Found 6 Plugins with Package.swift files:
@capacitor-community/[email protected]
and then
[warn] CapacitorCommunityTapJacking does not have a Package.swift
The plugin doesn't have a Package.swift, so the warning is correct, but shouldn't be listed as having it.
Anyway, I told you to remove that part from this PR since we have another ticket for that task and there are some other things that should be changed related to it, so better focus just on the migration task.
Also, can you remove the comments about you hating things?
Yeah, that's a new one on me - I'll take a look at why that's failing. The rest are no problem.
Oh yeah, I didn't even mean to check that in. Moment of frustration with TS and all that. Since I'm in here, I'll also change the name - it's gotten far enough away that I think you're right and I'm gonna call it |
No description provided.