0.2.0 • Published 5 years ago
easy-react-ui v0.2.0
EasyUI
A design system powered by React & Typescript, supported by Storybook & React-testing-library.
Design Thinking Process
SCSSis chosen as the styling solution for this UI librarynormalize.cssis used to make browsers render all elements more consistently- SCSS variables are defined for granular style control and reusability
- Typescript is used to provide strong typing to the UI library
- Unit tests are written with the help of
React Testing Library - Create a
tsconfig.build.jsonto compile.tsxfiles for build node-sassis used to compile SCSS to CSS for buildnpm linkis used to link the UI library to a project for better local developmentnpm linkis also used to addressInvalid Hook Call Warning- Move React and React-dom packages to
peerDependenciesso user would not install duplicate React package
Available Scripts
In the project directory, you can run:
yarn build
Build the app for production in dist folder.
yarn build-css
Convert SASS to CSS for production in dist folder.
yarn build-ts
Convert Typescript to Javascript for production in dist folder.
yarn build-storybook
Build storybook stories to webpages
yarn clean
Clear up previous build output.
yarn start
Runs the app in the development mode. Open http://localhost:3000 to view it in the browser.
yarn test
Launches the test runner in the interactive watch mode.
yarn test:ci
Launches the test runner in CI mode.
yarn storybook
Launches Storybook at http://localhost:9009.
yarn lint
Lint the codebase using ESLint.
yarn format
Format the codebase using Prettier.