Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/peterthehan/typescript-bootstrap

An opinionated TypeScript bootstrap template.
https://github.com/peterthehan/typescript-bootstrap

bootstrap default eslint jest node node-js nodejs opinionated project template typescript

Last synced: 25 days ago
JSON representation

An opinionated TypeScript bootstrap template.

Awesome Lists containing this project

README

        

# TypeScript Bootstrap

An opinionated TypeScript bootstrap template.

## Getting started

1. Run the following commands to bootstrap a TypeScript project in your working directory:

> Replace `my-typescript-project` in the commands below with your own preferred project name!

```
npx degit peterthehan/typescript-bootstrap my-typescript-project
```

```
cd my-typescript-project/
```

```
npm i
```

2. You can run the following commands to verify your setup:

```
npm run lint && npm run build && npm test
```

View [package.json](./package.json) for more information.

You're ready to create your own TypeScript project! 🎉

## Reasoning

The following resources detail how the configurations in this `typescript-bootstrap` template were determined:

### Configs

- [.eslintrc.json](./.eslintrc.json)

- https://typescript-eslint.io/docs/#step-2-configuration
- https://github.com/prettier/eslint-plugin-prettier#recommended-configuration
- https://github.com/lydell/eslint-plugin-simple-import-sort
- https://github.com/mthadley/eslint-plugin-sort-destructure-keys
- https://github.com/leo-buneev/eslint-plugin-sort-keys-fix
- https://github.com/infctr/eslint-plugin-typescript-sort-keys

- [jest.config.json](./jest.config.json)

- https://kulshekhar.github.io/ts-jest/docs/getting-started/installation#jest-config-file

- [tsconfig.json](./tsconfig.json)

- https://www.bayanbennett.com/posts/stop-messing-with-tsconfig

### Actions

- [.github/dependabot.yml](./.github/dependabot.yml)

- https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file

- [.github/workflows/codeql-analysis.yml](./.github/workflows/codeql-analysis.yml)

- https://github.com/github/codeql-action

- [.github/workflows/node.js.yml](./.github/workflows/node.js.yml)

- https://github.com/actions/starter-workflows/blob/main/ci/node.js.yml