README
@codotype/ui
:desktop_computer: Codotype UI components - built with React + Typescript
Getting Started
Run the following commands to install dependencies and start developing
yarn install
yarn storybook
Scripts
yarn dev- runwebpackinwatchmodeyarn storybook- runs the Storybook serveryarn build- builds the NPM packageyarn test -u- runs Jest + updates test snapshotsyarn lint- runs EsLintyarn prettify- runs Prettier
Notes
Includes ESLint configured to work with TypeScript and Prettier.
Includes tests with Jest - note that the
babel.config.jsand associated dependencies are only necessary for Jest to work with TypeScript.Recommended to use
Visual Studio Codewith theFormat on Savesetting turned on.Includes Storybook configured to work with React + TypeScript. Note that it maintains its own
webpack.config.jsandtsconfig.jsonfiles. See example story insrc/**/__tests__/*.stories.tsx
Built with
Misc. References