{"id":20551599,"url":"https://github.com/do-community/sample-yarn-lerna-monorepo","last_synced_at":"2025-08-08T14:19:33.958Z","repository":{"id":90798436,"uuid":"378974524","full_name":"do-community/sample-yarn-lerna-monorepo","owner":"do-community","description":null,"archived":false,"fork":false,"pushed_at":"2021-06-21T15:17:08.000Z","size":82,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-28T00:44:04.492Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/do-community.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-21T15:16:48.000Z","updated_at":"2023-10-10T22:06:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"307f0266-2750-46ad-a29b-0ac17bd867ad","html_url":"https://github.com/do-community/sample-yarn-lerna-monorepo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/do-community%2Fsample-yarn-lerna-monorepo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/do-community%2Fsample-yarn-lerna-monorepo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/do-community%2Fsample-yarn-lerna-monorepo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/do-community%2Fsample-yarn-lerna-monorepo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/do-community","download_url":"https://codeload.github.com/do-community/sample-yarn-lerna-monorepo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248871723,"owners_count":21175282,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-16T02:32:25.282Z","updated_at":"2025-04-14T11:31:06.515Z","avatar_url":"https://github.com/do-community.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lerna monorepo example\n\nThis is an example monorepo that uses lerna. There are two packages in the repo: `workspace-a`, and `workspace-b`. Both packages start HTTP servers using `yarn serve`, each returning different responses.\n\n## Local Testing\n\n1. Start at the repo root\n1. Run `yarn install` to install all dependencies\n    * Note that `package.json` contains a `postinstall` script that runs `lerna bootstrap`.\n    * This instruct yarn to run `lerna bootstrap` after `yarn install` has finished. This allows lerna to install any required dependencies and also link the `workspace-a` and `workspace-b` packages. By doing this as part of the install step, App Platform can cache the dependencies installed by lerna.\n    * Important: if you do not configure a similar `postinstall` command, you will need to manually run `lerna bootstrap`.\n1. Change into either workspace directory:\n    * `cd packages/workspace-a`; or\n    * `cd packages/workspace-b`\n1. Run the example build command: `yarn build`\n1. Start the server: `yarn serve`\n\n## Deploying to App Platform\n\n1. Select your git repo\n1. Keep the source directory set to the default, `/`\n1. Set the build command to:\n\t```\n\tyarn bootstrap\n\tcd packages/workspace-b\n\tyarn build\n\t```\n1. Set the run command to:\n\t```\n\tcd packages/workspace-b\n\tyarn serve\n\t```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdo-community%2Fsample-yarn-lerna-monorepo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdo-community%2Fsample-yarn-lerna-monorepo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdo-community%2Fsample-yarn-lerna-monorepo/lists"}