@showbie/backpack-react
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

Note: Further versions of this package will be published to the GitHub Package registry.

🎒 React

React components for Showbie’s Backpack design system.

Developing

TSDX scaffolds your new library inside /src, and also sets up a Parcel-based playground for it inside /example.

The recommended workflow is to run TSDX in one terminal:

npm start # or yarn start

This builds to /dist and runs the project in watch mode so any edits you save inside src causes a rebuild to /dist.

Then run either example playground or storybook:

Storybook

Run inside another terminal:

yarn storybook

This loads the stories from ./stories.

NOTE: Stories should reference the components as if using the library, similar to the example playground. This means importing from the root project directory. This has been aliased in the tsconfig and the storybook webpack config as a helper.

Rollup

TSDX uses Rollup v1.x as a bundler and generates multiple rollup configs for various module formats and build settings. See Optimizations for details.

Named Exports

Per Palmer Group guidelines, always use named exports. Code split inside your React app instead of your React library.

Readme

Keywords

none

Package Sidebar

Install

npm i @showbie/backpack-react

Weekly Downloads

2

Version

1.0.1

License

ISC

Unpacked Size

66.8 kB

Total Files

41

Last publish

Collaborators

  • stormwarning
  • elidupuis
  • showbie-dev