Starter code base to create a reusable functional react component for the sunrise b2c digital development team.
- Summary
- Typescript & Rollup are used to create and bundle the reusable components.
- Version
- v1.0.0
- Summary of set up for new
- Clone the code from this repo and remove this project references from files like package.json and rollup.config.mjs
-
package.json
- Please change the name and dependency details based on the your requirment
- add the peerDependency based on the your requirment
-
rollup.config.mjs
- change the name in output configuration
output:[
{
file:'dist/cjs/index.js',
format:'cjs',
sourcemap:true,
name:'sunrise-fun-comp-lib'
},
{
file:"dist/esm/index.js",
format:'esm',
sourcemap:true
}
]
- before upload the package into NPM repo. Please connect with Leads