{"id":17741746,"url":"https://github.com/aakashns/create-component-lib","last_synced_at":"2025-06-14T22:36:06.463Z","repository":{"id":47455929,"uuid":"137226268","full_name":"aakashns/create-component-lib","owner":"aakashns","description":"Create a library of React components that can be published to npm","archived":false,"fork":false,"pushed_at":"2019-09-16T19:41:28.000Z","size":6,"stargazers_count":89,"open_issues_count":12,"forks_count":13,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-09-15T02:30:01.505Z","etag":null,"topics":["command-line","react","zero-configuration"],"latest_commit_sha":null,"homepage":"https://npmjs.com/create-component-lib","language":"Shell","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/aakashns.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":"2018-06-13T14:22:27.000Z","updated_at":"2024-07-10T17:51:25.000Z","dependencies_parsed_at":"2022-08-21T02:40:58.850Z","dependency_job_id":null,"html_url":"https://github.com/aakashns/create-component-lib","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/aakashns%2Fcreate-component-lib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aakashns%2Fcreate-component-lib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aakashns%2Fcreate-component-lib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aakashns%2Fcreate-component-lib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aakashns","download_url":"https://codeload.github.com/aakashns/create-component-lib/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249124101,"owners_count":21216624,"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":["command-line","react","zero-configuration"],"created_at":"2024-10-26T04:23:11.889Z","updated_at":"2025-04-15T17:46:35.919Z","avatar_url":"https://github.com/aakashns.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# create-component-lib\n\nCreate a library of React components that can be published to npm.\n\n**Notes:**\n- Uses `create-react-app` under the hood.\n- Inspired from [this blog post](https://hackernoon.com/creating-a-library-of-react-components-using-create-react-app-without-ejecting-d182df690c6b).\n- Currenlty tested only on Linux and Mac. \n- It's really just a [shell script](./create-component-lib). Contributions welcome!\n\n## Usage\n\nTo create a new project, run the command:\n\n```\nnpx create-component-lib my-project\n```\n\nThis sets up the project inside `my-project`.\n\nPlace everything you want to publish to npm inside `src/lib`. Outside `src/lib` (but inside `src/`), you can create example web pages to test or demonstrate the usage of your components.\n\nTo start the development server (with entry point `src/index.js`), run\n\n```\nnpm start\n```\n\nTo transpile `src/lib` and create a build in the `dist` folder, run:\n\n```\nnpm run build\n```\n\nYou can then publish it to npm using:\n\n```\nnpm publish\n```\n\nNote that only `README.md` and the `dist` folders are published to npm.\n\nTo learn more, see [this blog post](https://hackernoon.com/creating-a-library-of-react-components-using-create-react-app-without-ejecting-d182df690c6b) or this [sample libary](https://github.com/aakashns/simple-component-library).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faakashns%2Fcreate-component-lib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faakashns%2Fcreate-component-lib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faakashns%2Fcreate-component-lib/lists"}