From 2f8965e1880d45e17663dbe9f5fdef7bcc9ef35f Mon Sep 17 00:00:00 2001 From: h13i32maru Date: Sun, 4 Oct 2015 21:09:17 +0900 Subject: [PATCH] fix: check config.manual --- src/Generator.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Generator.js b/src/Generator.js index 70a917b..6dc64c4 100644 --- a/src/Generator.js +++ b/src/Generator.js @@ -114,6 +114,16 @@ export default class Generator { config.package = path.resolve(repoDirPath, './package.json'); } + if (config.manual) { + if (config.manual.overview) path.resolve(repoDirPath, config.manual.overview); + if (config.manual.installation) path.resolve(repoDirPath, config.manual.installation); + if (config.manual.usage) path.resolve(repoDirPath, config.manual.usage); + if (config.manual.example) path.resolve(repoDirPath, config.manual.example); + if (config.manual.faq) path.resolve(repoDirPath, config.manual.faq); + if (config.manual.changelog) path.resolve(repoDirPath, config.manual.changelog); + } + + config.lint = false; config.coverage = true; config.scripts = []; config.styles = [];