0.1.21 • Published 17 days ago

abler-tools v0.1.21

Weekly downloads
-
License
ISC
Repository
-
Last release
17 days ago

彭彭自用包:abler-tools

应用项目公用工具库(合集)

已将以下包合并为一个包:

abler-lang

abler-util

abler-db

abler-messenger

abler-fs-oss

abler-net

abler-api

abler-drm-tool(abler-drm-tool已分离,并依赖此abler-tools包)

安装

npm i abler-tools

引用

const {ppUtil,apiUtil, preconditions, ...} = require("abler-tools");
const conf = require('../config/config');
const errCfg = require('../config/error');
apiUtil.config(conf, err);

......

async function initService() {
	// 支持各种服务之前,检查前置条件是否满足
    let ok = await preconditions
        .addChecker(preconditions.checkExEnvSetting, (jsfile) => require(jsfile), true)
        .addChecker(preconditions.initDb)
        .addChecker(preconditions.checkRedis)
        .addChecker(preconditions.initKvStorage, dbSql)
        // .addChecker(checkDbVer, undefined, true)
        // .addChecker(commonUtil.initCommonEnv)
        // .addChecker(cdsManager.registerDefaultAccounts)
        // .addChecker(cdsManager.registerDefaultApp)
        .checkAll();
    if (!ok) {
        setTimeout(() => {
            process.exit(0);
        }, 500);
        // process.exit(199);
        return ok;
    }
    console.log("前置条件检查完毕,启动服务...");
    ......
}
0.1.21

17 days ago

0.1.20

18 days ago

0.1.19

19 days ago

0.1.18

24 days ago

0.1.16

26 days ago

0.1.17

26 days ago

0.1.15

1 month ago

0.1.14

1 month ago

0.1.12

2 months ago

0.1.13

2 months ago

0.1.11

3 months ago

0.1.10

4 months ago

0.1.9

4 months ago

0.1.8

4 months ago

0.1.7

4 months ago

0.1.4

4 months ago

0.1.6

4 months ago

0.1.5

4 months ago

0.1.3

4 months ago

0.1.2

4 months ago

0.1.1

4 months ago

0.1.0

4 months ago