johnny-dep

3.0.3 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i johnny-dep

Weekly Downloads

0

Version

3.0.3

License

ISC

Last publish

Collaborators

  • vigour-io