- (Emotion) Styled Components
- Mantine
- Storybook
- Rollup.js
- [repo]
- [video]
- combined with:
-
[url]
- ended up taking rollup.config.js and tsconfig from here after couldn't solve some errors
- tsconfig.json modifications:
- "target": "es6"
- "allowJs": true
- "paths": { "@/": ["./"] }
- package.json
- "^@/(.*)$": "/$1" to "jest/moduleNameMapper"
- Storybook
- preview.tsx: added mantine theme from signup
- main.ts: staticDirs: ['../public'],
- copied preview-head.html from signup
- Was running into an error: "Uncaught TypeError: Cannot read properties of null (reading 'useContext').
- this library fixed the issue: rollup-plugin-peer-deps-external src
- I had issues running Storybook. Had to do the following to fix:
- Installing this fixed some errors: rollup-plugin-dts. add it to your rollup.config
- I cannot figure out how to build and publish this library if i were to put types in ts definition files (ie *.d.ts)