🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

generator-trybonsai

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generator-trybonsai

Bonsai official app generators

latest
Source
npmnpm
Version
0.6.1
Version published
Maintainers
1
Created
Source

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

Keywords

remoteit

FAQs

Package last updated on 15 Jan 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts