3.0.3 • Published 8 years ago
johnny-dep v3.0.3
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
git clone && npm ias normal, this installs third party dependencies.npm run johnny(which will runjohnny-dep sync-npm-git-dependencies), this installs your npm git dependencies, cloning and building the repos at../and simulating flat dependency structure using symlinks.npm run dev
add an npm dependency
cdinto the repo where you want to add the dependencyjohnny-dep remove-symlinks(requires globally installed johnny-dep)npm installyour favourite dependencycdinto the main projectnpm run johnny
add a git dependency
- open the
package.jsonof your project - add your git pointer to the
johnnyDep.npmGitDependenciesArray in this format:[org]/[repo]#[branch] 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