youngluo / monorepo

A monorepo boilerplate.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Monorepo

lerna

Commands

Yarn workspace

# install public dependencies in the root directory
yarn add -W <package>

# install dependencies for the specified workspace
yarn workspace <workspace> add <package>

# execute commands in all workspace
yarn workspaces run <command>

# execute the command in the specified workspace
yarn workspace <workspace> <command>

Lerna

# install dependencies for packages/*
lerna add <package>

# install dependencies for the specified workspace
lerna add <package> --scope <workspace>

# execute commands in all workspace
lerna run <command>

About

A monorepo boilerplate.

License:MIT License


Languages

Language:Shell 50.9%Language:JavaScript 49.1%