Yeoman generators for Space Kitty style component modlets. Specifically for React development and Meteor development; however, this pattern can be used outside of Meteor and the Space Kitty pattern.
npm install -g yo
npm install -g generator-space-kitty
This will create a full modlet in the current working directory, including:
- a React file
- a SCSS file
- a Story file
- a test file
Create a react file with BEM style class names.
Create a SCSS file with BEM style class names.
Create a story file that assumes ./YourComponentName.js
exists.
Create a test file that assumes ./YourComponentName.js
exists.