umi plugin for integrating macaca-datahub, which is a GUI-style mock tool that can be used to replace umi's built-in mock solution.
xudafeng |
sorrycc |
PeachScript |
snapre |
tudou527 |
ycjcl868 |
---|
This project follows the git-contributor spec, auto updated at Wed Nov 03 2021 00:03:37 GMT+0800
.
Install it via npm or yarn,
$ npm i umi-plugin-datahub -D
Umi will load this plugin automatically from package.json
.
We can specify options for macaca-datahub, such as proxy and store.
export default {
datahub: {
proxy: {
'^/api': {
hub: 'hubname',
},
},
store: path.join(__dirname, 'data'),
},
};
Checkout macaca-datahub for more options.
Debug Plugin
$ cd test/fixture
$ npm run dev
Debug UI
# watch build
$ npm run build -- -w
$ cd test/fixture
$ npm run dev:ui
MIT