{"id":19869669,"url":"https://github.com/yangshun/flow-monorepo","last_synced_at":"2025-07-27T06:35:25.855Z","repository":{"id":46977056,"uuid":"215236654","full_name":"yangshun/flow-monorepo","owner":"yangshun","description":"Monorepo setup for npm projects with Flow ","archived":false,"fork":false,"pushed_at":"2021-12-13T01:47:05.000Z","size":1011,"stargazers_count":7,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-01T21:16:14.253Z","etag":null,"topics":["babel","boilerplate","flow","jest","lerna","monorepo"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yangshun.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-10-15T07:38:10.000Z","updated_at":"2023-11-05T11:00:37.000Z","dependencies_parsed_at":"2022-07-26T00:32:08.082Z","dependency_job_id":null,"html_url":"https://github.com/yangshun/flow-monorepo","commit_stats":null,"previous_names":[],"tags_count":5,"template":true,"template_full_name":null,"purl":"pkg:github/yangshun/flow-monorepo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yangshun%2Fflow-monorepo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yangshun%2Fflow-monorepo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yangshun%2Fflow-monorepo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yangshun%2Fflow-monorepo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yangshun","download_url":"https://codeload.github.com/yangshun/flow-monorepo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yangshun%2Fflow-monorepo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267317586,"owners_count":24068479,"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-07-27T02:00:11.917Z","response_time":82,"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":["babel","boilerplate","flow","jest","lerna","monorepo"],"created_at":"2024-11-12T16:06:28.249Z","updated_at":"2025-07-27T06:35:25.823Z","avatar_url":"https://github.com/yangshun.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flow Monorepo\n\nTemplate repository to demonstrate how to set up a monorepo with Flow. Other tools include:\n\n- Babel\n- ESLint\n- Flow\n- Jest\n- Lerna\n- Prettier\n- Rollup\n- Terser\n- Yarn\n\n## Getting started\n\nInstall dependencies\n\n```sh\n$ yarn\n```\n\nRename package scope. Search for `@yangshun` in the repository and make the following changes:\n\n1. Update import statements in `packages`\n1. Update the Jest/Flow config mapping in `jest.config.js` and `.flowconfig`\n\n## Directory structure\n\n```\n├── packages\n│   ├── bar\n│   │   ├── __tests__\n│   │   │   └── bar.test.js\n│   │   ├── src\n│   │   │   └── index.js\n│   │   └── package.json\n│   └── foo\n│       ├── __tests__\n│       │   └── foo.test.js\n│       ├── src\n│       │   └── index.js\n│       └── package.json\n└── package.json\n```\n\n## Commands\n\n- `yarn build` - Runs rollup on all packages to build bundles for each environment\n- `yarn check-all` - Runs all necessary checks, tests and builds. Useful for CI environments\n- `yarn clean` - Removes all the rollup bundle directories in each package\n- `yarn flow` - Checks the `packages` directory for Flow violations\n- `yarn prettier` - Formats all the files in all the JS files\n- `yarn prettier:report` - Reports any formatting violations in all the JS files\n- `yarn publish-packages` - Runs Lerna publish\n- `yarn lint` - Fixes the ESLint violations in all the JS files\n- `yarn lint:report` - Reports ESLint violations in all the JS files\n- `yarn test` - Tests all the files with Jest\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyangshun%2Fflow-monorepo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyangshun%2Fflow-monorepo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyangshun%2Fflow-monorepo/lists"}