Skip to content

Instantly share code, notes, and snippets.

@kidwen
Last active July 19, 2021 15:57
Show Gist options
  • Save kidwen/169d3470cabcff37dec947e5ab136c79 to your computer and use it in GitHub Desktop.
Save kidwen/169d3470cabcff37dec947e5ab136c79 to your computer and use it in GitHub Desktop.
ts config file in angular
{
"compileOnSave": false,
"compilerOptions": {
"baseUrl": "./",
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"downlevelIteration": true,
"experimentalDecorators": true,
"module": "esnext",
"moduleResolution": "node",
"noFallthroughCasesInSwitch": true,
"noImplicitReturns": true,
"noImplicitAny": true,
"noImplicitThis": true,
"strict": true,
"importHelpers": true,
"target": "es2015",
"typeRoots": [
"node_modules/@types"
],
"lib": [
"es2018",
"dom"
],
"paths": {
// use angular libary public-api file address,so when you run `ng s` and you update libary code,the browser will update the view to show you the latest result
"@kidwen/layout": [
"projects/layout/src/public-api"
]
}
},
"angularCompilerOptions": {
"strictTemplates": true,
"strictInjectionParameters": true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment