Make sure you have TypeScript installed:
$ tsc --version
Version 5.3.2- Make sure you have TypeScript installed:
$ tsc --version
Version 5.3.2- Clone this repo:
git clone git@github.com/ticinoxp/scaffold-tsand setup npm:
npm installRun:
npm testor:
npm test -- --watchAllif you wish tests to be re-executed at any file modification.
If you wish to recreate this repo from the scratch, use the following:
# Initialize a new npm project with default settings. The -y flag automatically confirms
npm init -y
# Install the TypeScript compiler as a development dependency for your project
# The --save-dev flag adds TypeScript to the devDependencies section of your package.json,
# meaning it won't be included when your project is deployed to production environments
npm install typescript --save-dev
# Initializes a TypeScript configuration file (tsconfig.json) in your project.
# This file specifies the root files and the compiler options required to compile the project.
npx tsc --init
# Install jest for running tests
npm install jest ts-jest @types/jest --save-dev