From 48b6ab18f05e6d6efbdd7f2494a90db2721071dd Mon Sep 17 00:00:00 2001 From: dengtongyu Date: Mon, 19 Nov 2018 10:12:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=AE=B9=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- task/task.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/task/task.js b/task/task.js index ad8a218..76e1214 100644 --- a/task/task.js +++ b/task/task.js @@ -12,6 +12,11 @@ let _paths = {}; let _configJson = {}; exports.init = (type, paths, command) => { + if(type != 'react') { + console.error(chalk.bold.red('暂不支持该类型模板!')); + return; + } + _paths = paths; let tplPath = path.join(_paths.rootPath, util.tplTypePath(type));