self update and serve static/dist
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user