https://github.com/dzek69/ts-library-template
A template for writing next awesome TypeScript library/project.
https://github.com/dzek69/ts-library-template
cjs commonjs compatibility esm esmodules generator mjs npm npm-package template typescript
Last synced: 4 months ago
JSON representation
A template for writing next awesome TypeScript library/project.
- Host: GitHub
- URL: https://github.com/dzek69/ts-library-template
- Owner: dzek69
- License: mit
- Created: 2020-11-07T21:58:57.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2025-01-17T21:48:25.000Z (over 1 year ago)
- Last Synced: 2025-10-11T12:08:08.607Z (8 months ago)
- Topics: cjs, commonjs, compatibility, esm, esmodules, generator, mjs, npm, npm-package, template, typescript
- Language: TypeScript
- Homepage:
- Size: 1.68 MB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
A template for writing next awesome TypeScript library/project.
## The idea
The idea behind this project is to provide a ready-to-use base for writing a library or end project in TypeScript, with
all the tools needed without days wasted on Googling random error messages produced by TS/JS ecosystem hell.
See also JS-only, previous project: [js-library-template][1]. This project should replace it.
## Usage
Install `ts-library-template` globally.
### Create new library:
- `tslib ` and answer some questions to create your project.
### Upgrade library after upgrading `ts-library-template`:
- `tslib ` and maybe accept upgrade if needed.
Upgrades are not always fully compatible, especially if you change some configuration, everything should be however easy
to fix.
### Upgrade existing non-React library to React library:
- `tslib --jsx`
### License
MIT
[1]: https://www.npmjs.com/package/js-library-template