1.0.1 • Published 3 years ago
npm-module-typescript-boilerplate v1.0.1
npm-module-typescript-boilerplate
A boilerplate to develop npm modules with typescript.
Installation
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.
Testing
From the example folder run npm install
and npm start
Build
Simply run npm run build
from the root directory.
Publish
- Change package name, version, description and those fields that describe your package.
- Log with
npm login
and publish withnpm publish
ornpm publish --access public
TODO
- Improve things.
- Further testing.