member-berries-react v0.3.20
:grapes: Member Berries v0.3.10 :grapes:
A module for scaffolding out your React App's Components & Store files. Inspired by the "Member Berries" of SouthPark.
Installation.
Using npm:
$ npm install react-member-berries --save
Usage in Terminal:
make sure you've created your member.berry
file, look below for explanation.
$ member-berries
To force a rebuild:
$ member-berries-rebuild
Create your member.berry
config file (a JSON file with the following keys: settings, components, stores, and constants):
{
"settings" : {
"directory" : "./app"
},
"components": [
{
"name" : "Nav",
"type" : "pure"
},
"Layout",
"TestScreen"
],
"stores": [
"MainStore"
],
"constants" : [
"App"
]
}
This member.berry
config file would create an './app' directory with the following folder structure:
/app/
|
|--- components/
|--- constants/
|--- stores/
|--- utils/
Sections
Components:
Each component you list can have the following options:
{
"name" : "", // The Name of the Component
"type" : "", // default|pure
"dependencies" : [
{ "name" : "", "dependency" : "" }, // Dependency with alias.
"Layout" // Default dependency, no alias
],
"methods" : [""], // A list of method names to include in the component.
"store" : {} //
}
Licensed under MIT License.
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago