cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-12242) Use yarn js instead of npm when adding plugins
Date Fri, 23 Feb 2018 13:51:05 GMT

    [ https://issues.apache.org/jira/browse/CB-12242?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16374361#comment-16374361
] 

ASF GitHub Bot commented on CB-12242:
-------------------------------------

qkdreyer opened a new pull request #292: CB-12242 : Use yarn instead of npm
URL: https://github.com/apache/cordova-cli/pull/292
 
 
   ### Platforms affected
   
   All
   
   ### What does this PR do?
   
   Allows user to select his package manager used by cordova-fetch, possible values are "npm"
or "yarn", defaulting to "npm"
   
   ### What testing has been done on this change?
   
   None, since we're just adding cordova arguments here
   
   ### Checklist
   - [x] [Reported an issue](http://cordova.apache.org/contribute/issues.html) in the JIRA
database
   - [x] Commit message follows the format: "CB-3232: (android) Fix bug with resolving file
paths", where CB-xxxx is the JIRA ID & "android" is the platform affected.
   - [ ] Added automated test coverage as appropriate for this change.
   

----------------------------------------------------------------
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:
users@infra.apache.org


> 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-cli, cordova-lib
>            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: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message