Ich habe eine leere HTML application with TypeScript
mit File > New > Project
in VS2015 erstellt.Visual Studio 2015 - tsconfig.json - TypScript 1.6.0 Beta
Ich fügte eine grundlegende tsconfig.json in einem Ordner /scripts
hinzu und erwartete, dass VS die Datei lesen und die .js-Dateien in einen anderen Ordner ausgeben würde. Leider passiert nichts. Es ist ein obwohl VS nicht einmal das tsconfig.json
findet Ist jemand anderes dieses Problem?
Ich bin mir bewusst, ein früheres Problem mit 1.5 gibt es, aber das vorherige Update scheint nicht zu funktionieren: https://github.com/Microsoft/TypeScript/issues/4300
---------------- Update 9 10// 2015
Hier ist eine Probe tsconfig.json
{
"compilerOptions": {
"noImplicitAny": false,
"noEmitOnError": true,
"removeComments": false,
"sourceMap": true,
"target": "es5",
"module": "amd",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"outDir": "../www/scripts/"
},
"files": [
"./scripts/index.ts"
]
}
Hier ist eine andere tsconfig.json ist
{
"compilerOptions": {
"target": "es5",
"out": "/wwwroot/scripts/appBundle.js",
"sourceMap": true,
"removeComments": true,
"sourceRoot": "/"
}
}
Ich habe tsconfig.json-Dateien für TypeScript + Cordova-Projekte erstellt und sie funktionieren ordnungsgemäß.
Was macht Ihr tsconfig.json aussehen? –