0.1.1 • Published 5 years ago

sync-local-deps v0.1.1

Weekly downloads
55
License
-
Repository
github
Last release
5 years ago

sync-local-deps

Keep your local npm packages up-to-date with each other

Install

npm install -g sync-local-deps

Usage

sync-local-deps [root] [options]

Options:
  [root]               directory where projects are located, defaults to cwd()
  --dryrun, -D         don't make changes                       [default: false]
  --skip, -S           list of directories to skip         [array] [default: []]
  --skipPublish, -P    list of directories to not npm publish
                                                           [array] [default: []]
  --skipGitPush, -G    list of directories to not git push [array] [default: []]
  --ignoreDevDeps, -I  don't update dev deps                           [boolean]
  --updateAll, -a     include even those dependencies whose latest version
                       satisfies the declared semver dependency        [boolean]
  --npmVersion, -v     npm version to bump to, see "npm version --help"
                                                     [string] [default: "patch"]
  --only, -o           only sync the given projects, looks at cwd if empty
                                                                         [array]
  --help               Show help                                       [boolean]
  --version            Show version number                             [boolean]

sync-local-deps does the following:

  1. scans the given root directory for projects that depend on other projects in root
  2. build a dependency graph between projects so they're updated in the correct order
  3. for each project with out-of-date local dependencies:
    1. npm install --save dep1@latest dep2@latest ...
    2. git commit -am 'bump deps'
    3. npm version patch && npm publish
    4. git push

This process continues until every package has up-to-date local dependencies.

The output will looks something like this: npm.io

0.1.1

5 years ago

0.1.0

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago