1.3.2 • Published 5 years ago
@digital-wafa/react-generator v1.3.2

react-generator 
A shared react components generator to use in digital wafa projects
Installing
npm i -g @digital-wafa/react-generatorGenerate a reusable component
rg-componentConfiguration
Create a react-generator-config.js at the root of your project to override default config.
Default configuration
module.exports = {
projectName: 'default',
typescript: true
};This generator allows to create two kind of React components (Smart & Dump)
Component folder structure :
index.{ts|js}
<Component name>.module.css
<Component name>.test.js
<Component name>.{tsx|jsx}Container folder structure :
index.{ts|js}
<Component name>.module.css
<Component name>.slice.{ts|js}
<Component name>.saga.{ts|js}
<Component name>.{tsx|jsx}
Tests/<Component name>.test.js