This is a yeoman generator for a faster client side development
Run from your terminal:
npm install yo -g
npm isntall generator-client-swag -g
yo client-swag:component {{ComponentName}}
Will create next file structure:
+-- {{component-name}}
| -- index.js
| -- {{compnent-name}}.jsx
| -- {{compnent-name}}.spec.jsx
| -- {{compnent-name}}.scss
Adding --skip-test option will skip test file.
yo client-swag:component {{ComponentName}} --skip-test
Will create next file structure:
+-- {{component-name}}
| -- index.js
| -- {{compnent-name}}.jsx
| -- {{compnent-name}}.scss
yo client-swag:container {{ConteinerName}}
Will create next file structure:
+-- {{component-name}}
| -- index.js
| -- {{compnent-name}}.jsx
| -- {{compnent-name}}.spec.jsx
| -- {{compnent-name}}.scss
Adding --skip-test option will skip test file.
yo client-swag:container {{ConteinerName}} --skip-test
Will create next file structure:
+-- {{component-name}}
| -- index.js
| -- {{compnent-name}}.jsx
| -- {{compnent-name}}.scss
yo client-swag:redux {{sliceName}}
Will create next file structure:
+-- {{slice-name}}
| -- {{slice-name}}.reducor.js
| -- {{slice-name}}.actions.js
| -- {{slice-name}}.selectors.js
| -- {{slice-name}}.dispatchers.js