deep-ui-comp
v0.0.7-alpha
Published
Kinda Pain.
Downloads
13
Readme
Setting up this Template
Kinda Pain.
yarn init -y
Add TypeScript and React as devDeps
yarn add --dev react react-dom @types/react typescript
Add react & react-dom as peerDeeps
"peerDependencies": {
"react": "^16.8.0",
"react-dom": "^16.8.0"
},
Add Storybook
npx sb init
Add the Config in .storybook/main.js
"stories": [
"../src/**/*.stories.tsx"
],
Adding Bundler -> Rollup
yarn add --dev rollup rollup-plugin-typescript2 @rollup/plugin-commonjs @rollup/plugin-node-resolve rollup-plugin-peer-deps-external rollup-plugin-postcss postcss
To Set up Eslint & Prettier used Deepankar's Template
Scripts:
"lint": "eslint src/**",
"format": "prettier -w src/**"