Skip to content

A simple project to learn TypeScript by implementing the most common A&DS.

Notifications You must be signed in to change notification settings

diegomoreira001/algorithms-datastructures-ts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TypeScript Learning Project

A small project that implements some basic Algos and Data Structures in TS.

Pre-requesites

Install TypeScript, Init a Project, and Transpile it

npm i typescript -g //install typescript globally

tsc --init // initialize a new typescript project

tsc //transpile typsecript into javascript

Install a linter to analyze syntax

npm i tslint -g

tslint --init

Unit Testing with Mocha and Chai

Mocha is a Unit Testing library and Chai is an Assertions library.

npm install chai mocha ts-node @types/chai @types/mocha --save-dev

Running tests with mocha:

mocha -r ts-node/register test/**/*Test.ts

Coverage

npm install nyc -g

This is compatible with WebSotrm's "run w/ coverage option". Also works in IntelliJ.

About

A simple project to learn TypeScript by implementing the most common A&DS.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published