Skip to content

Latest commit

 

History

History

mock

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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')
})