This library is to be build using rollup and will be installed as a npm packakge to another Reactjs app.
how to use the installed library can be found in this repo: https://github.com/ViduraAdikari/consumer-comp-lib-mui5-sample.git
This project was bootstrapped with Create React App.
In the project directory, you can run:
Build app using rollup.
output of rollup build located in /dist
folder.
package module to install on another React app.
output of the package (comp-lib-mui5-sample-x.x.x.tgz
) will be located in root
folder.
you can change the version of the package by changing "version": "x.x.x" in package.json
- Copy Absolute path of comp-lib-mui5-sample-x.x.x.tgz
- Open terminal for consumer app and run
npm i [copied absolute path]
- For usage check consumer app here.
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
Note: this is a one-way operation. Once you eject
, you can’t go back!
You can learn more in the Create React App documentation.
To learn React, check out the React documentation.