@sultanyaron/component-generator

0.6.2 • Public • Published

component-generator

Usage

npx @sultanyaron/component-generator

The cli is using prompt to get the component name and the required template

Templates

  • Reusable component (styles, types, tests and a story)
  • Component with test (styles, types and test)
  • Custom (Choose files)
    • Style (MyComponent.style.ts)
    • Types (MyComponent.types.ts)
    • Test (MyComponent.test.ts, myComponentSetup.ts, myComponentTestUtils.ts)
    • Story (MyComponent.story.tsx)

Contribute

  • npm install
  • npm run dev
  • npm test
  • npm link
  • use component-generator Where ever you want to test your changes
  • Update the CHANGELOG.md inside the unreleased section, please follow the CHANGELOG convention
  • Create pull request
  • Wait for CI to pass
  • Merge

Package Sidebar

Install

npm i @sultanyaron/component-generator

Weekly Downloads

1

Version

0.6.2

License

ISC

Unpacked Size

17.5 kB

Total Files

15

Last publish

Collaborators

  • yaron-sultan