React toolkit and design language for give-grants open source and internal projects.
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
Runs the project in development/watch mode.
Runs your tests using Jest in watch mode.
Runs Eslint with Prettier on all .ts and .tsx files (and js as well).
Bundles the package to the
dist
folder.
Starts storybook on port 6006.
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
- 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.
--- To be added ---
MIT © give