From 872a829802756456904c57f9ccf77a3b421b5535 Mon Sep 17 00:00:00 2001 From: Laurent Bovet Date: Tue, 13 Oct 2020 10:56:01 +0200 Subject: [PATCH 1/2] Warn on missing src/samples --- src/validate-samples.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/validate-samples.js b/src/validate-samples.js index 7b62f3f..abb6408 100644 --- a/src/validate-samples.js +++ b/src/validate-samples.js @@ -172,6 +172,10 @@ module.exports = { return gulp.src([]); }); - gulp.start(); + if(fse.existsSync(path.join(root, 'src', 'samples'))) { + gulp.start(); + } else { + logger.warn('No src/samples directory. Consider running `npm run create-sample`.'); + } } }; From d8a782d88c0e0e285633a2e9960c8b770c25429d Mon Sep 17 00:00:00 2001 From: Laurent Bovet Date: Tue, 13 Oct 2020 10:56:45 +0200 Subject: [PATCH 2/2] Release 0.9.10 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d7d113e..64b2481 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "apikana", - "version": "0.9.9", + "version": "0.9.10", "description": "Integrated tools for REST API design - アピ", "main": "index.js", "bin": {