add webpack for lib

This commit is contained in:
peter
2019-08-19 16:57:46 +02:00
parent 60d0bbc4f1
commit 1d29ed4746
4 changed files with 7 additions and 6 deletions
+5
View File
@@ -82,6 +82,10 @@ export class FrontblockAdmin extends ConfigLoader<AdminConf>{
return {httpPort: 8080}
}
private async updateFrontblockLib(){
await (new FrontblockCherryPicker("fb-dist/admin", "master", "FrontblockLib.js")).write("./static/FrontblockLib.js")
}
private async updateDashboard(){
const dashboard = new GitUpdater("./static")
const status = await dashboard.cloneRepo("https://gitea.frontblock.me/fb-dist/dashboard.git", true)
@@ -96,6 +100,7 @@ export class FrontblockAdmin extends ConfigLoader<AdminConf>{
private async initialize(){
await this.updateDashboard()
await this.updateFrontblockLib()
await this.updatePluginmanager()
let str = "../plugins/PluginManager/Plugin"