Skip to content

colshacol/monowork

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

monowork

A friendly yarn workspaces helper.

# install with npm
npm i -g monowork
# or with yarn
yarn add global monowork

Usage

create

Scaffolds a basic package setup at packages/<name> and then refreshes your monorepo root's package.json to include the scripts from your new package.

If monowork.organizationName is provided in your monorepo root's package.json, then the name of your new package's package.json becomes <organizationName>/<name>.

monowork create <name>

refresh

Updates the monorepo root's package.json with scripts found from all monorepo packages. This is useful for when you update a script in one of your packages and want to easily use it without cd package/my-package first.

monowork refresh

monowork demo

--help

Gives you basic usage instructions.

monowork --help

Configuration

Although monowork requires no configuration, it does allow you to provide a few options to customize your usage. Options are specified in your monorepo's root package.json under the "monowork" property.

// ./package.json
{
  "monowork": {
    "organizationName": "@foxy-shaman"
  }
}

About

A friendly yarn workspaces helper.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors