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 i
as 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
-
cd
into the repo where you want to add the dependency -
johnny-dep remove-symlinks
(requires globally installed johnny-dep) -
npm install
your favourite dependency -
cd
into the main project npm run johnny
add a git dependency
- open the
package.json
of your project - add your git pointer to the
johnnyDep.npmGitDependencies
Array 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