From 650e2832d7686b1f767517a0c9b6022f9461aeae Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Thu, 4 Jun 2020 18:55:30 +0200 Subject: [PATCH] chore: add new files generation --- generate.sh | 6 ++++++ gulpfile.js | 21 +++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 generate.sh create mode 100644 gulpfile.js diff --git a/generate.sh b/generate.sh new file mode 100644 index 0000000..af61877 --- /dev/null +++ b/generate.sh @@ -0,0 +1,6 @@ +echo "STEP 1 - Generation des fichiers statics" +gulp + +echo "STEP 2 - Generation du blog" +cd src/blog +hexo generate diff --git a/gulpfile.js b/gulpfile.js new file mode 100644 index 0000000..366929b --- /dev/null +++ b/gulpfile.js @@ -0,0 +1,21 @@ +const { src, dest, parallel } = require('gulp'); +const include = require('gulp-include'); +const sass = require('gulp-sass'); +const cleanCSS = require('gulp-clean-css'); + +sass.compiler = require('node-sass'); + +function css() { + return src('scss/style.scss') + .pipe(sass().on('error', sass.logError)) + .pipe(dest('public')) +} + +function data() { + return src(['src/data/**/*']) + .pipe(dest('public')); +} + +exports.css = css; +exports.data = data; +exports.default = parallel(css, data);