0.0.3 • Published 4 years ago

mppm v0.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

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.json

Get started

npm install -D mppm

Config

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 is major, the major version will be changed, eg: 1.1.1 => 2.0.0
  • minor, 1.1.1 => 1.2.0
  • patch, 1.1.1 => 1.1.2
  • premajor, 1.1.1 => 2.0.0-0
  • preminor, 1.1.1 => 1.2.0-0
  • prepatch, 1.1.1 => 1.1.2-0
  • prerelease, 1.1.1 => 1.1.2-0
  1. versionPreid
    It only works when versionStep is one of prerelease | prepatch | preminor | premajor. Eg, if versionStep is prelease and versionPreid is beta, version will be changed like 1.1.1 => 1.1.2-beta.0

  2. commitBranch
    Specified branch to be committed

  3. commitMessage
    Specified message to be committed
  4. publishRegistry
    Your registry to publish, default is https://registry.npmjs.org/

Command

bootsrap

npx mppm bootstrap

It 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 changed

It will get all changed packages since last commit

publish

npx mppm publish

Publish changed packages and packages which link changed packages.

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1-beta.6

5 years ago

0.0.1-beta.5

5 years ago

0.0.1-beta.4

5 years ago

0.0.1-beta.3

5 years ago

0.0.1-beta.2

5 years ago

0.0.1-beta.1

5 years ago

0.0.1-alpha.8

5 years ago

0.0.1-alpha.7

5 years ago

0.0.1-alpha.6

5 years ago

0.0.1-alpha.5

5 years ago

0.0.1-alpha.4

5 years ago

0.0.1-alpha.3

5 years ago

0.0.1-alpha.1

5 years ago

0.0.1-alpha.0

5 years ago