Skip to content

This repository has everything you need to start a typescript project.

Notifications You must be signed in to change notification settings

PedroS11/typescript-starter

Repository files navigation

typescript-starter

This repository has everything you need to start a typescript project.

Build

The transpiled files are created inside the dist folder. This name is defined on tsconfig.json file and to renamed it you need to change the compilerOptions.outDir property.

Build code

npm run build or yarn build

Linting

It has eslint installed and it's prepared to lint .js, .jsx, .ts, .tsx files. On each commit the lint will run and fix all the problems using the lint-staged and husky packages.

Format code

npm run lint or yarn lint

Tests

This project uses jest package and run all the files tests that matches the regex /__tests__/.*|(\.|/)(test|spec))\.tsx?$ defined on jest.config.json. Test files like .ts, .tsx are transpiled using ts-jest package.

Run tests

npm test or yarn test

Run tests with coverage

npm run test:coverage or yarn test:coverage

About

This repository has everything you need to start a typescript project.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published