0.6.1 • Published 4 years ago

generator-trybonsai v0.6.1

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

generator-trybonsai

Bonsai React component generator powered by Yeomaan

The trybonsai:component generator creates a React component directory with a Jest test file, Storybook story file and a simple Typescript base React component to speed up creating of new React components.

Installation

First, install Yeoman and generator-trybonsai using npm (we assume you have pre-installed node.js).

npm install -g yo
npm install -g generator-trybonsai

Usage

Generate a new React component folder:

yo trybonsai:component

# or specify a name directly:
yo trybonsai:component MyComponent

This will create a component directory at src/components/MyComponent with the following structure:

src/
  components/
    MyComponent/
      index.ts
      MyComponent.tsx
      MyComponent.test.tsx
      MyComponent.stories.tsx

You can optionally pass a path to place the component wherever you want:

yo trybonsai:component web/components/Foo

License

MIT © Bonsai, Inc.

Credits

Dana Woodman

0.6.1

4 years ago

0.6.0

5 years ago

0.4.0

5 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.0

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago