{"id":13793335,"url":"https://github.com/yannvr/react-components-cli","last_synced_at":"2025-05-12T20:30:56.098Z","repository":{"id":227759968,"uuid":"164839251","full_name":"yannvr/react-components-cli","owner":"yannvr","description":"React command line template generator ","archived":false,"fork":false,"pushed_at":"2022-12-03T03:50:07.000Z","size":260,"stargazers_count":15,"open_issues_count":7,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-19T15:13:19.486Z","etag":null,"topics":["command-line","plop","react","react-cli","react-component-cli","react-components-cli","styled-component","styled-component-cli","template"],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/yannvr.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}},"created_at":"2019-01-09T10:14:26.000Z","updated_at":"2024-06-23T01:56:31.000Z","dependencies_parsed_at":"2024-03-15T02:48:55.222Z","dependency_job_id":"9b5dac4e-8a8d-4a8a-af08-3d0cc4ee0cb4","html_url":"https://github.com/yannvr/react-components-cli","commit_stats":{"total_commits":47,"total_committers":3,"mean_commits":"15.666666666666666","dds":"0.34042553191489366","last_synced_commit":"3d3d76a03df26627fc5285e8b5540410260618ae"},"previous_names":["yannvr/react-components-cli","yannvr/react-templates"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yannvr%2Freact-components-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yannvr%2Freact-components-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yannvr%2Freact-components-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yannvr%2Freact-components-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yannvr","download_url":"https://codeload.github.com/yannvr/react-components-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253816674,"owners_count":21968864,"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","plop","react","react-cli","react-component-cli","react-components-cli","styled-component","styled-component-cli","template"],"created_at":"2024-08-03T23:00:19.008Z","updated_at":"2025-05-12T20:30:55.755Z","avatar_url":"https://github.com/yannvr.png","language":"HTML","readme":"## React styled component generator\n\n\"Automate every single boring and repetitive tasks\" -- DevOps Handbook\n\nCreate a styled component with test (Jest ready) including optionals story and style\ncomponent. Supports Typescript.\n\nCreate components based on the following structure (example given in js)\n- `src/components/new-component/index.jsx`\n- `src/components/new-component/test.jsx`\n- `src/components/new-component/story.js` (optional)\n- `src/components/new-component/style.js` (optional)\n\n### Installation\n- `yarn global add react-components-cli`\n\nNote: You will need to add yarn global bin to your path like adding `export PATH=\"$(yarn global bin):$PATH\"` in your .bashrc or .zshrc (or whatever on windows)\n\n### Usage\n- Create any components type using prompts: \n    - `create-component` (note: if global not found, add `yarn global dir` to your PATH)\n### Examples\n\n- `create-component -- --name FunctionComponent  --directory src/components --componentType stateless --styled true --story false --componentCase camel` \nwill create a function component `\u003cFunctionComponent /\u003e` in `src/component/profile` including test and story files\n\n![screen recording](http://g.recordit.co/XMuQeSSrgy.gif)\n\n### TODO\n- Cypress template\n\nNote: the template can generate unstyled component but you'll just have to remove styled component references.\nPR welcome for different handling templates with other conventions/libraries\n","funding_links":[],"categories":["HTML"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyannvr%2Freact-components-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyannvr%2Freact-components-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyannvr%2Freact-components-cli/lists"}