swanzeyb / sample-do-app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:JavaScript 100.0%