An open API service indexing awesome lists of open source software.

https://github.com/gamemaker1/typescript-template

An opiniated Typescript + ESM project template
https://github.com/gamemaker1/typescript-template

Last synced: about 1 year ago
JSON representation

An opiniated Typescript + ESM project template

Awesome Lists containing this project

README

          

#

Opiniated Typescript + ESM Template


Github Workflow Status
GitHub Stars

## What Is This?

An opiniated template for Typescript + ESM projects.

It includes:

- [`typescript`](https://www.typescriptlang.org/) +
[`esm`](https://hacks.mozilla.org/2018/03/es-modules-a-cartoon-deep-dive/) for
writing code (compiles to esm for `node` 14+).
- [`esbuild`](https://esbuild.github.io/) +
[`dts-bundle-generator`](https://github.com/timocov/dts-bundle-generator#readme)
for blazing fast builds.
- [`jest`](https://jestjs.io/) for testing.
- [`xo`](https://github.com/xojs/xo#readme) + [`prettier`](https://prettier.io/)
for linting and formatting.
- [`husky`](https://typicode.github.io/husky/#/) +
[`lint-staged`](https://github.com/okonet/lint-staged#readme) for linting
staged files before committing them.
- [`pnpm`](https://pnpm.io/) for fast and efficient package management.
- [`wireit`](https://github.com/google/wireit) for smarter and more efficient
npm scripts.
- a [`contributing.md`](./contributing.md), [`changelog.md`](./changelog.md),
[`license.md`](./license.md) and [`readme.md`](./readme.md) file.

## How Do I Use It?

To use this template, `degit` it:

```
$ mkdir
$ pnpx degit gamemaker1/typescript-template
$ pnpm install
```

Answer a couple of questions as part of the setup process, and get coding!

## License

You can use this template for any project! The `license.md` file in this
repository IS NOT the license for this template - it is part of the template,
and you can change it as you wish.