This is a basic framework, a minimalist template using Typescript. It assists me in the quick start to create tests, POC or projects.
- TypeScript 5.3+ is a strongly typed programming language that builds on JavaScript, giving you better tooling at any scale.
- ESLint statically analyzes your code to quickly find problems. It is built into most text editors and you can run ESLint as part of your continuous integration pipeline.
- Prettier is an opinionated code formatter.
- Nodemon is a utility, that will monitor for any changes in your source and automatically restart your server. Perfect for development.
- @types/node - This package contains type definitions for node (https://nodejs.org/).
- Jest is a delightful JavaScript Testing Framework with a focus on simplicity.
Available commands for:
build
- Build one or more projects and their dependenciesbuild:watch
- Watch input filesbuild:release
- Build specified settings ontsconfig.release.json
prebuild
- Checks possibility
start
- Run static compiled on pathdist
start:dev
- Run nodemon on pathsrc
start:prod
- Run production env on pathdist
format
- Prettier format code stylelint
- ESLint code format verifylint:fix
- ESLint verify and fix
clean
- Remove cache, coverage and dist folder
test
- Run all tests (src, e2e)test:src
- Run src tests on pathsrc
test:e2e
- Run e2e tests on pathtest
test:watch
- Jest interactive modetest:cov
- show test coverage information reported in the outputtest:debug
- print debugging info about your jest config
- Node 20+
- Typescript Cli
- Vscode
(Optional)
This template has productivity-focused settings, snippets, and extensions.
Typescript Skeleton Jest is MIT licensed.
Created with fun by Ricardo Melo Martins, Thanks! ❤️.