https://github.com/ysuzuki19/npm-package-template
Template repository for typescript/npm-package/auto-publish/rollup
https://github.com/ysuzuki19/npm-package-template
library npm-package react rollup template typescript
Last synced: 3 months ago
JSON representation
Template repository for typescript/npm-package/auto-publish/rollup
- Host: GitHub
- URL: https://github.com/ysuzuki19/npm-package-template
- Owner: ysuzuki19
- License: mit
- Created: 2022-02-22T13:38:42.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-02-20T15:06:06.000Z (over 1 year ago)
- Last Synced: 2025-04-15T01:45:52.261Z (about 1 year ago)
- Topics: library, npm-package, react, rollup, template, typescript
- Language: JavaScript
- Homepage:
- Size: 771 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# npm package template
Template repository for npm package
- typescript
- 👁️public npm package
- auto publish with github workflow
- rollup
- (optional) for react
# setup
- exec `npm init`
- set `NPM_TOKEN` in your github repository (in Github, `Settings/Secrets/Actions/New repository secret`)
- rewrite `LibraryName` to your library-name in `rollup.config.js`.
## Optional
- if you develop react library, please uncomment some `external: ['react']`,`globals: { react: 'react' }` in `rollup.config.js`
- replace `LICENSE`
# how to publish
1. click `Create a new release`
1. click `Choose a tag` and create new tag for your release
1. write `Release title`
1. write `Describe this release`
1. click `Publish release`
1. 🚀 auto start workflow and publish!!