/ts-starter

TypeScript Configuration for Better Developer Experience in 2021

Primary LanguageTypeScript

TypeScript Starter

This a minimal TypeScript starter with testing.

Development Commands

Setup

 git clone https://github.com/gpazevedo/ts-starter folder # clones the repository
 yarn install                                             # installs the dependencies

Workflow

We can develop the application fully testing it, testing a specific component and checking the test coverage. To run the application we don't need to build it before.

Testing:

 yarn test            # Watch the source and execute all tests
 yarn test component  # Watch the component source and execute its tests
 yarn test:coverage   # Execute all tests and calculates the test coverage

Running:

 yarn build           # Compiles the source code to JavaScript
 yarn cli             # Run the CLI