{"id":16594637,"url":"https://github.com/antonybudianto/react-lib-scripts","last_synced_at":"2025-10-29T12:30:25.838Z","repository":{"id":57333866,"uuid":"137646813","full_name":"antonybudianto/react-lib-scripts","owner":"antonybudianto","description":"🛠️ All-in-one CLI for building React Library","archived":false,"fork":false,"pushed_at":"2018-09-08T01:07:58.000Z","size":82,"stargazers_count":11,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-30T01:01:59.418Z","etag":null,"topics":["cli","library","oclif","react","reactjs","scripts"],"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/antonybudianto.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-17T10:32:28.000Z","updated_at":"2023-01-26T07:39:38.000Z","dependencies_parsed_at":"2022-08-29T10:10:35.321Z","dependency_job_id":null,"html_url":"https://github.com/antonybudianto/react-lib-scripts","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/antonybudianto%2Freact-lib-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonybudianto%2Freact-lib-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonybudianto%2Freact-lib-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonybudianto%2Freact-lib-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/antonybudianto","download_url":"https://codeload.github.com/antonybudianto/react-lib-scripts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219857801,"owners_count":16556055,"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":["cli","library","oclif","react","reactjs","scripts"],"created_at":"2024-10-11T23:47:00.965Z","updated_at":"2025-10-29T12:30:25.461Z","avatar_url":"https://github.com/antonybudianto.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"react-lib-scripts\n=================\n\nAll-in-one CLI for building React Library\n\n[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)\n[![Version](https://img.shields.io/npm/v/react-lib-scripts.svg)](https://npmjs.org/package/react-lib-scripts)\n[![Downloads/week](https://img.shields.io/npm/dw/react-lib-scripts.svg)](https://npmjs.org/package/react-lib-scripts)\n[![License](https://img.shields.io/npm/l/react-lib-scripts.svg)](https://github.com/antonybudianto/react-lib-scripts/blob/master/package.json)\n\nYou can check [react-lib-starter](https://github.com/antonybudianto/react-lib-starter) for the usage.\n\n\u003c!-- toc --\u003e\n* [Stacks](#stacks)\n* [Usage](#usage)\n* [Commands](#commands)\n* [Customize](#customize)\n* [Blog](#blog)\n\u003c!-- tocstop --\u003e\n# Stacks\nTech stacks used:\n- CLI\n  - OCLIF\n- Bundler\n  - Webpack 4\n    - css-loader, iso-morphic-style-loader\n    - postcss-loader (autoprefixer)\n    - url-loader (all images will be base64)\n    - webpack-node-externals\n  - Babel\n\n# Usage\n```sh-session\n$ npm install -D react-lib-scripts\n```\n\n```\nYou can put the command as npm scripts.\n\"start\": \"react-lib-scripts start\",\n\"build\": \"react-lib-scripts build\"\n\nNote:\n- Node 8+ supported\n- `NODE_ENV` environment variable is required.\n```\n\n```\nSet following fields on your package.json\n\"main\": \"lib/index.js\",\n\"files\": [\n  \"lib\",\n  ...\n],\n```\n\n# Commands\n\u003c!-- commands --\u003e\n* [`react-lib-scripts build`](#react-lib-scripts-build)\n* [`react-lib-scripts help [COMMAND]`](#react-lib-scripts-help-command)\n* [`react-lib-scripts start`](#react-lib-scripts-start)\n\n## `react-lib-scripts build`\n\nCreate library bundle\n\n```\nUSAGE\n  $ react-lib-scripts build\n\nDESCRIPTION\n  ...\n  Create library bundle\n```\n\n_See code: [src/commands/build.js](https://github.com/antonybudianto/react-lib-scripts/blob/v0.0.17/src/commands/build.js)_\n\n## `react-lib-scripts help [COMMAND]`\n\ndisplay help for react-lib-scripts\n\n```\nUSAGE\n  $ react-lib-scripts help [COMMAND]\n\nARGUMENTS\n  COMMAND  command to show help for\n\nOPTIONS\n  --all  see all commands in CLI\n```\n\n_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v2.0.5/src/commands/help.ts)_\n\n## `react-lib-scripts start`\n\nStart lib development flow\n\n```\nUSAGE\n  $ react-lib-scripts start\n\nDESCRIPTION\n  ...\n  Extra documentation goes here\n```\n\n_See code: [src/commands/start.js](https://github.com/antonybudianto/react-lib-scripts/blob/v0.0.17/src/commands/start.js)_\n\u003c!-- commandsstop --\u003e\n# Customize\n- Babel\n  - You can put `.babelrc` in the root of your package\n- Webpack\n  - Create `rls.config.js`\n  - Copy and paste following:\n    ```js\n    module.exports = {\n      modifyWebpack: (config) =\u003e config\n    }\n    ```\n- PostCSS\n  - You can put `postcss.config.js` in the root of your package\n  \n# Blog\nhttps://itnext.io/building-react-library-using-react-lib-scripts-eab6f0fd21f2\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantonybudianto%2Freact-lib-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantonybudianto%2Freact-lib-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantonybudianto%2Freact-lib-scripts/lists"}