mppm v0.0.3
It is similiar with lerna. But lerna is a little complicated.
Usage
Project structure can be below
mppm-repo/
package.json
mppm.config.js
packages/
package-1/
package.json
package-2/
package.jsonGet started
npm install -D mppmConfig
Initialize mppm config with mppm.config.js in root folder.
eg:
module.exports = {
packages: ['packages/*'],
versionStep: 'patch',
publishRegistry: 'https://registry.npmjs.org/'
}Above config arguments can be set:
1. packages
Default value is ['packages/*']
2. versionStep
major, if versionStep ismajor, the major version will be changed, eg:1.1.1 => 2.0.0minor,1.1.1 => 1.2.0patch,1.1.1 => 1.1.2premajor,1.1.1 => 2.0.0-0preminor,1.1.1 => 1.2.0-0prepatch,1.1.1 => 1.1.2-0prerelease,1.1.1 => 1.1.2-0
versionPreid
It only works whenversionStepis one ofprerelease | prepatch | preminor | premajor. Eg, ifversionStepispreleaseandversionPreidisbeta, version will be changed like1.1.1 => 1.1.2-beta.0commitBranch
Specified branch to be committed- commitMessage
Specified message to be committed - publishRegistry
Your registry to publish, default ishttps://registry.npmjs.org/
Command
bootsrap
npx mppm bootstrapIt will install dependencies and devDependencies for each package.
If there are dependencies between packages, they will be linked each other.
run
npx mppm run <command>It will execute npm run <command> for each package.
changed
npx mppm changedIt will get all changed packages since last commit
publish
npx mppm publishPublish changed packages and packages which link changed packages.
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago