Warning! You may use this template as a general reference for structuring and configuring your repository, but please do not use it as a GitHub template outside of this organization. This repository includes automation that depends on this organization’s reusable workflows, which may and will change at any time without prior notice.
This repository contains a template for TypeScript libraries.
Template provides:
-
TypeScript development with enforced best practices, including:
- strict mode;
- composite;
- verbatim syntax;
- separation of library code and tests, connected via project references;
- and more (see
tsconfig.jsonand tsconfig reference);
-
Code linting with Eslint and typescript-eslint;
-
Code formatting with Prettier;
-
Testing, including browser mode, with Vitest;
-
Build tooling with Vite, producing the following artifacts:
-
Automated checks for pull requests and merge queue;
-
Automated release pipeline for npm that automatically bumps the version according to SemVer.
Please make sure to:
-
Change all occurrences of
lib-typescript-templateinpackage.json,package-lock.json, andvite.config.jswith the name of your repository; -
Change the name, author, license, description, and keywords in
package.json; -
Change this
README.md;
Happy hacking!