johnny-dep
Helps you to work with git dependencies.
Last updated 3 years ago by vigour-io .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install johnny-dep 
SYNC missed versions from official npm registry.

johnny-dep

Helps you to work with git dependencies.

workflow

Here's how Johnny Dep would like to help you manage your git dependencies:

setup

  1. git clone && npm i as normal, this installs third party dependencies.
  2. npm run johnny (which will run johnny-dep sync-npm-git-dependencies), this installs your npm git dependencies, cloning and building the repos at ../ and simulating flat dependency structure using symlinks.
  3. npm run dev

add an npm dependency

  1. cd into the repo where you want to add the dependency
  2. johnny-dep remove-symlinks (requires globally installed johnny-dep)
  3. npm install your favourite dependency
  4. cd into the main project
  5. npm run johnny

add a git dependency

  1. open the package.json of your project
  2. add your git pointer to the johnnyDep.npmGitDependencies Array in this format: [org]/[repo]#[branch]
  3. npm run johnny

commands

sync-npm-git-dependencies

Installs your npm git dependencies, cloning and building the repos at ../ and simulating flat dependency structure using symlinks.

remove-symlinks

Removes all the symlinks johnny created so that npm or yarn can do their job.

publish-npm-git-dependencies

UNDER CONSTRUCTION

  • traverses git dependencies, for every dep
    • publish nested
    • check if up to date with remote
    • update package.json to use published things
    • run build
    • update package.json
    • publish branch

Current Tags

  • 3.0.3                                ...           latest (3 years ago)

16 Versions

  • 3.0.3                                ...           3 years ago
  • 3.0.2                                ...           3 years ago
  • 3.0.1                                ...           3 years ago
  • 3.0.0                                ...           3 years ago
  • 2.0.3                                ...           3 years ago
  • 2.0.2                                ...           3 years ago
  • 2.0.0                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
  • 0.0.8                                ...           3 years ago
  • 0.0.7                                ...           3 years ago
  • 0.0.6                                ...           3 years ago
  • 0.0.5                                ...           3 years ago
  • 0.0.4                                ...           3 years ago
  • 0.0.3                                ...           3 years ago
  • 0.0.2                                ...           3 years ago
  • 0.0.1                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 16
Last Day 16
Last Week 16
Last Month 1
Dependencies (3)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |