ui project absolute, tweak demo build

This commit is contained in:
Daniel Imms
2019-05-26 11:38:48 -07:00
parent 9ddf83ef26
commit d675de0b93
11 changed files with 25 additions and 14 deletions
+1 -1
View File
@@ -36,7 +36,7 @@
},
{
"label": "Start demo",
"dependsOn": ["npm: watch", "npm: start"],
"dependsOn": ["npm: watch", "npm: package", "npm: start"],
"group": {
"kind": "build",
"isDefault": true
+5 -1
View File
@@ -7,7 +7,11 @@
/// <reference path="../typings/xterm.d.ts"/>
import { Terminal } from '../lib/xterm';
// Use tsc version (yarn watch)
import { Terminal } from '../out/public/Terminal';
// Use webpacked version (yarn package)
// import { Terminal } from '../lib/xterm';
import { AttachAddon } from 'xterm-addon-attach';
import { SearchAddon, ISearchOptions } from 'xterm-addon-search';
import { WebLinksAddon } from 'xterm-addon-web-links';
+5 -4
View File
@@ -33,10 +33,11 @@ const clientConfig = {
resolve: {
modules: [path.resolve(__dirname, '..'), 'node_modules'],
extensions: [ '.tsx', '.ts', '.js' ],
// alias: {
// common: path.resolve(__dirname, '../lib/common'),
// core: path.resolve(__dirname, '../lib/core')
// }
alias: {
common: path.resolve('./out/common'),
core: path.resolve('./out/core'),
ui: path.resolve('./out/ui')
}
},
output: {
filename: 'client-bundle.js',
+1 -1
View File
@@ -9,7 +9,7 @@
"paths": {
"common/*": [ "./common/*" ],
"core/*": [ "./core/*" ]
},
}
},
"include": [ "./**/*" ],
"references": [
+1 -1
View File
@@ -5,7 +5,7 @@
import jsdom = require('jsdom');
import { assert } from 'chai';
import { ColorManager } from './ColorManager';
import { ColorManager } from 'ui/ColorManager';
describe('ColorManager', () => {
let cm: ColorManager;
+1 -1
View File
@@ -3,7 +3,7 @@
* @license MIT
*/
import { IColorManager, IColor, IColorSet, ITheme } from './Types';
import { IColorManager, IColor, IColorSet, ITheme } from 'ui/Types';
const DEFAULT_FOREGROUND = fromHex('#ffffff');
const DEFAULT_BACKGROUND = fromHex('#000000');
+1 -1
View File
@@ -3,7 +3,7 @@
* @license MIT
*/
import { IDisposable } from '../common/Types';
import { IDisposable } from 'common/Types';
/**
* Adds a disposable listener to a node in the DOM, returning the disposable.
+1 -1
View File
@@ -3,7 +3,7 @@
* @license MIT
*/
import { IDisposable } from '../common/Types';
import { IDisposable } from 'common/Types';
/**
* Debounces calls to render terminal rows using animation frames.
+1 -1
View File
@@ -3,7 +3,7 @@
* @license MIT
*/
import { Disposable } from '../common/Lifecycle';
import { Disposable } from 'common/Lifecycle';
export type ScreenDprListener = (newDevicePixelRatio?: number, oldDevicePixelRatio?: number) => void;
+6 -1
View File
@@ -8,7 +8,12 @@
"outDir": "../../out",
"types": [
"../../node_modules/@types/mocha"
]
],
"baseUrl": "..",
"paths": {
"common/*": [ "./common/*" ],
"ui/*": [ "./ui/*" ]
}
},
"include": [ "./**/*" ],
"references": [
+2 -1
View File
@@ -23,7 +23,8 @@ module.exports = {
extensions: [ '.js' ],
alias: {
common: path.resolve('./out/common'),
core: path.resolve('./out/core')
core: path.resolve('./out/core'),
ui: path.resolve('./out/ui')
}
},
output: {