give-infinity-gems
v2.7.2
Published
The centralized React component library for give-grants apps.
Downloads
14
Readme
GiveGrants Design System
React toolkit and design language for give-grants open source and internal projects.
Tech Stack
Building components
- Storybook for UI component development and auto-generated docs
- Tailwind CSS with twind for component-scoped styling
- React for declarative component centric UI
- Prettier and ESLint for automatic code formatting and static testing
Maintaining the system
- NPM for packaging and distribution
- TypeScript for static type definitions
- Jest and testing-library for unit testing components
- TSDX for setup and build
Development Script
npm run start
Runs the project in development/watch mode.
npm run test:watch
Runs your tests using Jest in watch mode.
npm run lint
Runs Eslint with Prettier on all .ts and .tsx files (and js as well).
npm run start
Bundles the package to the
dist
folder.
npm run storybook
Starts storybook on port 6006.
Sanity Check with Sandbox
Although you can develop a component using storybook locally but if you wish to playaround and test any component in the broswer then
- Build the code with
npm build
- Move to sandbox folder and install the dependencies (first time)
cd sandbox && npm i
- Next import the component to the
index.tsx
file - Start the development server with
npm start
and then visithttp://localhost:1234
Instructions
- The
baseUrl
is set to "src" in thetsconfig.json
, hence you can import modules from path relative to thesrc
. - Please install Prettier and Eslint plugins for VSCode and use the recommended settings provided for a better DX.
Contribution Guideline
--- To be added ---
License
MIT © give