{"id":16597254,"url":"https://github.com/adrianmcli/react-build-lib","last_synced_at":"2025-03-06T19:32:42.544Z","repository":{"id":73736837,"uuid":"77357623","full_name":"adrianmcli/react-build-lib","owner":"adrianmcli","description":"A simple utility for compiling your React components to CommonJS modules.","archived":false,"fork":false,"pushed_at":"2016-12-29T11:59:47.000Z","size":41,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-17T04:44:24.353Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adrianmcli.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-12-26T04:23:45.000Z","updated_at":"2019-01-15T03:20:33.000Z","dependencies_parsed_at":"2023-04-01T10:35:23.817Z","dependency_job_id":null,"html_url":"https://github.com/adrianmcli/react-build-lib","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrianmcli%2Freact-build-lib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrianmcli%2Freact-build-lib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrianmcli%2Freact-build-lib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrianmcli%2Freact-build-lib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adrianmcli","download_url":"https://codeload.github.com/adrianmcli/react-build-lib/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242274660,"owners_count":20101085,"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":[],"created_at":"2024-10-11T23:55:21.294Z","updated_at":"2025-03-06T19:32:42.519Z","avatar_url":"https://github.com/adrianmcli.png","language":"JavaScript","readme":"# react-build-lib\nA simple utility for compiling your React components to CommonJS modules.\n\n\u003e Ideally, you should never need to touch Webpack and Babel if all you want to do is to make and publish React components.\n\nThis utility uses Babel presets: `react`, `latest`, and `stage-3`.\n\n# How to use\n\n1. Install the package with either `yarn` or `npm`:\n\n  ```bash\n  yarn add --dev react-build-lib\n  npm install --save-dev react-build-lib  # or use npm\n  ```\n\n2. Add the following script to your `package.json` file:\n\n  ```json\n  \"scripts\": {\n    \"build:lib\": \"react-build-lib\"\n  }\n  ```\n3. Now, everytime you run `npm run build:lib`, babel will compile all your javascript files in your `src` folder and output a `lib` folder. By default, it will also copy over any other files.\n\n**Note:** You can also set your source and ouput directories by providing two additional arguments:\n\n```\nreact-build-lib src lib\n```\n# Also see\n\n[React Build Dist](https://github.com/adrianmcli/react-build-dist)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadrianmcli%2Freact-build-lib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadrianmcli%2Freact-build-lib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadrianmcli%2Freact-build-lib/lists"}