Multi-repo Workspace Manager
npm install -g @gabortorma/mwm
mwm --help
mwm release --help
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
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.
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
})
MIT License © 2023-PRESENT Gábor Torma