rocket-science
An opinionated UI Workbench featuring tools like react, styled components, typescript, webpack, jest and storybook all bundled into an easy to use interface
? Goals
- ✅ Build UI components/pages in isolation
- ✅ Display test coverage and documentation for each component
- ✅ Complete control of dynamic input values for each component for edge case testing
- ✅ Easily view all device sizes
- ✅ Performance metrics for both server and client
- ✅ ADA accessibility audit for each component
- ✅ Easily create a new component from a CLI
- ⭕ Mock API
- ✅ Client Render
- ⭕ Server Side Render
- ⭕ Static Site Generation
- ⭕ Micro Frontend Render
? Technologies
Storybook
Module Federation
Typescript
The starting point for learning TypeScript
Jest
How to Test React Components in TypeScript
▶ Getting Started
- clone repo or run npx create-rs-app
- cd into repo
- run yarn
- run yarn test
- run yarn storybook
Optional commands to push to your own git repository
- git remote set-url origin https://github.com/user/repo.git (your remote repository)
- git remote -v (verify new remote)
- git push -u origin main
? Generate New Component
- run yarn generateComponent
- provide CLI tool the name of your component
- check for the following files under ./src/components/yourComponentNameHere
- index.ts
- yourComponentNameHere.tsx
- yourComponentNameHere.styles.ts
- yourComponentNameHere.test.ts
- yourComponentNameHere.stories.tsx
- README.md
❓ Help
- Contact me via email, listed in package.json