2.0.0 ⢠Published 7 years ago
red-gen v2.0.0
npm i -g red-gen Create A Feature Folder.
Run this command from inside that folder -
red-gen <Component Name>Like -
red-gen ButtonThe script will create -
Button.jsButtonContainer.jsButtonAction.jsButtonReducer.jsButtonThunk.jsButtonSelector.jsButtonTypes.jsButtonStyle.jsindex.js
And they will contain some structured boilerplate code.
š
If component name includes more than one word, then use dash(-) between them
Like -
red-gen login-buttonThe script will create -
LoginButton.jsLoginButtonContainer.jsLoginButtonAction.jsLoginButtonReducer.jsLoginButtonThunk.jsLoginButtonSelector.jsLoginButtonTypes.jsLoginButtonStyle.jsindex.js