Skip to content

GaborTorma/mwm

Repository files navigation

@gabortorma/mwm

npm version npm downloads License code style

Multi-repo Workspace Manager

Install globally

npm install -g @gabortorma/mwm

Usage

mwm --help

Release

mwm release --help

Generate

Generate new submodule from template

mwm generate --help

Required to declare minimum one owner with GitHub token in the config file.

Recommended to use .mwmrc file for token and add it to .gitignore.

owners.NAME_OF_OWNER.token = ghp_xxxxx

Required scopes for the token:

  • repo
  • write:packages
  • delete:packages
  • delete_repo

Config

You can use mwm.config or .mwmrc files for configuration.

MWM uses unjs/c12 for reading config files. Check the documentation for more information and all available options.

See the loadConfig options.

TypeScript config

You can use defineMWMConfig function in mwm.config.ts file to define the config with TypeScript support.

import { defineMWMConfig } from '@gabortorma/mwm'

export default defineMWMConfig({
  // your own config
})

License

MIT License © 2023-PRESENT Gábor Torma