Skip to content

A template for writing next awesome TypeScript library/project.

License

Notifications You must be signed in to change notification settings

dzek69/ts-library-template

Folders and files

NameName
Last commit message
Last commit date
Feb 19, 2021
Jan 17, 2025
Jan 17, 2025
Jul 8, 2023
Jul 1, 2021
Feb 19, 2021
Jun 10, 2024
Jul 25, 2022
Feb 6, 2023
Feb 6, 2023
Jan 17, 2025
Jan 8, 2021
Feb 6, 2023
May 28, 2024
Jan 17, 2025
Jan 8, 2021
Jan 17, 2025
Jul 22, 2022
Jan 17, 2025
Jul 7, 2023
Jul 7, 2023
Jan 17, 2025
Jul 7, 2023
Jan 17, 2025
Jun 10, 2024

Repository files navigation

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. This project should replace it.

Usage

Install ts-library-template globally.

Create new library:

  • tslib <dirname> and answer some questions to create your project.

Upgrade library after upgrading ts-library-template:

  • tslib <dirname> 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 <dirname> --jsx

License

MIT