Skip to content

adamszegedi/ts-playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repo documents my journey through typescript

Also i will use as a cheatsheet later on.

The files and challanges based on this book:

No BS TS, The Book” © 2021, Jack Herrington

Init a new repostiory

Init the npm repository

npm init -y

Add typescirpt and ts-node to be able to run .ts scripts on the fly

npm add TypeScript ts-node -D

Init typescirpt config

 npx tsc - init

The above command will add a nice default setup for a typescript project.

Tips:

  • Use FNM for Node.js version management

  • via .npmrc you can control the version

      node -v > .npmrc
    
  • Run individual test files:

      npx ts-node .\src\challanges\challange-2\filter.ts
    

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published