Skip to content

Instantly share code, notes, and snippets.

@vsharper
Created November 17, 2017 11:23
Show Gist options
  • Save vsharper/14aec7c29a4bf1265a7bb6168723fc6e to your computer and use it in GitHub Desktop.
Save vsharper/14aec7c29a4bf1265a7bb6168723fc6e to your computer and use it in GitHub Desktop.
example tsconfig.json
{
"compilerOptions": {
"module": "system",
"noImplicitAny": true,
"removeComments": true,
"preserveConstEnums": true,
"outFile": "./js/final.js",
"sourceMap": true
},
"include": [
"src/**/*"
],
"exclude": [
"node_modules",
"**/*.spec.ts",
"lib",
"js"
]
}
@vsharper
Copy link
Author

Requires system.js (npm install systemjs)
compile all ts files to a single js file in /js/final.js
create source map for final.js (/js/final.js.map)
will compile all files in /src/
will exclude node_modules, **/*.spec.ts, lib and js folders

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment