In Angular2 I would have
\"outDir\": \"dist/app\"
in tsconfig.json. As a result the transpiled .js and .map files are generated in /di
No, the TypeScript compiler is just for *.ts file.
You have to copy other files like *.html and *.css using a copy method like cp shell command inside a npm script or grunt-contrib-copy for example.
Example using npm script:
"scripts": {
"html": "find ./app -name '*.html' -type f -exec cp --parents {} ./dist \\;"
}
Just run npm run html in the shell.
Example using grunt:
copy: {
html: {
src: ['**/*.html'],
dest: 'dist',
cwd: 'app',
expand: true,
}
}