1.0.0-rc1.2 • Published 5 years ago
postman-component-library-poc v1.0.0-rc1.2
Postman Component Library "Gambit"
This is a React based Component Library
Installation
Before Installation
Sign into NPM with @postman (failure to do so will result in errors during installation) TODO: Add Instructions here
$ npm install
Component Structure
Each component will have the same file structure so everything associated to a component is as close as possible to it.
- .jsx - is the component itself
- .spec.js - Unit Test file for Jest
- .stories.js - Used for Storybook UI
- index.js - Component export
- README.md - Detailed explaination of the component
├── src
│ ├── components
│ │ ├── Buttons
│ │ │ ├── PrimaryButton
│ │ │ │ ├── PrimaryButton.jsx
│ │ │ │ ├── PrimaryButton.spec.js
│ │ │ │ ├── PrimaryButton.stories.js
│ │ │ │ ├── index.js
│ │ │ │ ├── README.md
│ │ ├── AppBar
│ │ │ ├── AppBar.jsx
│ │ │ ├── AppBar.spec.js
│ │ │ ├── AppBar.stories.js
│ │ │ ├── index.js
│ │ │ ├── README.md
...