-
Notifications
You must be signed in to change notification settings - Fork 28
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
added cordova8 proposal #72
base: master
Are you sure you want to change the base?
Conversation
To the extent that we're using npm now for managing platforms and plugins, do we actually need a |
Removing platforms is a much bigger refactor I think. All the platform create scripts need to output the templates, cordova.js, other build artifacts to some location. We do directly call the create scripts from Just realized I should probably also add moving plugin/platform dependencies out of |
Yeah, I'm not currently suggesting getting rid of the platforms folder, just wondering if it is created by |
I am in favour of all of these points. But oof, that seems like a whole lotta work. All for the better, I think! @dpogue on the topic of @stevengill brought up a good point in that discussion that Finally, I'd like to point to my comment in that proposal to highlight that we should strive to keep the design of cordova-lib consistent. In order keep the To your question about whether we can get away with just running I would suggest any further discussion on the implementation details / specifics of |
* Reduce maintenance burden of cordova tooling | ||
* Refactor cordova-lib | ||
* Improve unit test coverage | ||
|
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.
Nice work on the proposal! I really like the idea of adding more unit tests! 👍
|
||
* Remove deprecated platforms (non platform api compatibile platforms). | ||
This is just a continuation of what we started in `cordova@7` | ||
* **Do Now** deprecate `webos` (in cordova@7) |
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.
deprecation notice for webos
https://github.com/apache/cordova-lib/pull/585/files
|
||
* Remove `cordova platform save` command | ||
This command isn't necessary anymore since we save by default since `cordova@7`. It was previously used to save added plugins and platforms to `config.xml`. | ||
* **Do Now** add deprecation notice for next `cordova@7` release. |
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.
deprecation notice for platform save
https://github.com/apache/cordova-lib/pull/585/files
* **Do Now** add deprecation notice for next `cordova@7` release. | ||
* remove use of `cordovaProject/platforms/platforms.json` | ||
* axe `cordova-lib/src/cordova.platform_metadata.js` | ||
* issue: https://issues.apache.org/jira/browse/CB-13057 |
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.
started the work for removing platform save 13057
apache/cordova-lib#586
This is just a continuation of what we started in `cordova@7` | ||
* **Do Now** deprecate `webos` (in cordova@7) | ||
* Remove `webos`, `bb10`, `ubuntu` + all associated files | ||
* issue: https://issues.apache.org/jira/browse/CB-13056 |
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.
started 13056 --> apache/cordova-lib#588
* https://issues.apache.org/jira/browse/CB-13059 | ||
|
||
* Remove `cordova platform save` command | ||
This command isn't necessary anymore since we save by default since `cordova@7`. It was previously used to save added plugins and platforms to `config.xml`. |
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.
Would users upgrading from a project using an older cordova version still need this, to save their existing platforms and plugins?
If we remove this, they will have to manually add them in config.xml, no?
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.
Looking at the analytics (assuming I'm doing this correctly), the command has been used 64 times out of the past 1.9 Million requests. Less that 0.1 percent. Pretty clear sign that it is not being used much.
I do see the usefulness of the command for users pre 7 who didn't used to use --save
(which has been around much longer). I just don't think people in that group are even aware of the platform save command.
I think by this point asking users to modify config.xml or readd plugin + platforms is fair. They will probably have to readd/update older platforms or plugins anyways.
Removing it will clean up cordova-lib a bit and allow us to get rid of these extra generated config files that go into peoples cordova projects
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.
Thanks for digging into the analytics @stevengill. It is clearly not a use case we need to worry about much, which is good, simplifying the path forward!
Should we merge, close, or do something else with this one? |
Some ideas we have for the next major version of cordova. Thoughts?
Let me know what points need discussing in more detail.