Nine Pomeranian Monsters

    member-berries-react

    0.3.20 • Public • Published

    🍇 Member Berries v0.3.10 🍇

    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.

    Keywords

    Install

    npm i member-berries-react

    DownloadsWeekly Downloads

    1

    Version

    0.3.20

    License

    MIT

    Last publish

    Collaborators

    • gabedelao