@vue2do/mock

Mock server for Vue2do.

Usage no npm install needed!

<script type="module">
  import vue2doMock from 'https://cdn.skypack.dev/@vue2do/mock';
</script>

README

Mock server

npm version

GraphQL Server

Configuration

...
gql: {
  execute: '../../tsDist/app/mock/server/gql/gql.js', // 启动文件路径
  port: 5168
}
...

Start

Cli:

vue2do-mock gql projectPath/mock.config.js

Require:

const vue2doMock = require('@vue2do/mock')

vue2doMock.gql({
  configPath: path.resolve(__dirname, '../mock.config.js')
})