@sunrise-upc/mobile-prod-card
v4.6.1-beta.15
Published
Starter project to create reusable functional component
Downloads
2,546
Maintainers
Keywords
Readme
README
Reusable Func Component
Starter code base to create a reusable functional react component for the sunrise b2c digital development team.
What is this repository for?
- Summary
- Typescript & Rollup are used to create and bundle the reusable components.
- Version
- v1.0.0
How do I get set up?
- 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
}
]
Upload into private NPM package
- before upload the package into NPM repo. Please connect with Leads