{"id":17182336,"url":"https://github.com/davidhu2000/react_redux_generator","last_synced_at":"2025-04-13T17:52:36.097Z","repository":{"id":57350694,"uuid":"77886510","full_name":"davidhu2000/react_redux_generator","owner":"davidhu2000","description":"A npm script for generating all parts of react and redux web application.","archived":false,"fork":false,"pushed_at":"2017-11-25T17:46:24.000Z","size":150,"stargazers_count":13,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-11T20:39:37.532Z","etag":null,"topics":["file-generator","filesystem","javascript","npm","npm-module","react","redux"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/redux-file-gen","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/davidhu2000.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-03T05:24:06.000Z","updated_at":"2023-09-06T23:32:42.000Z","dependencies_parsed_at":"2022-09-13T04:02:26.894Z","dependency_job_id":null,"html_url":"https://github.com/davidhu2000/react_redux_generator","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidhu2000%2Freact_redux_generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidhu2000%2Freact_redux_generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidhu2000%2Freact_redux_generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidhu2000%2Freact_redux_generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davidhu2000","download_url":"https://codeload.github.com/davidhu2000/react_redux_generator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248758449,"owners_count":21156957,"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":["file-generator","filesystem","javascript","npm","npm-module","react","redux"],"created_at":"2024-10-15T00:36:45.771Z","updated_at":"2025-04-13T17:52:36.068Z","avatar_url":"https://github.com/davidhu2000.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React-Redux File Generator\n\n[![npm version](https://badge.fury.io/js/redux-file-gen.svg)][npm_url]\n[![downloads](https://img.shields.io/npm/dt/redux-file-gen.svg)][npm_url]\n[![license](https://img.shields.io/npm/l/redux-file-gen.svg)][npm_url]\n[![Build Status](https://travis-ci.org/davidhu2000/react_redux_generator.svg?branch=master)](https://travis-ci.org/davidhu2000/react_redux_generator)\n[![CircleCI](https://circleci.com/gh/davidhu2000/react_redux_generator.svg?style=shield)](https://circleci.com/gh/davidhu2000/react_redux_generator)\n\n[![Code Triagers Badge](https://www.codetriage.com/davidhu2000/react_redux_generator/badges/users.svg)](https://www.codetriage.com/davidhu2000/react_redux_generator)\n[![dependencies Status](https://david-dm.org/davidhu2000/react_redux_generator/status.svg)](https://david-dm.org/davidhu2000/react_redux_generator)\n[![devDependencies Status](https://david-dm.org/davidhu2000/react_redux_generator/dev-status.svg)](https://david-dm.org/davidhu2000/react_redux_generator?type=dev)\n\n[npm_url]: https://www.npmjs.org/package/redux-file-gen\n\nThis generator helps to create the necessary files for a react-redux application. It follows the file structure below. The `frontend` folder is stored at the root directory of the application.\n\n## Installation\n\n    npm install -g redux-file-gen\n\nIn order to create the terminal command `redux`, this package needs to be installed globally.\n\n## Usage\n\n    redux [command] [fileType] [options]\n\n## File structure\n\n```file\nfrontend\n  |- actions\n    |- \u003cactionName\u003e_actions.js\n  |- components\n    |- \u003ccomponentName\u003e\n      |- \u003ccomponentName\u003e.jsx\n      |- index.jsx\n    |- app.jsx\n    |- root.jsx\n  |- reducers\n    |- root_reducer.js\n    |- \u003creducerName\u003e_reducer.js\n  |- store\n    |- store.js\n  |- util\n    |- \u003cutilName\u003e_util.js\n  |- \u003cprojectName\u003e.jsx\n```\n\n## Commands\n\n| Command     | Alias | Function                    |\n|-------------|-------|-----------------------------|\n| `generate`  | `g`   | use the file generator      |\n| `remove`    | `r`   | remove the generated files  |\n| `--help`    | `-h`  | see available commands      |\n| `--version` | `-v`  | see current package version |\n\n## FileTypes\n\n| FileType                                 | Function                                                            |\n|------------------------------------------|---------------------------------------------------------------------|\n| `base \u003cprojectName\u003e`                     | generate `app.jsx`, `root.jsx`, `\u003cprojectName\u003e.jsx`, and `store.js` |\n| `action \u003cname\u003e [action1] [action2] ...`  | generate `\u003cname\u003e_actions.js` with specified actions                 |\n| `component \u003cname\u003e [options]`             | generate `\u003cname\u003e.jsx` and `\u003cname\u003e_container.jsx`                    |\n| `reducer \u003cname\u003e [action1] [action2] ...` | generate `\u003cname\u003e_reducer.js`                                        |\n| `util \u003cname\u003e [util1] [util2] ...`        | generate `\u003cname\u003e_util.js` with specified utils                      |\n\n## Options\n\n| Option           | Alias | Function                          |\n|------------------|-------|-----------------------------------|\n| `--functional`   | `-f`  | create functional component       |\n| `--no-container` | `-nc` | do not create component container |\n\n## For more details regard different types of files\n\n- [Base](docs/base.md)\n- [Action](docs/action.md)\n- [Component](docs/component.md)\n- [Reducer](docs/reducer.md)\n- [Store](docs/store.md)\n- [Utility](docs/util.md)\n\n## Version notes\n\nTo see what features are added during each update, click [here](docs/update_notes.md)\n\n## Contributing\n\nTo request a feature or report an issue, click [here](https://github.com/davidhu2000/react_redux_generator/issues).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidhu2000%2Freact_redux_generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidhu2000%2Freact_redux_generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidhu2000%2Freact_redux_generator/lists"}