From 413f9ca3a11921214fa38ffd39e6d68ea77f3038 Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Fri, 31 May 2019 18:58:48 -0700 Subject: [PATCH] Import web links into demo via node path --- addons/xterm-addon-web-links | 1 + demo/client.ts | 1 + demo/start.js | 6 +++++- demo/tsconfig.json | 6 +++++- tsconfig.all.json | 1 + 5 files changed, 13 insertions(+), 2 deletions(-) create mode 160000 addons/xterm-addon-web-links diff --git a/addons/xterm-addon-web-links b/addons/xterm-addon-web-links new file mode 160000 index 00000000..a87ba586 --- /dev/null +++ b/addons/xterm-addon-web-links @@ -0,0 +1 @@ +Subproject commit a87ba586e6ca7fbef50f9d7c4509e45d4142d6c3 diff --git a/demo/client.ts b/demo/client.ts index 10d27c86..49990bed 100644 --- a/demo/client.ts +++ b/demo/client.ts @@ -14,6 +14,7 @@ import { Terminal } from '../out/public/Terminal'; import { AttachAddon } from 'xterm-addon-attach'; import { SearchAddon, ISearchOptions } from 'xterm-addon-search'; + import { WebLinksAddon } from 'xterm-addon-web-links'; import * as fit from '../lib/addons/fit/fit'; diff --git a/demo/start.js b/demo/start.js index c9b90c8b..20195215 100644 --- a/demo/start.js +++ b/demo/start.js @@ -43,7 +43,11 @@ const clientConfig = { ] }, resolve: { - modules: [path.resolve(__dirname, '..'), 'node_modules'], + modules: [ + 'node_modules', + path.resolve(__dirname, '..'), + path.resolve(__dirname, '../addons') + ], extensions: [ '.tsx', '.ts', '.js' ], alias: { common: path.resolve('./out/common'), diff --git a/demo/tsconfig.json b/demo/tsconfig.json index 2edfe2f7..dead036a 100644 --- a/demo/tsconfig.json +++ b/demo/tsconfig.json @@ -3,7 +3,11 @@ "module": "commonjs", "target": "es5", "rootDir": ".", - "sourceMap": true + "sourceMap": true, + "baseUrl": ".", + "paths": { + "xterm-addon-web-links": ["../addons/xterm-addon-web-links"] + } }, "include": [ "client.ts", diff --git a/tsconfig.all.json b/tsconfig.all.json index 7e0750aa..4c464292 100644 --- a/tsconfig.all.json +++ b/tsconfig.all.json @@ -3,6 +3,7 @@ "include": [], "references": [ { "path": "./src" }, + { "path": "./addons/xterm-addon-web-links/src" }, { "path": "./src/addons/attach" }, { "path": "./src/addons/fit" }, { "path": "./src/addons/fullscreen" },