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

https://github.com/tktcorporation/typescript-docker-template

base repository for developing typescript app with docker.
https://github.com/tktcorporation/typescript-docker-template

docker docker-compose editor editorconfig eslint github-actions mit-license prettier template typescript

Last synced: 3 months ago
JSON representation

base repository for developing typescript app with docker.

Awesome Lists containing this project

README

          

[![Test](https://github.com/tktcorporation/typescript-docker-template/workflows/Test/badge.svg)](https://github.com/tktcorporation/typescript-docker-template/actions?query=workflow%3Atest)

# typescript-base

For creating a Typescript repository.

- [typescript-base](#typescript-base)
- [Tools](#tools)
- [Lint](#lint)
- [Format](#format)
- [Test](#test)
- [Build](#build)
- [Get Started](#get-started)
- [Building Docker](#building-docker)
- [Working in Docker container](#working-in-docker-container)
- [Installation](#installation)
- [Lint](#lint)
- [Format](#format)
- [Test](#test)
- [Build](#build)

## Tools

You can customize them easily.

- [Docker](https://www.docker.com/)
- [docker-compose](https://docs.docker.com/compose/)

### Lint
- [ESLint](https://eslint.org/)

### Format

- [Prettier](https://prettier.io/)

### Test

- [Jest](https://jestjs.io/)

### Build

- [tsc](https://www.typescriptlang.org/docs/handbook/compiler-options.html)

## Get Started

### Building Docker

```bash
$ docker-compose build
```

### Working in Docker container

```bash
$ docker-compose run app /bin/bash
```

### Installation

```bash
$ yarn
```

### Lint

```bash
# Find linting error and warnings
$ yarn lint

# Run lint fixing
$ yarn lint:fix
```

### Format

```bash
# Run format
$ yarn format

# This will return exit code 1 if all files are not formatted
$ yarn format:check
```

### Test

```bash
# unit tests
$ yarn test

# e2e tests
$ yarn test:e2e

# test coverage
$ yarn test:cov
```

### Build

```bash
# Run build
$ yarn build
```