This repository has everything you need to start a typescript project.
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.
npm run build
oryarn build
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.
npm run lint
oryarn lint
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.
npm test
oryarn test
npm run test:coverage
oryarn test:coverage