July 2017
Intermediate to advanced
384 pages
8h 23m
English
Typically, the first step in a new TypeScript project is to add in a tsconfig.json file. This file defines the project and compiler settings, for instance, files and libraries to be included in the compilation, output structure, module code generation, and so on. A typical configuration in tsconfig.json for Angular 2+ projects looks like the following:
{ "compilerOptions": { "target": "es5", "module": "es2015", "moduleResolution": "node", "noImplicitAny": true, "sourceMap": true, "emitDecoratorMetadata": true, "experimentalDecorators": true, "outDir": "dist", "lib": ["es2015", "dom"] }, "types": ["node"], "exclude": ["node_modules", "dist"]}
The listed compiler settings are described as follows. A full list of all options ...
Read now
Unlock full access