Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-12242

Use yarn js instead of npm when adding plugins

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: cordova-fetch
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jacquesdev Jacques de Villiers
            • Votes:
              7 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: