Launcher
This commit is contained in:
@@ -79,7 +79,7 @@ export class FrontblockAdmin extends AdminBase<AdminConf>{
|
||||
}
|
||||
|
||||
private destroy(){
|
||||
this.startWebsocket()
|
||||
this.wsServer.close()
|
||||
this.stopWebserver()
|
||||
}
|
||||
|
||||
|
||||
@@ -29,6 +29,4 @@ export const install = (plugins: Plugin[] = [], npmPkgs: [NPMPkgName, NPMVersion
|
||||
new Admin(plugins)
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
install([], [['sqlite3', '4.1.0'], ['knex', '0.19.2']])
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
import { install } from "./Installer";
|
||||
install([], [['sqlite3', '4.1.0'], ['knex', '0.19.2']])
|
||||
@@ -39,6 +39,41 @@ module.exports = [{
|
||||
minimize: false
|
||||
},
|
||||
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: {
|
||||
path: path.resolve(__dirname, '../../dist'),
|
||||
filename: 'FrontblockAdmin.js',
|
||||
|
||||
Reference in New Issue
Block a user