easy-redux-gen
v1.3.3
Published
Easily generate Redux components.
Downloads
4
Readme
node-easy-redux-gen
Table of Contents
- Introduction
- Requirements
- Recommended modules
- Installation
- Usage
- Maintainers
- Development
- Contributing
- License
- Code of Conduct
Introduction
A Node executable to create React/Redux applications and components. Currently supports the creation of React components, reducers, middleware, actions, services and a project template.
Requirements
Recommended Modules
This package was developed using Yarn, an alternative to npm. The following are necessary to run the test suite.
Installation
yarn add easy-redux-gen
or
npm install --save easy-redux-gen
Usage
Create a new React/Redux project with the init
or i
action. This action will not overwrite existing directories.
easy-redux-gen init my-new-app
Will create a new directory named my-new-app
which will contain a basic React/Redux installation. Run yarn install
to install dependencies.
Create a new React/Redux component with the generate
or g
action. The supported components are:
reducer
middleware
action
service
component (React component)
easy-redux-gen generate reducer auth
Will create a new directory named auth.js
in the src/reducers
directory.
Destroy a component using the destroy
or d
action.
easy-redux-gen destroy reducer auth
Will destroy the file auth.js
in the src/reducers
directory.
Maintainers
Solely maintained by Esteban Hernández. Open to contributions. Use freely at your own risk.
Development
After checking out the repo, run yarn install
to install dependencies. Then, run yarn test
to run the tests.
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/LySofDev/redux_gen. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
License
The package is available as open source under the terms of the MIT License.
Code of Conduct
Everyone interacting in the node-duplicate-directory project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.d P