Merge branch 'master' of ssh://gitea.frontblock.me:2222/fb-vendor/admin

This commit is contained in:
peter
2019-08-27 23:18:09 +02:00
2 changed files with 5 additions and 3 deletions
+4 -2
View File
@@ -19,10 +19,12 @@ const logger = Logger.getLogger("installer")
export type NPMPkgName = string
export type NPMVersion = string
export const install = (plugins: Plugin[] = [], npmPkgs: [NPMPkgName, NPMVersion][] = []) => {
export const install = (plugins: Plugin[] = []) => {
logger.info("Checking npm dependencies...")
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)
exec("npm i --prefix ./plugins " + deps.join(' ')).then(process => {
logger.debug(process.stdout)
+1 -1
View File
@@ -1,2 +1,2 @@
import { install } from "./Installer";
install([], [['sqlite3', '4.1.0'], ['knex', '0.19.2']])
install([])