0.1.6 • Published 2 years ago

rubest-plugins v0.1.6

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

插件集注入

插件的注入分为两种方式,分别在运行时,和编译期,通过 rubest.config.js 进行判断:

// 简单方案,并且该文件不存在时,默认加载所有的插件。
module.exports = {
    plugins:[
        'rubest-plugin-table'
    ]
}

// 细化方案
module.exports = {
    plugins: [
        {
            name:'rubest-plugin-table',
            mode: "dynamic", // 默认为 static
            interface: 'http://xxx/xxx/xxx/xxx.js' // 默认不开启,在 mode 为 dynamic 时进行开启,开启后,.json 文件失效,所有内容默认从接口中获取
            schema: {
                // 或者可以在这里进行动态加载,在schema 和 interface 同时存在时,以 schema 优先。
            }
        }
    ],

}
0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago