Create headless project, fix compile
This commit is contained in:
@@ -1,21 +0,0 @@
|
||||
{
|
||||
"extends": "../../tsconfig-library-base",
|
||||
"compilerOptions": {
|
||||
"lib": [
|
||||
"es2015",
|
||||
"es2016.Array.Include"
|
||||
],
|
||||
"outDir": "../../../xterm-core", // Temporary outdir to avoid collisions with 'xterm'
|
||||
"types": [
|
||||
"../../../node_modules/@types/mocha",
|
||||
"../../../node_modules/@types/node"
|
||||
],
|
||||
"baseUrl": "../../",
|
||||
"extendedDiagnostics": true
|
||||
},
|
||||
"include": [
|
||||
"../**/*",
|
||||
"../../../typings/xterm-core.d.ts",
|
||||
"../../../typings/xterm.d.ts", // common/Types.d.ts imports from 'xterm'
|
||||
],
|
||||
}
|
||||
+1
-1
@@ -28,4 +28,4 @@ export interface ITerminal extends ICoreTerminal {
|
||||
clear(): void;
|
||||
write(data: string | Uint8Array, callback?: () => void): void;
|
||||
reset(): void;
|
||||
}
|
||||
}
|
||||
@@ -8,7 +8,7 @@ import { BufferNamespaceApi } from 'common/public/BufferNamespaceApi';
|
||||
import { ParserApi } from 'common/public/ParserApi';
|
||||
import { UnicodeApi } from 'common/public/UnicodeApi';
|
||||
import { IBufferNamespace as IBufferNamespaceApi, IMarker, IParser, ITerminalOptions, IUnicodeHandling, Terminal as ITerminalApi } from 'xterm-core';
|
||||
import { Terminal as TerminalCore } from '../Terminal';
|
||||
import { Terminal as TerminalCore } from 'headless/Terminal';
|
||||
|
||||
export class Terminal implements ITerminalApi {
|
||||
private _core: TerminalCore;
|
||||
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"extends": "../tsconfig-library-base",
|
||||
"compilerOptions": {
|
||||
"lib": [
|
||||
"es2015",
|
||||
"es2016.Array.Include"
|
||||
],
|
||||
"outDir": "../../headless", // Temporary outdir to avoid collisions with 'xterm'
|
||||
"types": [
|
||||
"../../node_modules/@types/mocha",
|
||||
"../../node_modules/@types/node"
|
||||
],
|
||||
"baseUrl": "../",
|
||||
"extendedDiagnostics": true,
|
||||
"paths": {
|
||||
"common/*": [ "./common/*" ]
|
||||
}
|
||||
},
|
||||
"include": [
|
||||
"./**/*",
|
||||
"../../typings/xterm.d.ts", // common/Types.d.ts imports from 'xterm'
|
||||
"../../typings/xterm-core.d.ts"
|
||||
],
|
||||
"references": [
|
||||
{ "path": "../common" }
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user