build fixes

This commit is contained in:
Eugene Pankov 2018-03-23 17:15:11 +01:00
parent 63158ac6cd
commit 9cedeb3efb
4 changed files with 49 additions and 34 deletions

View File

@ -20,3 +20,14 @@ vars.builtinPlugins.forEach(plugin => {
sh.exec(`${npx} yarn install`) sh.exec(`${npx} yarn install`)
sh.cd('..') sh.cd('..')
}) })
if (['darwin', 'linux'].includes(process.platform)) {
sh.cd('node_modules')
for (let x of vars.builtinPlugins) {
sh.ln('-fs', '../' + x, x)
}
for (let x of vars.bundledModules) {
sh.ln('-fs', '../app/node_modules/' + x, x)
}
sh.cd('..')
}

View File

@ -16,5 +16,9 @@ exports.builtinPlugins = [
'terminus-plugin-manager', 'terminus-plugin-manager',
'terminus-ssh', 'terminus-ssh',
] ]
exports.bundledModules = [
'@angular',
'@ng-bootstrap',
]
exports.nativeModules = ['node-pty-tmp', 'font-manager', 'xkeychain'] exports.nativeModules = ['node-pty-tmp', 'font-manager', 'xkeychain']
exports.electronVersion = pkgInfo.devDependencies.electron exports.electronVersion = pkgInfo.devDependencies.electron

View File

@ -89,39 +89,39 @@ export class TerminalTabComponent extends BaseTabComponent {
return return
} }
switch (hotkey) { switch (hotkey) {
case 'copy': case 'copy':
this.hterm.copySelectionToClipboard() this.hterm.copySelectionToClipboard()
break break
case 'clear': case 'clear':
this.clear() this.clear()
break break
case 'zoom-in': case 'zoom-in':
this.zoomIn() this.zoomIn()
break break
case 'zoom-out': case 'zoom-out':
this.zoomOut() this.zoomOut()
break break
case 'reset-zoom': case 'reset-zoom':
this.resetZoom() this.resetZoom()
break break
case 'home': case 'home':
this.sendInput('\x1bOH') this.sendInput('\x1bOH')
break break
case 'end': case 'end':
this.sendInput('\x1bOF') this.sendInput('\x1bOF')
break break
case 'previous-word': case 'previous-word':
this.sendInput('\x1bb') this.sendInput('\x1bb')
break break
case 'next-word': case 'next-word':
this.sendInput('\x1bf') this.sendInput('\x1bf')
break break
case 'delete-previous-word': case 'delete-previous-word':
this.sendInput('\x1b\x7f') this.sendInput('\x1b\x7f')
break break
case 'delete-next-word': case 'delete-next-word':
this.sendInput('\x1bd') this.sendInput('\x1bd')
break break
} }
}) })
this.bellPlayer = document.createElement('audio') this.bellPlayer = document.createElement('audio')

View File

@ -1459,7 +1459,7 @@ electron-to-chromium@^1.2.7:
version "1.3.31" version "1.3.31"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.31.tgz#00d832cba9fe2358652b0c48a8816c8e3a037e9f" resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.31.tgz#00d832cba9fe2358652b0c48a8816c8e3a037e9f"
electron@^1.8.4: electron@1.8.4:
version "1.8.4" version "1.8.4"
resolved "https://registry.yarnpkg.com/electron/-/electron-1.8.4.tgz#cca8d0e6889f238f55b414ad224f03e03b226a38" resolved "https://registry.yarnpkg.com/electron/-/electron-1.8.4.tgz#cca8d0e6889f238f55b414ad224f03e03b226a38"
dependencies: dependencies: