As a newcomer to learning Angular 2, I've come across tutorials that mention all compiled files should go into the dist
folder. These compiled files refer to typescript files transpiled into JavaScript.
However, upon creating my project using Angular 2 CLI, I didn't find any dist
folder. Below is a snapshot of my project structure. Please note that some folders were created by me at a later stage and are not part of the default Angular 2 setup.
https://i.sstatic.net/SeHgY.png
Upon inspecting the tsconfig.json file, I found the following code:
{
"compilerOptions": {
"baseUrl": "",
"declaration": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"lib": ["es6", "dom"],
"mapRoot": "./",
"module": "es6",
"moduleResolution": "node",
"outDir": "../dist/out-tsc",
"sourceMap": true,
"target": "es5",
"typeRoots": [
"../node_modules/@types "
]
}
}
Given that the outDir
property mentions a dist
directory, it seems like my project should have one. Am I overlooking something?