web-tc-component-library
v1.0.0
Published
a shared component library for tc projects
Downloads
6
Readme
Web Component Library
Usage
- Install the dependencies with
npm ci
- Use
npm run storybook
for development - Use
npm run build
to compile the library to update it in external projects that have it installed locally
Adding to a project locally
- In the project folder, run
npm install <location of web-component-library>
- Update your webpack/craco config alias to use
react: path.resolve('./node_modules/react')
to ensure that the library uses the project's React path, and not its own.