{"name":"northbrook","version":"4.5.2","description":"Manage your projects with the power of NPM","main":"index.js","typings":"index.d.ts","bin":{"northbrook":"bin/northbrook.js","nb":"bin/northbrook.js"},"scripts":{"build":"npm run clean && tsc -P .config/tsconfig.json","clean":"rimraf northbrook helpers plugins types index.js index.js.map index.d.ts","commit":"npm run build && bin/northbrook.js commit","preversion":"npm run build","release":"npm run build && bin/northbrook.js release","test":"npm run test:lint && npm run test:unit","test:lint":"tslint src/**/**/**/*.ts src/**/**/*.ts src/**/*.ts src/*.ts","test:unit":"mocha -r ts-node/register src/**/*.test.ts src/**/**/*.test.ts src/**/**/**/*.test.ts"},"repository":{"type":"git","url":"git+https://github.com/northbrookjs/northbrook.git"},"keywords":["northbrook","lerna","monorepo","tooling","building","testing","scaffolding","package","management","versioning","git","release","semver","compatver","comver"],"author":{"name":"Tylor Steinberger","email":"tlsteinberger167@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/northbrookjs/northbrook/issues"},"homepage":"https://github.com/northbrookjs/northbrook#readme","config":{"ghooks":{"commit-msg":"node ./node_modules/.bin/validate-commit-msg"}},"devDependencies":{"@motorcycle/tslint":"^1.3.0","@types/mocha":"^2.2.33","commitizen":"^2.9.0","conventional-changelog-cli":"^1.2.0","cz-conventional-changelog":"^1.2.0","ghooks":"^1.3.2","mocha":"^3.2.0","spawn-mock":"^1.0.0","tslint":"^4.3.1","typed-prompts":"^1.5.0","typescript":"^2.1.5","validate-commit-msg":"^2.8.2","wallabify":"0.0.14"},"dependencies":{"@typed/sequence":"^1.1.0","@types/findup-sync":"^0.3.29","@types/minimist":"^1.1.29","@types/mkdirp":"^0.3.29","@types/node":"^6.0.52","@types/ramda":"0.0.2","@types/rimraf":"^0.0.28","@types/semver":"^5.3.30","app-module-path":"^2.1.0","buba":"^4.0.2","dependency-graph":"^0.5.0","findup-sync":"^0.4.3","mkdirp":"^0.5.1","ramda":"^0.22.1","reginn":"^2.1.4","rimraf":"^2.5.4","semver":"^5.3.0","simple-spinner":"0.0.5","stdio-mock":"^1.1.0","ts-node":"^2.0.0","typed-colors":"^1.0.0","typed-figures":"^1.0.0","typed-prompts":"^1.4.0"},"gitHead":"86e8e4d1b6ff1b1e127f4f40a54f7af20701fd49","_id":"northbrook@4.5.2","_shasum":"a12211105f190988a6e46c7048b306ad59e3ff63","_from":".","_npmVersion":"4.0.5","_nodeVersion":"7.4.0","_npmUser":{"name":"northbrook","email":"tlsteinberger167@gmail.com"},"dist":{"shasum":"a12211105f190988a6e46c7048b306ad59e3ff63","tarball":"http://registry-npm.ywwl.com/northbrook/download/northbrook-4.5.2.tgz","integrity":"sha512-Vc8RaB/8Bxe+ccm2btuXLtY5HKu50MpjhMjNvBqkYLE6UXZctnIkobXsnEs/Xct9D8ATqIaDKzOdgStTuZACyw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBSqvOWUSsk8i0uIySnTZLk0Bt7NNQ1OzRaBKYhudf0AAiA8GEbeFnB5isyuQe2muZjNPnuR12nk67zLJWhNjtYgzQ=="}],"size":114733,"noattachment":false,"key":"/northbrook/-/northbrook-4.5.2.tgz"},"maintainers":[{"name":"tylors","email":"tlsteinberger167@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/northbrook-4.5.2.tgz_1485035219609_0.4701089742593467"},"readme":"# Northbrook ![](https://img.shields.io/badge/license-MIT-blue.svg)\n\n> Reproducible tooling & configuration\n\n## What is this all about?\n\nNorthbrook is a bridge between the [`Node Package Manager (NPM)`](https://www.npmjs.com/)\nand your terminal. Northbrook orchestrates [`plugins`](#plugins) to help you\nmanage your projects, including multi-package projects (monorepos). It does so\nwith [`Reginn`](https://github.com/TylorS/reginn) dynamically adding to the\ncommand line interface.\n\nLeveraging NPM allows users to install plugins that setup or manage all parts of\nyour applications lifecycle from scaffolding to releasing.\n[Configured](#northbrook-configuration) through a simple JavaScript file, you\ncan `npm install` other configurations for reuse or extension across any project!\n\n## This is for me!\n```sh\n# with npm\nnpm install --save-dev northbrook\n# with yarn\nyarn add --dev northbrook\n```\n\n## Have more questions than answers or want to help?\n\nJoin us on [gitter](https://gitter.im/northbrookjs/Lobby) !\n\n---\n\n## Table of Contents\n\n- [Project Goals](#general-project-goals)\n- [Documentation Goals](#documentation-goals)\n- [Community Goals](#community-goals)\n- [Northbrook CLI Options](#northbrook-command-line-options)\n- [Northbrook Configuration](#northbrook-configuration)\n- [Plugins](#plugins)\n- [Additional Feature for Monorepos](#additional-features-for-monorepos)\n- [Packages for monorepos](#packages-for-monorepos)\n\n## Additional Documentation\n\n- [Default Plugins and Plugin API](https://github.com/northbrookjs/northbrook/tree/master/PLUGINS.md)\n- [Using Northbrook Programatically](https://github.com/northbrookjs/northbrook/tree/master/NORTHBROOK_API.md)\n\n---\n\n## General Project Goals\n\n- Manage projects with ease, including multi-package repositories (monorepos)\n- Useful out of box with no configuration\n- Extensible and configurable via plugins\n- Highly reusable, and versionable, configurations (installed via NPM)\n- Well Documented\n\n## Documentation Goals\n\nThis is a passion project, and as such it's too easy to write\ndocumentation that assumes knowledge that perhaps only core contributors have.\nA real goal of the project is to make as many user's lives as easy as possible\nand documentation is paramount to that goal. Please, if you see something that isn't\ndocumented, isn't clear, or just plain sucks, open an issue! Let us know! Better\nyet, your contribution as a pull request would be graciously welcomed!\n\n## Community Goals\n\nBuilding Community around a project is so important for the longevity of a project.\nWe want to personally state that everyone is welcome here, and any misconduct will\nnot be tolerated. Your contributions in the form of bug reports, pull requests,\nand feature requests are vital and I want to hear them all, don't be shy. :smile:\n\nPlease be mindful that this is an open-source project developed only on the free\ntime of it's contributors. We want to help, but time is a precious thing, so please\nbe understanding and sensitive to these types of circumstances.\n\n---\n\n## Northbrook Command Line Options\n\nNorthbrook does not do very much out of the box other than orchestrate plugins,\nbut it does have some configurable CLI flags that make using Northbrook just a\nbit easier.\n\n**`--only, -o`** Execute plugins only in specific packages\n\n```sh\n# run northbrook exec only in packageA\nnorthbrook --only packageA exec -- npm install\n```\n\n**`--config, -c`** Explicitly define where to look for a northbrook configuration file.\n\n```sh\nnorthbrook --config .config/northbrook.production.js\n```\n\n**`--debug, -d`** Turn on a debug mode, where Northbrook will print to the console more\ninformation about what it is doing to orchestrate your plugins. Useful to find out\nhow Northbrook operates, and for debugging errors that may be occuring.\n\n---\n\n## Northbrook Configuration\n\nNorthbrook introduces a single file to use to configure how Northbrook works, out\nof the box, if the defaults work for you, you shouldn't have to even touch a configuration file.\nIf you need to tweak some things, add or configure new plugins, this is where that\ncan be done. By default this configuration file should be named either\n`northbrook.js` or `northbrook.ts` if TypeScript is for you. Throughout the\ndocumentation these two files will used interchangably but rules or\nguidelines that apply to one apply to all Northbrook configurations.\n\n```typescript\n// as a TypeScript interface\ninterface NorthbrookConfig {\n  packages?: Array<string>;\n  plugins?: Array<string | App | Command>;\n}\n```\n\nBy default, and if no `packages` are defined, just the project-level package will be\nused as the only package. Likely you will never need to use the field unless you plan to develop\nmore than one package in a monorepo. If you are developing a monorepo see more\ndocumentation on packages for monorepos [here](#packages-for-monorepos).\n\nBy default, and if no `plugins` are defined, a set of default plugins will be\nimported and used from `northbrook/plugins`. The next section will go further in\ndepth about plugins.\n\n## Plugins\n\nPlugins are used to introduce new functionality to Northbrook, as a matter of\nfact, Northbrook does very little other than facilitate the creation and management\nof plugins. Plugins can introduce tools to transpile your source code, to help\nyou get started with testing, build documentation, or anything that can be done\nwith node.js. Some examples may be\n\n- Building with TypeScript / Babel / Buble\n- Testing with Mocha / Karma\n- Bundling with Rollup / Browserify / Webpack\n- Building documentation\n- Scaffolding new packages\n\nAs a general philosophy Northbrook likes to follow, it is encouraged that\nplugins should **not** introduce configuration into a `northbrook.js` that\nis already covered by other mechanisms. For instance, a plugin for Babel has no\nneed to introduce a way to configure Babel plugins since there already exists a\n`.babelrc` to do just that. The same goes for a plugin for TypeScript as\n`tsconfig.json` already exists to configure how to build your projects. This is\nespecially important when it come to editor integrations that already exist using\nthese files, no need to duplicate work!\n\nConfiguring plugins should look like this\n\n```js\n// northbrook.js\n\nconst typescriptPlugin = require('some-typescript-plugin');\n\nmodule.exports = {\n  plugins: [\n    'northbrook/plugins', // leave it to northbrook to do the require()ing\n    typescriptPlugin, // a plugin can be user-required\n    'tslint'\n  ]\n}\n```\n\n```typescript\n// northbrook.ts\nexport = {\n  plugins: [\n    'northbrook/plugins',\n    'typescript',\n    'tslint'\n  ]\n}\n```\n\nPlugins can either be a `require()`-able string or in the form of a Reginn\n[App](https://github.com/tylors/reginn#app) or [Command](https://github.com/tylors/reginn#command).\n\nBy default `northbrook/plugins` will be used if no configuration is applied.\nFor information about the default plugins or creating plugins please see\n[PLUGINS.md](https://github.com/northbrookjs/northbrook/tree/master/PLUGINS.md).\n\n---\n\n## Additional Features for Monorepos\n\nThe design of Northbrook is agnostic to the number of packages that you need to\nmanage. This means, that you can just as easily use it to manage a single\npackage or a monorepo with 100+ packages and share the same benefits.\n\n### Single installation of dependencies\n\nNorthbrook has been designed to allow plugins to move your devDependencies to\nthe top-level. Allowing for a dependency like TypeScript to be installed 1 time\nand used for all managed packages. This could help cut the build time for your\nprojects to focus on the important stuff, tests!\n\nBenefits:\n\n- All packages use the same version of a given dependency\n- Dependency installation time is reduced\n- Less storage is needed\n\n### Single configuration\n\nJust like dependencies, configurations are now allowed to exist at the top-level\nto only be configured once when it makes sense. Configurations such as a\n`tsconfig.json` can be declared once at the root level, and reused across all\nof your package. These leads to less duplication and configuration.\n\n---\n\n## Packages for monorepos\n\nWhen developing a monorepo, you will need to interact with a `northbrook.js`\nconfiguration file to setup where to look for each packages. Each package is\nto be defined as a relative path to it.\n\n```js\n//northbrook.js\n// commonjs\nmodule.exports = {\n  packages: ['relative/path/to/packageA', 'relative/path/to/packageB']\n}\n```\n\nAdditionally, if you have many packages co-located in a specific folder, it is\npossible to use a short-hand syntax `/**` to automatically find all packages in a directory.\n\n```js\nmodule.exports = {\n  packages: ['relativePath/**']\n}\n```\n\nIt is important to note that this syntax is not recursive and will only look for\npackages at the top-level of the relative path.\n","publish_time":1485035221773,"_cnpm_publish_time":1485035221773,"dist-tags":{"latest":"4.6.3"}}