This commit is contained in:
Eugene Pankov
2017-04-30 00:25:01 +02:00
parent 8be70110fe
commit 46b0b0e172
13 changed files with 41 additions and 38 deletions

View File

@@ -1,6 +1,7 @@
{
"name": "terminus",
"version": "0.0.1",
"description": "A terminal for a modern age",
"author": "Eugene Pankov",
"main": "main.js",
"scripts": {
"build": "../node_modules/.bin/webpack --progress --color --display-modules",

View File

@@ -12,6 +12,12 @@ function normalizePath (path: string): string {
};
(<any>global).require.main.paths.map(x => nodeModule.globalPaths.push(normalizePath(x)))
nodeModule.globalPaths.unshift(
path.join(
path.dirname(require('electron').remote.app.getPath('exe')),
'resources/builtin-plugins/node_modules',
)
)
if (process.env.TERMINUS_PLUGINS) {
process.env.TERMINUS_PLUGINS.split(':').map(x => nodeModule.globalPaths.unshift(normalizePath(x)))

View File

@@ -56,6 +56,7 @@ module.exports = {
'@angular/common': 'commonjs @angular/common',
'@ng-bootstrap/ng-bootstrap': 'commonjs @ng-bootstrap/ng-bootstrap',
'fs-promise': 'commonjs fs-promise',
'electron': 'commonjs electron',
'module': 'commonjs module',
'path': 'commonjs path',
'rxjs': 'commonjs rxjs',