1.2.3 • Published 5 years ago
ts-npm-package-crayond v1.2.3
A TypeScript bootstraped react NPM package template
Do's before development
- Change the
nameattribute in the\package.jsonto your library name. - Reset the
versionattribute to1.0.0. - Create your components in the
./src/componentsfolder.(Refer the sample components). - Export your component in the
./src/components/index.tsxfile. (Refer the sample exports). - Finally remove the unwanted sample components.
Scripts
npm run build - The will convert and bundle your TypeScript code to Vanila JavaScript.
To publish and test your package locally.
- Refer the link Step 3 to see how to test your package locally.
- Refer the link Step 4 to see how to publish your package to NPM.