self update and serve static/dist

This commit is contained in:
peter
2019-08-28 00:24:30 +02:00
parent fc0bae15ed
commit 997ae629b6
5 changed files with 15 additions and 116 deletions
+4 -4
View File
@@ -21,11 +21,11 @@ export type NPMVersion = string
export const install = (plugins: Plugin[] = []) => {
const npmPkgs = [['sqlite3', '4.1.0'], ['knex', '0.19.2']]
const deps = npmPkgs.map((pkg) => {return pkg[0] + '@' + pkg[1]} )
logger.info("Checking npm dependencies..." + deps)
const npmPkgs:[NPMPkgName, NPMVersion][] = [['sqlite3', '4.1.0'], ['knex', '0.19.2']]
const deps = npmPkgs.map(tuple => tuple.join('@') ).join(" ")
logger.info("Installing plaform dependencies: "+deps)
exec("npm i --prefix ./plugins " + deps.join(' ')).then(process => {
exec("npm i --prefix ./plugins " + deps).then(process => {
logger.debug(process.stdout)
const Admin = require("./Admin").FrontblockAdmin