0.0.0 ā€¢ Published 1 month ago

storybook-design-system-test-by-kevin v0.0.0

Weekly downloads
-
License
-
Repository
-
Last release
1 month ago

Welcome to design-system šŸ‘‹

Version

Design-System using Storybook.

Install

# React, Typescript
$ npm create vite@latest

# Storybook
$ npx storybook@latest init

# https://storybook.js.org/docs/builders/vite
$ npm install @storybook/builder-vite --save-dev

# https://tailwindcss.com/docs/guides/vite
$ npm install -D tailwindcss postcss autoprefixer
$ npx tailwindcss init -p

# https://www.npmjs.com/package/@fontsource/noto-sans
$ npm install @fontsource/noto-sans

# https://chromatic.com (sign-up with Github)
$ npm install --save-dev chromatic

# https://storybook.js.org/docs/writing-tests/accessibility-testing (storybook accessbility)
$ npm install @storybook/addon-a11y --save-dev
$ npm install axe-playwright --save-dev
$ npm install @storybook/test-runner --save-dev
# $ npx playwright install

# https://storybook.js.org/docs/writing-tests/interaction-testing
$ npm install @storybook/components @storybook/addons --save-dev
$ npm install @storybook/test @storybook/addon-interactions --save-dev
$ npm install @storybook/vue3 --save-dev

Usage

# project
$ npm run dev

# storybook
$ npm run storybook

# chromatic
# https://www.chromatic.com/docs/storybook/ci/
$ npx chromatic --project-token={your-token}

# tailwind css export for npm packaging (building tailwind css)
# https://tailwindcss.com/docs/installation
$ npx tailwindcss -i ./src/index.css -o ./index.css --watch
$ npm login
$ npm publish --public

Run tests

$ npm run test-storybook

What I need to know

Author

šŸ‘¤ Kevin Ahn