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

Be .npmignore aware when installing a plugin

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Won't Do
    • None
    • None
    • cordova-cli

    Description

      Some Cordova plugins are very well documented but sometimes this documentation can be too big. Sometimes they contains a lot of code samples. The problem is when we are installing these plugins, our projects become bigger and bigger.

      So far there is no way to ignore files of a Cordova plugin when installing it.
      In case of public npm packages, we are able to control what we want to publish from the .npmignore file or still from the files attribute of the package.son file.
      But in case of private packages, if for instance they're installed from a Github repository, then the `Cordova plugin add` command will ignore
      the .npmignore or package.json config. Same case if I want to use the last version of a plugin which is not published.

      Would that make any sense to be aware of these config (.npmignore or package.son) when installing a plugin ?

      Attachments

        Activity

          People

            Unassigned Unassigned
            akofman Alexis Kofman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: