chore: add new files generation

This commit is contained in:
Kazhnuz 2020-06-04 18:55:30 +02:00
parent 17257e365b
commit 650e2832d7
2 changed files with 27 additions and 0 deletions

6
generate.sh Normal file
View file

@ -0,0 +1,6 @@
echo "STEP 1 - Generation des fichiers statics"
gulp
echo "STEP 2 - Generation du blog"
cd src/blog
hexo generate

21
gulpfile.js Normal file
View file

@ -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);