https://github.com/miguelcastillo/git-npm-updater
Automatically update npm dependencies in your package.json and create Pull Requests to your git repo
https://github.com/miguelcastillo/git-npm-updater
Last synced: about 2 months ago
JSON representation
Automatically update npm dependencies in your package.json and create Pull Requests to your git repo
- Host: GitHub
- URL: https://github.com/miguelcastillo/git-npm-updater
- Owner: MiguelCastillo
- License: mit
- Created: 2016-07-29T13:43:13.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2019-12-20T22:38:02.000Z (over 5 years ago)
- Last Synced: 2025-03-08T09:35:13.221Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 31.3 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# git-npm-updater
[](https://greenkeeper.io/)
Automatically update npm dependencies in your package.json and create Pull Requests to your git repo.
# options
```
--username:
git username for authenticating when making a Pull Request.--password:
git password for authenticating when making a Pull Request.--directories:
List of local directories for which to make Pull Requests. Useful for specifying multiple local directories you want to make simultaneous Pull Requests for.
- Defaults to the current working directory--remote:
name of the git remote to use.
- Defaults to `origin`--branch:
name of the git branch to commit changes to and make the Pull Request from.
- Defaults to `npm-dependency-updates`--message:
commit message used in the git commit and Pull Request.
- Defaults to `Updating npm dependencies`--to:
remote branch to merge the Pull Request into.
- Defaults to `master`--latest:
by default, dependencies are updated following semver. Use this flag to update to the latest available versions.
- Defaults to `false`--dryrun:
flag to printout the updated package.json and the git information that would be used for the Pull Request.
- Defaults to `false`
```# usage
Sample for updating the git repo in your current working directory using the configured username and password
```
$ git-npm-update --username rollingstones --password whateveryouuse
```Sample for updating bit-loader-text and bit-loader-css using the configured username and password. You can optionally use `--directories`.
```
$ git-npm-update bit-loader-text bit-loader-css --username rollingstones --password whateveryouuse
```# install
```
$ npm install git-npm-updater -g
```# License
Licensed under MIT