1.2.2 • Published 8 years ago
monorepo v1.2.2
monorepo
A CLI utility program for Node.js monorepo projects.
npm install monorepo --save-devFeatures
- Adapters. Use either
npm(default) oryarn. - Parallel. Runs package scripts and commands in parallel.
Motivation
lerna is pretty good, but seems bloated and messes up the output to stdout.
Usage
Add a monorepo.json to the root of the project. Example:
{
"adapter": "npm",
"packages": ["packages/*"]
}To install all the sub-package dependencies, run:
monorepo installTo publish all the sub-package dependencies, run:
monorepo publishTo run the test script in each of the packages, run:
monorepo run testAPI
monorepo(args, flags, opts, cb)
monorepo may be used as a Node.js module:
const monorepo = require('monorepo')
monorepo(
['test'],
{adapter: 'yarn', quiet: true},
{cwd: path.resolve(__dirname, 'path/to/root')},
err => {
if (err) {
console.error(err.message)
process.exit(err.code || 1)
}
}
)1.2.2
8 years ago
1.2.1
8 years ago
1.2.0
8 years ago
1.1.2
8 years ago
1.1.1
8 years ago
1.1.0
8 years ago
1.0.5
8 years ago
1.0.4
8 years ago
2.0.0
8 years ago
1.0.3
8 years ago
0.1.8
10 years ago
0.1.7
10 years ago
0.1.6
10 years ago
0.1.5
10 years ago
0.1.4
10 years ago
0.1.3
10 years ago
0.1.2
10 years ago
0.1.1
10 years ago
0.1.0
10 years ago