1.2.3 • Published 4 years ago
ts-npm-package-crayond v1.2.3
A TypeScript bootstraped react NPM package template
Do's before development
- Change the
name
attribute in the\package.json
to your library name. - Reset the
version
attribute to1.0.0
. - Create your components in the
./src/components
folder.(Refer the sample components). - Export your component in the
./src/components/index.tsx
file. (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.