C#C
C#4y ago
İrşat

✅ Upgrading Javascript to Typescript in MVC project

I globally installed npm and typescript. Then created a tsconfig.json in my project. But I have no idea what to do after that.
"include": ["TypeScript"],
"compilerOptions": {
    "outDir": "./wwwroot/js",

I am trying to put my .ts files in TypeScript folder directly under the App.Web. Both TypeScript folder and tsconfig.json are right under App.Web.
(I have 2 apps in one project. App.Web and App.Api)

App.Web
    MVC structure
    TypeScript
        firsttry.ts
    tsconfig.json
App.Api


Installing typescript in App.Web was a torture. I gave up and installed it globally.
Was this page helpful?