
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
react-type-cli
Advanced tools
CLI tool for React + Redux with Typescript
support "ducks mode"
├── src
│ └── ducks
│ ├── auth
│ │ ├── actions
│ │ └── reducers
│ │
│ └── product
│ ├── actions
│ └── reducers
│
│── package.json
support "common mode"
├── src
│ ├── actions
│ └── reducers
│
│── package.json
generating components (class/function)
generating actions
generating reducers automatically for action
generating sagas automatically for action
generating selectors file with reselect
generating stories file with storybook
$ npm i -g react-type-cli
Create a .rtcrc file in your root directory to configure cli.
{
"componentsPath": "src/components",
"actionsPath": "src/actions",
"reducersPath": "src/reducers",
"sagasPath": "src/sagas",
"selectorsPath": "src/selectors",
"ducksPath": "ducks",
"withSaga": true,
"withReselect": true,
"initialState": {
"data": null,
"error": null,
"loading": false
},
"rootState": "AppState"
}
componentsPath - place for your common componentsducksPath if you are using "ducks mode"actionsPath, reducersPath, sagasPath, selectorsPath if you are using "common mode"withSaga if you are using redux-sagawithReselect if you are using reselectinitialState common initial state objectrootState root state type interfaceGenerate component with rtc gc ComponentName command.
Note: By default component will be created in the same dir command was called from
-g - create common component-f - create function component-m - with React.memo-c - with Redux.connect--stories - with storybook storiesGenerate duck with rtc gd auth command.
Generate action with rtc ga fetchUserData auth command.
-p - call actions with payload argument
-e - call error actions with error argument
--no-reducer - do not create reducer for this action
--no-saga - do not create saga for this action
FAQs
CLI tool for React + Redux with Typescript
The npm package react-type-cli receives a total of 1 weekly downloads. As such, react-type-cli popularity was classified as not popular.
We found that react-type-cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.