Skip to content

do-community/sample-yarn-workspaces-monorepo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yarn workspaces monorepo example

This is an example monorepo that uses Yarn workspaces. There are two workspaces in the repo: workspace-a, and workspace-b. Both workspaces start HTTP servers using yarn serve, each returning different responses.

Local Testing

  1. Start at the repo root
  2. Run yarn install to install all dependencies
  3. Change into either workspace directory:
    • cd workspace-a; or
    • cd workspace-b
  4. Start the server: yarn serve

Deploying to App Platform

  1. Select your git repo
  2. Keep the source directory set to the default, /
  3. If you have a build script in package.json, set the build command to:
    cd workspace-b
    yarn build
    
  4. Set the run command to:
    cd workspace-b
    yarn serve
    

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published