A boilerplate to develop npm modules with typescript.
To install this boilerplate, clone the repository in your machine and run npm install
.
You will find three folders.
- example - This folder has the react environment used for testing in development.
- dist - This is the production build folder.
- src - This is the development folder, here you have a index.tsx with a test component.
From the example folder run npm install
and npm start
Simply run npm run build
from the root directory.
- Change package name, version, description and those fields that describe your package.
- Log with
npm login
and publish withnpm publish
ornpm publish --access public
- Improve things.
- Further testing.