Migration to TypeScript :)

This commit is contained in:
Qolzam
2017-10-07 08:40:41 +07:00
parent 3c49a3311a
commit 61c230e79e
4 changed files with 116 additions and 53 deletions

26
tsconfig.json Normal file
View File

@@ -0,0 +1,26 @@
{
"compilerOptions": {
"module": "es6", // use ES2015 modules
"target": "es6", // compile to ES2015 (Babel will do the rest)
"allowSyntheticDefaultImports": true, // see below
"baseUrl": "./app", // enables you to import relative to this folder
"paths": {
"angular2/*": ["../path/to/angular2/*"],
"local/*": ["../path/to/local/modules/*"]
},
"sourceMap": true, // make TypeScript generate sourcemaps
"outDir": "public", // output directory to build to (irrelevant because we use Webpack most of the time)
"jsx": "preserve", // enable JSX mode, but "preserve" tells TypeScript to not transform it (we'll use Babel)
"strict": true,
"moduleResolution": "node",
"allowJs": true
},
"include":[
"app/**/*"
],
"exclude": [
"node_modules"
]
}