{"id":15645127,"url":"https://github.com/garmeeh/lerna-starter","last_synced_at":"2025-07-23T11:36:39.292Z","repository":{"id":26225683,"uuid":"107704056","full_name":"garmeeh/lerna-starter","owner":"garmeeh","description":"Simple React UI Development environment boilerplate to develop, test and publish your React components.","archived":false,"fork":false,"pushed_at":"2023-01-26T10:31:24.000Z","size":4071,"stargazers_count":55,"open_issues_count":16,"forks_count":17,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-30T11:11:56.543Z","etag":null,"topics":["babel7","component-library","lerna","react","react-components","storybook"],"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/garmeeh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-10-20T16:57:34.000Z","updated_at":"2023-09-10T11:04:25.000Z","dependencies_parsed_at":"2023-02-14T16:20:16.471Z","dependency_job_id":null,"html_url":"https://github.com/garmeeh/lerna-starter","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/garmeeh%2Flerna-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garmeeh%2Flerna-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garmeeh%2Flerna-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garmeeh%2Flerna-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/garmeeh","download_url":"https://codeload.github.com/garmeeh/lerna-starter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251343400,"owners_count":21574357,"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":["babel7","component-library","lerna","react","react-components","storybook"],"created_at":"2024-10-03T12:04:40.623Z","updated_at":"2025-04-28T16:23:39.087Z","avatar_url":"https://github.com/garmeeh.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Component Library Publishing Starter\n\n## Getting Started\n\n1. Clone the project: `git clone git@github.com:garmeeh/lerna-starter.git`\n2. Setup project: `npm install`\n3. Run `npm run start`\n\nRunning `npm run start` will:\n\n1.) Spin up Storybook. You can then navigate to [http://localhost:9001/](http://localhost:9001/) and you will be able to see the example packages showcased in Storybook.\n\n2.) Will run the build script in watch mode. This means any changes made in the packages folder will be built and updated in Storybook.\n\n## Publishing\n\nTo build and publish your packages you just need to run:\n\n```\nnpm run publish-packages\n```\n\n(You will need to be logged into npm)\n\nThis will run the build script and then publish your packages. It is currently set to publish each package individually so that their versions are independent.\n\nYou can find the full options for publishing [here](https://github.com/lerna/lerna/tree/master/commands/publish#readme) so that you can tailor to your exact needs. But for most cases the current set up will be enough.\n\n## Tests\n\nThis project comes with [Jest](https://jestjs.io/) and [React Testing Library](https://github.com/kentcdodds/react-testing-library) set up for you.\n\nTo run all tests and generate a coverage report simply run:\n\n```\nnpm run test\n```\n\nWhile developing you can also run tests in watch mode by running:\n\n```\nnpm run test:watch\n```\n\n## Export Static Storybook\n\nStorybook gives a great developer experience with its dev time features, like instance change updates via Webpack’s HMR.\n\nBut Storybook is also a tool you can use to showcase your components to others.\n\nFor that, Storybook comes with a tool to export your storybook into a static web app. Then you can deploy it to GitHub pages or any static hosting service.\n\nSimply run:\n\n```\nnpm run export-static-storybook\n```\n\nThis will build the storybook configured in the Storybook directory into a static web app and place it inside the .out directory. Now you can deploy the content in the .out directory wherever you want.\n\nTo test it locally, simply run the following commands with Python HTTP Server:\n\n```\ncd .out\npython -m SimpleHTTPServer\n```\n\nor Node HTTP Server:\n\n```\nnpm install http-server -g\ncd .out\nhttp-server\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgarmeeh%2Flerna-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgarmeeh%2Flerna-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgarmeeh%2Flerna-starter/lists"}