{"id":15828030,"url":"https://github.com/bytesleo/react-webpack-component","last_synced_at":"2026-01-31T19:34:06.760Z","repository":{"id":29784554,"uuid":"122770587","full_name":"bytesleo/react-webpack-component","owner":"bytesleo","description":"Base structure in Webpack 4 for the creation of npm modules in React.js","archived":false,"fork":false,"pushed_at":"2023-01-03T23:30:58.000Z","size":1756,"stargazers_count":3,"open_issues_count":12,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-13T11:50:00.134Z","etag":null,"topics":["modules","npm","react","react-webpack","reactjs","webpack4"],"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/bytesleo.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-02-24T19:05:10.000Z","updated_at":"2022-06-24T06:19:53.000Z","dependencies_parsed_at":"2023-01-14T15:45:31.332Z","dependency_job_id":null,"html_url":"https://github.com/bytesleo/react-webpack-component","commit_stats":null,"previous_names":["bytesleo/react-webpack-component"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bytesleo/react-webpack-component","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytesleo%2Freact-webpack-component","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytesleo%2Freact-webpack-component/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytesleo%2Freact-webpack-component/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytesleo%2Freact-webpack-component/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bytesleo","download_url":"https://codeload.github.com/bytesleo/react-webpack-component/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytesleo%2Freact-webpack-component/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28951434,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T18:30:42.805Z","status":"ssl_error","status_checked_at":"2026-01-31T18:30:19.593Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["modules","npm","react","react-webpack","reactjs","webpack4"],"created_at":"2024-10-05T10:21:24.576Z","updated_at":"2026-01-31T19:34:06.745Z","avatar_url":"https://github.com/bytesleo.png","language":"JavaScript","readme":"\n# react-webpack-component\n\n[![NPM version](https://badge.fury.io/js/react-webpack-component.svg)](https://npmjs.org/package/react-webpack-component) [![GitHub license](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](https://raw.githubusercontent.com/kevoj/role-calc/master/LICENSE)\n\n\u003e Base structure in Webpack 4 for the creation of npm modules in React\n\n### Installation\n\n**1. Clone**\n\n```bash\ngit clone https://github.com/kevoj/react-webpack-component.git your-react-component-name\ncd [your-react-component-name]\nnpm install\n```\n**2. Set name of the library**\n\nReplace in **package.json**\n\n```json\n{\n    \"name\": \"your-react-component-name\",\n    ...\n}\n```\n**3. Create Link**\n\n```bash\nnpm run build\nnpm link\n```\n\n## Development\n\n### Start\n\nWatch changes in mode development\n\n```bash\nnpm start\n```\n\n### Build\n\nCompile in mode production\n\n```bash\nnpm run Build\n```\n### Structure\n\n\u003cpre\u003e \n|-- dist/lib (Compiled)\n|   `-- index.js\n|-- src/lib (Your code here, view example in code source...)\n|   |-- Button/index.js\n|   `-- index.js\n`-- webpack.config.js\n\u003c/pre\u003e \n\n### Test the component in a project\n\n```bash\ncd Existing-React-Project\nnpm link your-react-component-name\n```\n\n### At this point you can already use your component, usage:\n\n```javascript\nimport React, { Component } from 'react';\nimport { Example } from 'your-react-component-name'\n\nclass HelloWorld extends Component {\n  render() {\n    return (\n        \u003cExample /\u003e\n    );\n  }\n}\nexport default HelloWorld;\n```\n\n## Production\n\n### Publish in NPM\n\n**1. Compile to production**\n\n```bash\nnpm run build\n```\n\n**2. Login**\n\n```bash\nnpm login\n# login with your credentials in https://www.npmjs.com/\n```\n\n**3. Upload package**\n\n**Note:** Verify your version of the component in **package.json**, you can not upload the same version twice\n\n```bash\nnpm publish\n# Available in https://www.npmjs.com/package/your-react-component-name\n```\nNow, you can install your package with:\n\n```bash\nnpm install your-react-component-name--save\n# :)\n```\n\n## License\n\nMIT © [Leonardo Rico](https://github.com/kevoj/react-webpack-component/blob/master/LICENSE)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbytesleo%2Freact-webpack-component","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbytesleo%2Freact-webpack-component","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbytesleo%2Freact-webpack-component/lists"}