Improve structure of addon tsconfigs

This commit is contained in:
Daniel Imms
2018-09-18 09:49:07 -07:00
parent a7a58aa055
commit 33915f3ae0
8 changed files with 48 additions and 26 deletions
+7 -4
View File
@@ -4,17 +4,20 @@
"target": "es5",
"lib": [
"dom",
"es6",
"es5"
],
"rootDir": ".",
"outDir": "../../../lib/addons/fit/",
"sourceMap": true,
"removeComments": true,
"declaration": true,
"preserveWatchOutput": true
"preserveWatchOutput": true,
"types": [
"../../node_modules/@types/mocha",
"../.."
]
},
"include": [
"**/*.ts",
"../../../typings/xterm.d.ts"
"**/*.ts"
]
}
+7 -4
View File
@@ -4,17 +4,20 @@
"target": "es5",
"lib": [
"dom",
"es6",
"es5"
],
"rootDir": ".",
"outDir": "../../../lib/addons/fullscreen/",
"sourceMap": true,
"removeComments": true,
"declaration": true,
"preserveWatchOutput": true
"preserveWatchOutput": true,
"types": [
"../../node_modules/@types/mocha",
"../.."
]
},
"include": [
"**/*.ts",
"../../../typings/xterm.d.ts"
"**/*.ts"
]
}
+2 -1
View File
@@ -7,6 +7,7 @@ import { assert, expect } from 'chai';
import * as search from './search';
import { SearchHelper } from './SearchHelper';
import { ISearchOptions, ISearchResult } from './Interfaces';
import { Terminal } from '../../../lib/Terminal';
class MockTerminalPlain {}
@@ -16,7 +17,7 @@ class MockTerminal {
public searchHelper: TestSearchHelper;
public cols: number;
constructor(options: any) {
this._core = new (require('../../../lib/Terminal').Terminal)(options);
this._core = new Terminal(options);
this.searchHelper = new TestSearchHelper(this as any);
this.cols = options.cols;
}
+7 -4
View File
@@ -4,17 +4,20 @@
"target": "es5",
"lib": [
"dom",
"es6",
"es5"
],
"rootDir": ".",
"outDir": "../../../lib/addons/search/",
"sourceMap": true,
"removeComments": true,
"declaration": true,
"preserveWatchOutput": true
"preserveWatchOutput": true,
"types": [
"../../node_modules/@types/mocha",
"../.."
]
},
"include": [
"**/*.ts",
"../../../typings/xterm.d.ts"
"**/*.ts"
]
}
+7 -4
View File
@@ -4,17 +4,20 @@
"target": "es5",
"lib": [
"dom",
"es6",
"es5",
],
"rootDir": ".",
"outDir": "../../../lib/addons/terminado/",
"sourceMap": true,
"removeComments": true,
"declaration": true,
"preserveWatchOutput": true
"preserveWatchOutput": true,
"types": [
"../../node_modules/@types/mocha",
"../.."
]
},
"include": [
"**/*.ts",
"../../../typings/xterm.d.ts"
"**/*.ts"
]
}
+6 -3
View File
@@ -11,10 +11,13 @@
"sourceMap": true,
"removeComments": true,
"declaration": true,
"preserveWatchOutput": true
"preserveWatchOutput": true,
"types": [
"../../node_modules/@types/mocha",
"../.."
]
},
"include": [
"**/*.ts",
"../../../typings/xterm.d.ts"
"**/*.ts"
]
}
+6 -3
View File
@@ -11,10 +11,13 @@
"sourceMap": true,
"removeComments": true,
"declaration": true,
"preserveWatchOutput": true
"preserveWatchOutput": true,
"types": [
"../../node_modules/@types/mocha",
"../.."
]
},
"include": [
"**/*.ts",
"../../../typings/xterm.d.ts"
"**/*.ts"
]
}
+6 -3
View File
@@ -11,10 +11,13 @@
"sourceMap": true,
"removeComments": true,
"declaration": true,
"preserveWatchOutput": true
"preserveWatchOutput": true,
"types": [
"../../node_modules/@types/mocha",
"../.."
]
},
"include": [
"**/*.ts",
"../../../typings/xterm.d.ts"
"**/*.ts"
]
}