Skip to content

Monorepo Example with Component Library and multiple Frontends

Notifications You must be signed in to change notification settings

jaslloyd/monorepo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Monorepo POC

This is a monorepo POC with the help of yarn workspaces.

Yarn Workspaces

To get started we need a root package.json file that has the following properties.

{
  "private": true,
  "workspaces": [
    "packages/*"
  ]
}

Each folder under the packages folder is considered a workspace, for example we can have multiple FEs or even common packages. Like in this example we have:

.
├── packages                   
├──── common                    # React component library for all FEs we have
├──── fe1                       # Sample React app #1
├──── fe2                       # Sample React app #2
└── ...

Resources

Ben Awad yarn-workspaces-example - Video Tutorial

Lerna-yarn-workspaces-example

Alternative way to create a react library

About

Monorepo Example with Component Library and multiple Frontends

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published