5.3.1 • Published 2 years ago

umi-plugin-datahub v5.3.1

Weekly downloads
117
License
-
Repository
github
Last release
2 years ago

umi-plugin-datahub


中文版 | Offical Site

NPM version build status node version umi version npm download

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.

Contributors

xudafengsorryccPeachScriptsnapretudou527ycjcl868

This project follows the git-contributor spec, auto updated at Wed Nov 03 2021 00:03:37 GMT+0800.

Setup

Install it via npm or yarn,

$ npm i umi-plugin-datahub -D

Umi will load this plugin automatically from package.json.

Options

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.

Development

Debug Plugin

$ cd test/fixture
$ npm run dev

Debug UI

# watch build
$ npm run build -- -w
$ cd test/fixture
$ npm run dev:ui

Example

LICENSE

MIT

5.3.1

2 years ago

5.2.0

2 years ago

5.0.1

4 years ago

5.0.0

4 years ago

4.1.0

4 years ago

4.0.0

4 years ago

4.0.0-beta.1

4 years ago

4.0.0-beta.0

4 years ago

4.0.0-0

4 years ago

3.2.1

4 years ago

3.2.0

4 years ago

3.1.0

4 years ago

3.0.0

5 years ago

3.0.0-beta.2

5 years ago

3.0.0-beta.1

6 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

0.2.0

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago