Currently, I am utilizing Atom as my primary development environment for a project involving AngularJs 2 and typescript. To support typescript, I have integrated the atom-typescript plugin into Atom. However, I noticed that Atom is generating separate .js files for each .ts file. My objective is to consolidate all .ts files into a single .js file. In an attempt to achieve this, I added the outFile setting within the compilerOptions section of the tsconfig.json file as shown below:
{
"compilerOptions": {
"target": "ES5",
"module": "system",
"moduleResolution": "node",
"sourceMap": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"removeComments": false,
"noImplicitAny": false,
"outFile": "./js/Deployment/single.js"
},
"exclude": [
"node_modules"
]
}
Despite having configured the tsconfig.json file accordingly, when I compile the project, an empty single.js file is generated at the specified location. This has left me puzzled as to what I might be overlooking in this configuration setup. For reference, I am using version 8.2.0 of the atom-typescript plugin.
Additionally, here is a snippet of my package.json file:
{
"name": "Pro1",
"version": "1.0.0",
"scripts": {
"tsc": "tsc",
"tsc:w": "tsc -w",
"lite": "lite-server",
"start": "concurrent \"npm run tsc:w\" \"npm run lite\" "
},
"license": "ISC",
"dependencies": {
"angular2": "2.0.0-beta.0",
"es6-promise": "^3.0.2",
"es6-shim": "^0.33.3",
"reflect-metadata": "0.1.2",
"rxjs": "5.0.0-beta.0",
"systemjs": "0.19.6",
"zone.js": "0.5.10"
},
"devDependencies": {
"concurrently": "^1.0.0",
"lite-server": "^1.3.1",
"typescript": "^1.7.3"
}
}