Giter Club home page Giter Club logo

generator-storybook-mui's Introduction

generates storybook with material-ui and styled components

The generated storybook can be used to develop, test, review and find react components which, once exported in index.js, can be directly imported in some react app. Corresponding app(s), which depends on this package, should be part of a npm workspaces setup.

If apps are build with Unidirectional Data Flow paradigm, this can help to segregate usage of local state (e.g. by react useState hook): It will not (or rarely) occure within app's code.

Also styling efforts will not (or rarely) occure in app's code.

The code of app's views is more focused on behaviour.

localization

i18next and react-i18next is used for localization

prerequisite

  • git
  • latest node and npm

usage

  1. Change into you scope directory, where your packages (of corrsesponding scope) are.
  2. Create a directory with name of your package. Convention is lower case and hyphen-separated, for instance "your-package-name":
mkdir your-package-name
  1. Change into this directory
cd your-package-name
  1. Create the scaffolding. You will be asked for some global settings, which will be saved in package.json:
npx -p @pubcore/generator-storybook-mui -p yo yo @pubcore/storybook-mui
  1. start storybook, If TLS is required (https), enable it in .env file
npm start

References

generator-storybook-mui's People

Contributors

jacklrs avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.