3 changed files with 39 additions and 0 deletions
@ -0,0 +1,16 @@ |
|||
module.exports = { |
|||
port: 3000, |
|||
https: false, |
|||
// registry: 'https://registry.npm.taobao.org',
|
|||
plugins: [ |
|||
{ |
|||
name: 'qrcode', |
|||
options: { |
|||
ui: true |
|||
} |
|||
}, |
|||
// 'weinre',
|
|||
'mock', |
|||
|
|||
] |
|||
} |
@ -0,0 +1,16 @@ |
|||
{ |
|||
"name": "plugin-templete", |
|||
"version": "1.0.0", |
|||
"description": "", |
|||
"main": ".svrxrc.js", |
|||
"scripts": { |
|||
"dev": "svrx --mock --route route.js" |
|||
}, |
|||
"repository": { |
|||
"type": "git", |
|||
"url": "gitea@dd.tall.wiki:wally/plugin-templete.git" |
|||
}, |
|||
"keywords": [], |
|||
"author": "", |
|||
"license": "ISC" |
|||
} |
@ -0,0 +1,7 @@ |
|||
get('/blog').to.json({ |
|||
code: 200, |
|||
msg: 'ok', |
|||
data: { |
|||
title: 'Hello world' |
|||
} |
|||
}) |
Loading…
Reference in new issue