cordova
cordova copied to clipboard
.npmrc
Feature Request
- Add
.npmrcfile to assert usinghttps://registry.npmjs.orgregistry.
Motivation Behind Feature
https://lists.apache.org/thread.html/raa963b0c2349e8d08d6c2f9d557b9055402d6410d35d4e9573b63cab%40%3Cdev.cordova.apache.org%3E
To summarize, for users who have alternate NPM configurations and use private and/or NPM mirrors, it can be easy to install packages from a source other than the official NPM registry without realizing it. It's in Cordova's interest to ensure that NPM runs with a configuration of using the official NPM registry.
We can correct this via adding an .npmrc file to each of our repos with the following config:
registry=https://registry.npmjs.org
Implementation Progress
Platforms
- [x] cordova-android (https://github.com/apache/cordova-android/pull/1348)
- [x] cordova-browser (https://github.com/apache/cordova-browser/pull/117)
- [x] cordova-electron
- [x] cordova-ios (https://github.com/apache/cordova-ios/pull/1145)
Plugins
- [ ] cordova-plugin-battery-status
- [x] cordova-plugin-camera (https://github.com/apache/cordova-plugin-camera/pull/893)
- [ ] cordova-plugin-device
- [x] cordova-plugin-dialogs (https://github.com/apache/cordova-plugin-dialogs/pull/188)
- [x] cordova-plugin-file (https://github.com/apache/cordova-plugin-file/pull/490)
- [x] cordova-plugin-file-transfer (https://github.com/apache/cordova-plugin-file-transfer/pull/323)
- [x] cordova-plugin-geolocation (https://github.com/apache/cordova-plugin-geolocation/pull/236)
- [ ] cordova-plugin-inappbrowser
- [ ] cordova-plugin-media
- [x] cordova-plugin-media-capture (https://github.com/apache/cordova-plugin-media-capture/pull/305)
- [ ] cordova-plugin-network-information
- [x] cordova-plugin-screen-orientation (https://github.com/apache/cordova-plugin-screen-orientation/pull/103)
- [ ] cordova-plugin-splashscreen
- [ ] cordova-plugin-statusbar
- [ ] cordova-plugin-vibration
Tooling
- [x] cordova-cli (https://github.com/apache/cordova-cli/pull/564)
- [x] cordova-coho (https://github.com/apache/cordova-coho/pull/288)
- [x] cordova-common (https://github.com/apache/cordova-common/pull/173)
- [x] cordova-create
- [x] cordova-fetch
- [x] cordova-js
- [x] cordova-lib (https://github.com/apache/cordova-lib/pull/881)
- [x] cordova-node-xcode
- [x] cordova-paramedic (https://github.com/apache/cordova-paramedic/pull/223)
- [x] cordova-plugin-test-framework
- [x] cordova-serve
- [x] cordova-docs (https://github.com/apache/cordova-docs/pull/1204)
- [ ] cordova-app-hello-world
- [ ] cordova-test-platform
- [ ] cordova-mobile-spec
- [x] cordova-plugman (https://github.com/apache/cordova-plugman/pull/157)
- [x] cordova-eslint (https://github.com/apache/cordova-eslint/pull/18)
Excluded:
cordova-statuscordova- any unused, outdated, or deprecated repos