Skip to content
This repository was archived by the owner on Sep 30, 2025. It is now read-only.

Typescript Project Configuration File

Todd Thomson edited this page Oct 30, 2015 · 6 revisions

tsconfig.json

Starting with Typescript 1.5, the tsconfig.json file specifies the root files and the compiler options required to compile a Typescript project. Please see the Typescript tsconfig.json wiki for addition details.

TsProject extends the tsconfig.json configuration file to by adding a "bundles" property which specifies how to bundle external module source files into single components.

TsProject also allows for file glob pattern matching for the project "files" property.

Example

{
    "compilerOptions": {
        "module": "amd",
        "target": "es5",
        "noResolve": false,
        "declaration": true,
        "diagnostics": true
    },

    "files": [
        "../component/*.ts",
        "index.ts",
        "page.ts",
        "common.ts",
    ],
    
    "bundles": {
        "app": {
            "files": [ "index.ts" ]
        },
        "components": {
            "files": [
                "page.ts",
                "plugin.ts"
            ],
            "config": { 
                "outDir": "./bundles"  
            }
        }
    }
}

Clone this wiki locally