{"id":18467929,"url":"https://github.com/dimimikadze/create-react-library","last_synced_at":"2025-04-12T15:32:24.949Z","repository":{"id":39176921,"uuid":"101073079","full_name":"DimiMikadze/create-react-library","owner":"DimiMikadze","description":"React NPM library starter kit based on Facebook's create react app","archived":false,"fork":false,"pushed_at":"2023-01-04T22:19:36.000Z","size":1577,"stargazers_count":601,"open_issues_count":10,"forks_count":60,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-04-08T09:25:08.940Z","etag":null,"topics":["create-react-app","library","npm","react"],"latest_commit_sha":null,"homepage":null,"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/DimiMikadze.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-22T14:39:54.000Z","updated_at":"2025-03-07T02:37:22.000Z","dependencies_parsed_at":"2023-02-02T21:45:51.882Z","dependency_job_id":null,"html_url":"https://github.com/DimiMikadze/create-react-library","commit_stats":null,"previous_names":["udiliainc/create-react-library","dimitrimikadze/create-react-library"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DimiMikadze%2Fcreate-react-library","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DimiMikadze%2Fcreate-react-library/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DimiMikadze%2Fcreate-react-library/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DimiMikadze%2Fcreate-react-library/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DimiMikadze","download_url":"https://codeload.github.com/DimiMikadze/create-react-library/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248589807,"owners_count":21129685,"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":["create-react-app","library","npm","react"],"created_at":"2024-11-06T10:04:00.860Z","updated_at":"2025-04-12T15:32:24.927Z","avatar_url":"https://github.com/DimiMikadze.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Create React Library ![npm](https://img.shields.io/npm/dm/@udilia/create-react-library) ![PRs Welcome](https://img.shields.io/badge/PRs-welcome-green.svg)\n\nCreate React NPM Library with no build configuration, based on Facebook's [Create React App](https://github.com/facebook/create-react-app). We are constantly updating the repository with the updates of create-react-app, so we have all new features and bug fixes of it.\n\n## Quick Overview\n\n```sh\nnpx @udilia/create-react-library my-lib\ncd my-lib\nnpm start\n```\n\n_([npx](https://medium.com/@maybekatz/introducing-npx-an-npm-package-runner-55f7d4bd282b) comes with npm 5.2+ and higher, see [instructions for older npm versions](https://gist.github.com/DimiMikadze/f984a074acea510e91b445fae9b39b44))_\n\nThen open [http://localhost:3000](http://localhost:3000) to see demo library running in the browser.\n\n## Creating a Library\n\nYou’ll need to have Node 8.16.0 or Node 10.16.0 or later version on your local development machine.\n\nTo create a new library, you may choose one of the following methods:\n\n### npx\n\n```sh\nnpx @udilia/create-react-library my-lib\n```\n\n_([npx](https://medium.com/@maybekatz/introducing-npx-an-npm-package-runner-55f7d4bd282b) comes with npm 5.2+ and higher, see [instructions for older npm versions](https://gist.github.com/DimiMikadze/f984a074acea510e91b445fae9b39b44))_\n\n### npm\n\n```sh\nnpm init @udilia/react-library my-lib\n```\n\n_`npm init \u003cinitializer\u003e` is available in npm 6+_\n\n### Yarn\n\n```sh\nyarn create @udilia/react-library my-lib\n```\n\n_`yarn create` is available in Yarn 0.25+_\n\nIt will create a directory called `my-lib` inside the current folder.\nInside that directory, it will generate the initial project structure and install dependencies.\n\n```\nmy-lib\n├── config\n├── node_modules\n├── public\n├── scripts\n├── src\n    ├── demo\n    ├── lib\n├── .gitignore\n├── package.json\n├── README.md\n```\n\nAll library files are located inside **src/lib** folder.\n\nInside **src/demo** folder, you can test your library while developing.\n\nOnce the installation is done, you can open your project folder:\n\n```\ncd my-lib\n```\n\nInside the newly created project, you can run some built-in commands:\n\n### `npm start` or `yarn start`\n\nRuns the library in development mode. Open [http://localhost:3000](http://localhost:3000) to view it in the browser.\n\n### `npm run test` or `yarn run test`\n\nRuns the test watcher in an interactive mode.\n\n### `npm run build` or `yarn build`\n\nBuilds the library for production to the `build` folder.\nIt correctly bundles React in production mode and optimizes the build for the best performance.\n\n### `npm publish`\n\nPublishes the library to NPM.\n\n## Contributing\n\nPlease read our [CONTRIBUTING.md](https://github.com/dimimikadze/create-react-library/blob/master/CONTRIBUTING.md) before submitting a Pull Request to the project.\n\n## Typescript\n\n[Adding Typescript support](https://gist.github.com/DimiMikadze/f25e1c5c70fa003953afd40fa9042517)\n\n## Troubleshooting\n\n### Usage of other libraries within your library\n\n- Add the library as a peer dependency in package.json (effectively requiring the calling project to provide this dependency)\n- Add the library as a dev dependency in package.json (effectively allowing this library to successfully build without complaining about not having this dependency)\n- Add the library to the externals config in your webpack.config file(s). By default, only react and react-dom are there, meaning that those are the only two libraries that you can use within your new shared library.\n\n## Example libraries built with Create React Library\n\nhttps://github.com/DimiMikadze/react-under-construction\n\n## License\n\n[MIT License](https://github.com/dimimikadze/create-react-library/blob/master/LICENSE.md) Copyright (c) 2019 [Dimi Mikadze](https://dimimikadze.com/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimimikadze%2Fcreate-react-library","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdimimikadze%2Fcreate-react-library","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimimikadze%2Fcreate-react-library/lists"}