{"_id":"gitify-dependencies","_rev":"377-35fbd58198b04d8bf9a0b4390190707e","name":"gitify-dependencies","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"gitify-dependencies","version":"1.0.0","keywords":["git","repository","dependency","node"],"author":{"name":"Contentful GmbH"},"license":"MIT","_id":"gitify-dependencies@1.0.0","maintainers":[{"name":"sdepold","email":"sascha@depold.com"}],"homepage":"https://github.com/contentful-labs/gitify-dependencies","bugs":{"url":"https://github.com/contentful-labs/gitify-dependencies/issues"},"bin":{"gitify-deps":"bin/gitify-deps.js"},"dist":{"shasum":"ba724c44ae7956005552aab03860a5716331810e","tarball":"https://registry.npmjs.org/gitify-dependencies/-/gitify-dependencies-1.0.0.tgz","integrity":"sha512-/fEErRS+mxdo2K/ms9PabEl7bkk81tMF4zPLFvoPLQtxMdcEs0EpTsYLOkP+4WsNEZonPdtnS0I25eYtd85Epw==","signatures":[{"sig":"MEYCIQDaiX7kZYy6Bhs6ax1oYJcDwahQHuG3pugraJArM8a2DAIhALpFCT6xNVSn+v8D9G6AJ9OgdKoIk/1cnN1jdMfEnhRR","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/gitify.js","_from":".","_shasum":"ba724c44ae7956005552aab03860a5716331810e","gitHead":"99a35e3f09c85b0b7607236cbff7e0264daeb9ce","scripts":{"test":"gulp","test-unit":"gulp test-unit","test-integration":"gulp test-integration"},"_npmUser":{"name":"sdepold","email":"sascha@depold.com"},"repository":{"url":"git+https://github.com/contentful-labs/gitify-dependencies.git","type":"git"},"_npmVersion":"2.14.12","description":"CLI tool for replacing node dependencies with their respective git repositories","directories":{},"_nodeVersion":"4.3.1","dependencies":{"yargs":"^3.31.0","dottie":"^1.1.1","lodash":"^3.10.1","winston":"^2.1.1","bluebird":"^3.1.1","fs-extra":"^0.26.4"},"devDependencies":{"chai":"^3.4.1","gulp":"^3.9.0","gulp-jscs":"^3.0.2","gulp-util":"^3.0.7","dirty-chai":"^1.2.2","gulp-jshint":"^2.0.0","run-sequence":"^1.1.5","gulp-spawn-mocha":"^2.2.2","gulp-markdown-code-blocks":"^1.1.0"},"_npmOperationalInternal":{"tmp":"tmp/gitify-dependencies-1.0.0.tgz_1464006990514_0.22477155458182096","host":"packages-12-west.internal.npmjs.com"}},"1.0.1":{"name":"gitify-dependencies","version":"1.0.1","keywords":["git","repository","dependency","node"],"author":{"name":"Contentful GmbH"},"license":"MIT","_id":"gitify-dependencies@1.0.1","maintainers":[{"name":"cf-admin","email":"npm@contentful.com"},{"name":"dani-h","email":"hodovic.dani@gmail.com"},{"name":"farruco.sanjurjo","email":"farruco.sanjurjo@gmail.com"},{"name":"geigerzaehler","email":"lambdaqu@gmail.com"},{"name":"hungryblank","email":"hungryblank@gmail.com"},{"name":"jakub-contentful","email":"jakub@contentful.com"},{"name":"johanneswuerbach","email":"johannes.wuerbach@googlemail.com"},{"name":"poberherr","email":"patrick.oberherr@gmail.com"},{"name":"pxlpnk","email":"npm@an-ti.eu"},{"name":"roboben","email":"ben@contentful.com"},{"name":"sdepold","email":"sascha@depold.com"},{"name":"timbeyer","email":"tim.beyer@gmail.com"},{"name":"trodrigues","email":"tmcrodrigues@gmail.com"}],"homepage":"https://github.com/contentful-labs/gitify-dependencies","bugs":{"url":"https://github.com/contentful-labs/gitify-dependencies/issues"},"bin":{"gitify-deps":"bin/gitify-deps.js"},"dist":{"shasum":"c39f156c7496e5cfbca60c9c7b8671443a1c6338","tarball":"https://registry.npmjs.org/gitify-dependencies/-/gitify-dependencies-1.0.1.tgz","integrity":"sha512-np1UNe3GWstiyPdrZiLshDBTG+gxtERvx40OdwmHhT0bKfhvmSzLmZ4Iw+Y6KOWjAN8kyjPYPkOFLkTgs3xAFQ==","signatures":[{"sig":"MEYCIQCDhdZBteMUtQInwolFUx7Ww+2LgiwFSN75roVn6sL38gIhAM3fxj0EDlC2jdqR++2KOUEeRhOp3LwrQfUXd82Da6oK","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/gitify.js","_from":".","_shasum":"c39f156c7496e5cfbca60c9c7b8671443a1c6338","gitHead":"35a6e0adcba41b875460adbe6dc318d436bb518f","scripts":{"test":"gulp","test-unit":"gulp test-unit","test-integration":"gulp test-integration"},"_npmUser":{"name":"sdepold","email":"sascha@depold.com"},"repository":{"url":"git+https://github.com/contentful-labs/gitify-dependencies.git","type":"git"},"_npmVersion":"2.14.12","description":"CLI tool for replacing node dependencies with their respective git repositories","directories":{},"_nodeVersion":"4.3.1","dependencies":{"yargs":"^3.31.0","dottie":"^1.1.1","lodash":"^3.10.1","winston":"^2.1.1","bluebird":"^3.1.1","fs-extra":"^0.26.4"},"devDependencies":{"chai":"^3.4.1","gulp":"^3.9.0","gulp-jscs":"^3.0.2","gulp-util":"^3.0.7","dirty-chai":"^1.2.2","gulp-jshint":"^2.0.0","run-sequence":"^1.1.5","gulp-spawn-mocha":"^2.2.2","gulp-markdown-code-blocks":"^1.1.0"},"_npmOperationalInternal":{"tmp":"tmp/gitify-dependencies-1.0.1.tgz_1465887990887_0.6590240511577576","host":"packages-16-east.internal.npmjs.com"}}},"time":{"created":"2016-05-23T12:36:33.095Z","modified":"2026-05-28T10:29:54.675Z","1.0.0":"2016-05-23T12:36:33.095Z","1.0.1":"2016-06-14T07:06:33.861Z"},"bugs":{"url":"https://github.com/contentful-labs/gitify-dependencies/issues"},"author":{"name":"Contentful GmbH"},"license":"MIT","homepage":"https://github.com/contentful-labs/gitify-dependencies","keywords":["git","repository","dependency","node"],"repository":{"url":"git+https://github.com/contentful-labs/gitify-dependencies.git","type":"git"},"description":"CLI tool for replacing node dependencies with their respective git repositories","maintainers":[{"email":"it-internal@contentful.com","name":"it-internal"},{"email":"npm@contentful.com","name":"whydah-gally"},{"email":"team-mechagodzilla@contentful.com","name":"contentful-ecosystem"},{"email":"michael.pearce@contentful.com","name":"michaelpearce"},{"email":"sascha@depold.com","name":"sdepold"}],"readme":"# gitify-dependencies [![Build Status](https://api.travis-ci.org/contentful-labs/gitify-dependencies.svg?branch=master)](https://travis-ci.org/contentful-labs/gitify-dependencies)\nCLI tool for replacing node dependencies with their respective git repositories.\n\n## Installation\n\n```\nnpm install -g gitify-dependencies\n```\n\n## Usage\n\n```\ngitify-deps [--options]\n```\n\n### Options\n\n| Flag | Environment variable | Description | Allowed values | Default value |\n|------|----------------------|-------------|----------------|---------------|\n| --checkout-tags<br>-c | CHECKOUT_TAGS | If a dependency is already a git repo, the CLI will just \"git checkout\" the version specified in `npm-shrinkwrap.json`. | 'yes', 'no' | 'no' |\n| --gitify-url-pattern<br>-p | GITIFY_URL_PATTERN | Specify a pattern that gets matched against the package's url.<br> **Please note, that you must either set this flag or the environment variable!** | none | none |\n| --node-projects-dir<br> -d | NODE_PROJECTS_DIR | Set a path which will keep the git repository's data. | none | $HOME/.gitify |\n\n## Idea\n\nThis tool walks through your `npm-shrinkwrap.json` file and does the following things for every dependency (and it's sub-dependencies):\n\n1. Clone or update the package's repo in `{NODE_PROJECTS_DIR}/{name of the dependency}`.\n2. Back up the package's private `node_modules` directory if present.\n3. Remove any existing package.\n4. Create a new git \"workdir\" in it's place that shares the same repository as `{NODE_PROJECTS_DIR}/{name of the dependency}`.\n5. Restore the package's private `node_modules`.\n\nIn practice you can treat this like a sort of \"linked clone\" of the original repo. Objects and refs (branches and tags) will be shared between all workdirs, but each one will have it's own working tree, HEAD, and index (staging area). One caveat is that only the git repository is synced, making changes and commiting in one workdir doesn't affect the files in another workdir. Use feature branches\n\nMore information about workdirs:\n\n - [Nice explanation of git-new-workdir](http://nuclearsquid.com/writings/git-new-workdir/)\n - [The original script from git/git/contrib](https://github.com/git/git/blob/7b69fcb181941fafda99a5ffd25cea1f685d7e70/contrib/workdir/git-new-workdir)\n","readmeFilename":"README.md"}