2.0.0 • Published 11 months ago
@itsanmax/react-ui-components v2.0.0
React UI components - webpack based project
This project was generated with latest webpack 5 and React dependencies
Development server http://localhost:3000/
npm run start
build, will create dist folder with umd file
npm run build
To make available as a local global node modules inside @itsanmamx/react-ui-components. It should be one time process.
npm link
To use it inside any other project via npm link and will be available in your project node modules, run below command. It should be one time process.
npm link @itsanmax/react-ui-components
To use via npm server, use below commands. It will be available in package.json:
npm install @itsanmax/react-ui-components
To run it as a storybook, run below commands and open http://localhost:6006/ in browser
npm run storybook
References:
https://medium.com/@abuduabiodunsulaiman/setup-react-app-with-webpack-ts-and-js-da80cf3b7278
https://itnext.io/how-to-package-your-react-component-for-distribution-via-npm-d32d4bf71b4f
https://www.pluralsight.com/guides/export-reactjs-components-as-node-modules-to-npm
https://blog.bitsrc.io/sharing-react-components-across-multiple-applications-a407b5a15186
https://github.com/webpack/webpack-dev-middleware/issues/205