{"id":20316490,"url":"https://github.com/jenbuzz/monorepo-boilerplate","last_synced_at":"2025-08-10T16:37:56.603Z","repository":{"id":76858562,"uuid":"167436263","full_name":"jenbuzz/monorepo-boilerplate","owner":"jenbuzz","description":"Monorepo-Boilerplate using Yarn Workspaces and Lerna","archived":false,"fork":false,"pushed_at":"2019-01-24T21:20:59.000Z","size":36,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-11T17:50:38.072Z","etag":null,"topics":["lerna","monorepo","monorepo-example","yarn-workspaces"],"latest_commit_sha":null,"homepage":"","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/jenbuzz.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":"2019-01-24T20:54:54.000Z","updated_at":"2023-11-05T11:02:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"f391c1f7-1140-461f-ad69-858eb6d6c875","html_url":"https://github.com/jenbuzz/monorepo-boilerplate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jenbuzz/monorepo-boilerplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jenbuzz%2Fmonorepo-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jenbuzz%2Fmonorepo-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jenbuzz%2Fmonorepo-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jenbuzz%2Fmonorepo-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jenbuzz","download_url":"https://codeload.github.com/jenbuzz/monorepo-boilerplate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jenbuzz%2Fmonorepo-boilerplate/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269754070,"owners_count":24470514,"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","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["lerna","monorepo","monorepo-example","yarn-workspaces"],"created_at":"2024-11-14T18:26:22.764Z","updated_at":"2025-08-10T16:37:56.535Z","avatar_url":"https://github.com/jenbuzz.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# monorepo-boilerplate\nThis project serves as a boilerplate for setting up a monorepo using Yarn Workspaces and Lerna.\n\n## Usage\nRun 'client' package which uses 'shared' package:\n```\n$ node packages/client/index.js\n```\n\nRun 'server' package which uses 'shared' package:\n```\n$ node packages/server/index.js\n```\n\nRun 'test' script in all packages with one command from root:\n```\n$ yarn test\n```\n\n## How was this created?\n\n* Create package.json with ```\"private\": true``` and ```\"workspaces\": [\"packages/*\"]```.\n* Create folder 'packages' with the subfolders: 'client', 'server', and 'shared'.\n* Run ```yarn init -y``` in all packages subfolders.\n* Add 'shared' as a dependency in package.json in 'client' and 'server' folders.\n* Run ```yarn install```.\n* Create an index.js file with a function in 'shared' folder.\n* Create an index.js file in both 'client' and 'server' folders which requires 'shared'.\n* Run ```yarn add -D -W lerna``` from root to add Lerna.\n* Run ```npx lerna init``` to setup Lerna.\n* Add ```\"npmClient\": \"yarn\"``` and ```\"useWorkspaces\": true``` to lerna.json.\n* Add test script that runs lerna to package.json in root.\n* Add test script to package.json in all packages folders.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjenbuzz%2Fmonorepo-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjenbuzz%2Fmonorepo-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjenbuzz%2Fmonorepo-boilerplate/lists"}