This commit is contained in:
peter
2019-08-27 22:48:04 +02:00
parent 9fbfca3ddb
commit 3584e8e5c8
4 changed files with 39 additions and 4 deletions
+1 -1
View File
@@ -79,7 +79,7 @@ export class FrontblockAdmin extends AdminBase<AdminConf>{
} }
private destroy(){ private destroy(){
this.startWebsocket() this.wsServer.close()
this.stopWebserver() this.stopWebserver()
} }
+1 -3
View File
@@ -29,6 +29,4 @@ export const install = (plugins: Plugin[] = [], npmPkgs: [NPMPkgName, NPMVersion
new Admin(plugins) new Admin(plugins)
}) })
} }
install([], [['sqlite3', '4.1.0'], ['knex', '0.19.2']])
+2
View File
@@ -0,0 +1,2 @@
import { install } from "./Installer";
install([], [['sqlite3', '4.1.0'], ['knex', '0.19.2']])
+35
View File
@@ -39,6 +39,41 @@ module.exports = [{
minimize: false minimize: false
}, },
entry: path.resolve(__dirname, 'Installer.ts'), entry: path.resolve(__dirname, 'Installer.ts'),
output: {
path: path.resolve(__dirname, '../../dist'),
filename: 'Installer.js',
libraryTarget: 'commonjs',
}
},{
mode: 'production',
target: "node",
node: {
global: true,
process: true,
__filename: false,
__dirname: false,
Buffer: true,
},
resolve: {
// Add `.ts` and `.tsx` as a resolvable extension.
extensions: [".ts", ".tsx", ".js"]
},
module: {
rules: [
{ test: /\.ts?$/, loader: "ts-loader" }
]
},
externals:{
knex: "../plugins/node_modules/knex"
},
optimization: {
minimize: false
},
entry: path.resolve(__dirname, 'Launcher.ts'),
output: { output: {
path: path.resolve(__dirname, '../../dist'), path: path.resolve(__dirname, '../../dist'),
filename: 'FrontblockAdmin.js', filename: 'FrontblockAdmin.js',