Skip to content
This repository has been archived by the owner on Feb 3, 2024. It is now read-only.

Template to start a TypeScript project from scratch with a standard folder structure and Jest, Cucumber, ESLint and Prettier already configured for TS.

License

Desvart/ts-template

Repository files navigation

@desvart/ts-template

Version Quality Gate Status Coverage
Version Quality Gate Status Coverage

NodeVersion WindowsVersion License

This package contains a clean NodeJS TypeScript project template for starting from scratch.

This template was originally created to help me build and test my code for the BitBurner project, hence some uncommon configurations choices. Over time, it has become useful in its own rights, outside of its original purpose, hence this standalone template.

This template has the following characteristics:

  • a standard folder structure for a hexagonal architecture,
  • Jest configured for TypeScript as unit testing framework
  • CucumberJS configured for TypeScript as functional testing framework
  • ts-mockito as mocking framework
  • all tests frameworks are configure to perform on-the-fly transpilation
  • a full compatibility with ESM (adapted to also work with CucumberJS and Jest)
  • ModuleMapper configured for ESM on-the-fly transpilation (adapted to also work with Jest and CucumberJS)
  • ESLint configured for TypeScript with Airbnb standard as linter (only linter)
  • SonarLint for additional checks static code checkins that are not covered by ESLint
  • Prettier configured through ESLint as formatter (only formatter)
  • a CI/CD pipeline with GitHub Actions, SonarCloud and NPM Register

To use this template, you can either:

About

Template to start a TypeScript project from scratch with a standard folder structure and Jest, Cucumber, ESLint and Prettier already configured for TS.

Resources

License

Stars

Watchers

Forks

Packages

No packages published