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": { 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`.'); + } } };