1 | const API = require('cubic-api')
|
2 | const local = require('./config/local.js')
|
3 | const WebpackServer = require('./webpack/webpack.js')
|
4 |
|
5 | class Ui {
|
6 | constructor (options) {
|
7 | this.config = {
|
8 | local: local,
|
9 | provided: options || {}
|
10 | }
|
11 | }
|
12 |
|
13 | async init () {
|
14 | const ui = await cubic.use(new API(cubic.config.ui.api))
|
15 | ui.webpackServer = new WebpackServer()
|
16 | }
|
17 | }
|
18 |
|
19 | module.exports = Ui
|