[
https://issues.apache.org/jira/browse/CB-12242?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16527501#comment-16527501
]
ASF GitHub Bot commented on CB-12242:
-------------------------------------
raphinesse commented on issue #292: CB-12242 : Use yarn instead of npm
URL: https://github.com/apache/cordova-cli/pull/292#issuecomment-401331607
@qkdreyer I can understand your desire to use your package manager of choice
with cordova. But with how Cordova currently uses npm, adding support for
additional package managers is just not feasible.
I just recently completely refactored `cordova-fetch`, the main component to
use npm in Cordova. This resolved a *massive* amount of bugs and performance
problems. Unfortunately, the new implementation had to be even more tightly
coupled to npm to achieve this. However, the performance problems you mentioned
in the original issue might be resolved already in `cordova@nightly` because of
this. Please give it a try.
My long term goal is to get to a point where Cordova does not have to do any
package management at all. But that's still a long way to go, *if* we will ever
get there. Until then, I would like to avoid any *additional* complexity
introduced to the whole package management process.
I'll play the bad guy here and close this and the other related PRs. I'm
under the impression that this reflects the general stance among the Cordova
tooling team. Please note that my decision is not authoritative in any respect.
If someone disagrees, they should just reopen.
I'm sorry that this did not come up during discussion in the issue before
you created your PRs. :bowing_man:
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> Use yarn js instead of npm when adding plugins
> ----------------------------------------------
>
> Key: CB-12242
> URL: https://issues.apache.org/jira/browse/CB-12242
> Project: Apache Cordova
> Issue Type: Improvement
> Components: cordova-fetch
> Reporter: Jacques de Villiers
> Priority: Major
>
> Currently it can take quite long to add certain plugins to my project (using
> cordova plugin add), especially if I need to re-add the plugins. My
> suggestion is to update the cordova cli to start using yarn js instead of npm
> directly.
> When I looked at this page, I realised yarn was just a wrapper for npm, and
> much better at caching packages locally.
> https://shift.infinite.red/npm-vs-yarn-cheat-sheet-8755b092e5cc#.jiz27n1hc
> I would imagine this change would be relatively straightforward, and would be
> a massive win for the cli.
> I was thinking of creating a fork to do a PR but realised I am not totally
> sure how to proceed on this.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]