Skip to content
main
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

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