From 902016afff0073e2441be3a68f727a0e53729500 Mon Sep 17 00:00:00 2001 From: Stephan Date: Tue, 19 Mar 2019 20:32:49 +0100 Subject: [PATCH] Make `reports` folder if it does not exist --- gulpfile.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gulpfile.js b/gulpfile.js index 1e99278..b3f9391 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -141,6 +141,10 @@ function style() { } // Linting function styleLint() { + var dir = output.reports; + if (!fs.existsSync(dir)){ + fs.mkdirSync(dir); + } var file = fs.createWriteStream(output.reports +'/sass-lint.html'); var stream = src(input.style) .pipe(plumber())