From a06d26395f1b94b7f55fd1aab6c53d779764d6e0 Mon Sep 17 00:00:00 2001 From: sean Date: Tue, 5 Sep 2017 17:11:13 +0800 Subject: [PATCH 1/2] chore: chore dev-client build --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index db32ecad..6a5106e7 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "dev-server": "nodemon server/app.js dev -L", "install-server": "node server/install.js", - "dev-client": "ykit s -p 4000", + "dev-client": "ykit watch", "dev": "npm run dev-server & npm run dev-client", "server": "node server/app.js" }, From aa8ee20c68136cf28651fed352b0daf06a49b220 Mon Sep 17 00:00:00 2001 From: sean Date: Tue, 5 Sep 2017 17:36:16 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=89=BE=E4=B8=8D?= =?UTF-8?q?=E5=88=B0=E6=8F=92=E4=BB=B6=E7=9A=84=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/plugin.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/plugin.js b/server/plugin.js index 740f4682..1f3499da 100644 --- a/server/plugin.js +++ b/server/plugin.js @@ -50,7 +50,8 @@ module.exports = function(){ if(yapi.WEBCONFIG.plugins && Array.isArray(yapi.WEBCONFIG.plugins)){ yapi.WEBCONFIG.plugins.forEach(plugin=>{ if(!yapi.commons.fileExist(yapi.path.join(plugin_path, 'yapi-plugin-' + plugin + '/server.js'))){ - throw new Error(`请安装插件(${plugin}), npm install yapi-plugin-${plugin}`) + throw new Error(`请安装插件(${plugin}), npm install yapi-plugin-${plugin}`); + process.exit(); } let pluginModule = require(yapi.path.join(plugin_path, 'yapi-plugin-' + plugin + '/server.js')); pluginModule.apply(yapi)