mvss
v1.0.5
Published
mvss from build module application
Downloads
1
Readme
mvss
配置
const mvss = require('mvss')
const app = mvss()
// 开启
app.start()
// express - 服务器端开启
const middleware = require('mvss-node-middleware')
const $app = express()
$app.use(middleware.express(app))
loader配置
//demo
class demo {
// 初始化
constructor(opt){}
// 挂载,用于修饰modules
bootstrap(modules){}
// 扩展ctx属性
pipe(ctx){}
// 开启时调用
start(ctx){}
// 报错时调用
error(e){}
}
const app = mvss({
loaders: [
{
loader: demo,
options: {}
}
]
})
modules
class Pager {
//
}