Skip to content

ahmed0saber/quote-generator-with-typescript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

quote-generator-with-typescript

https://ahmed0saber.github.io/quote-generator-with-typescript/

how to create typescript app

npm install typescript --save-dev

npx tsc

npx tsc --init

open tsconfig.json and make sure these lines exist

{ "include": ["src"], "compilerOptions": { "outDir": "./build" } }

create empty build folder

create src folder with index.ts

add this to package.json

"scripts": { "start": "tsc --watch" }

run this command

npm start