TogetherCrew / operations

This repository houses a collection of code artifacts, including Github actions, Github workflows, and essential docker-compose files. These resources are instrumental in facilitating efficient and automated staging and production deployments.
1 stars 0 forks source link

Create a typescript library template repository #14

Open cyri113 opened 1 year ago

cyri113 commented 1 year ago

Problem

TogetherCrew uses purpose built libraries. As the number of libraries will continue to grow, it is of vital importance to ensure that our libraries use the same pipelines, structures, and libraries (where possible).

Solution

We will create a library template for typescript libraries. Developers should be able to use it as a basis for any service, saving days in configuring a new library.

It should support the following commands:

Linter

docker run -e RUN_LOCAL=true -e TYPESCRIPT_DEFAULT_STYLE=prettier -e VALIDATE_DOCKERFILE_HADOLINT=false -v $(pwd):/tmp/lint github/super-linter:slim-latest

Tests

docker compose -f docker-compose.test.yml up --exit-code-from app --build

Development Environment

docker compose -f docker-compose.dev.yml up

Tasks

cyri113 commented 1 year ago

Reuse the typescript-service template as much as possible. Stripping out unnecessary components.