improvement: better compilation
This commit is contained in:
parent
099a2e27b0
commit
014c0da49d
2 changed files with 10 additions and 7 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,3 +1,4 @@
|
||||||
.sass-cache/
|
.sass-cache/
|
||||||
node_modules/
|
node_modules/
|
||||||
dist/
|
dist/
|
||||||
|
public/
|
||||||
|
|
16
generate.sh
16
generate.sh
|
@ -1,19 +1,21 @@
|
||||||
echo "STEP 1 - Nettoyage du dossier de generation"
|
echo "STEP 1 - Generation des fichiers statics"
|
||||||
rm -rf dist/*
|
|
||||||
|
|
||||||
echo "STEP 2 - Generation des fichiers statics"
|
|
||||||
gulp
|
gulp
|
||||||
|
|
||||||
echo "STEP 3 - Generation du blog"
|
echo "STEP 2 - Generation du blog"
|
||||||
cd src/blog
|
cd src/blog
|
||||||
hexo generate
|
hexo generate
|
||||||
|
|
||||||
cd ../../
|
cd ../../
|
||||||
|
|
||||||
echo "STEP 4 - Generation de l'espace littéraire"
|
echo "STEP 3 - Generation de l'espace littéraire"
|
||||||
cd src/textes
|
cd src/textes
|
||||||
hexo generate
|
hexo generate
|
||||||
|
|
||||||
echo "STEP 5 - Générations des livres à télécharger"
|
echo "STEP 4 - Générations des livres à télécharger"
|
||||||
cd ../crowbook
|
cd ../crowbook
|
||||||
source generate-text.sh
|
source generate-text.sh
|
||||||
|
|
||||||
|
echo "STEP 5 - Remplacement dossier public par dossier temp"
|
||||||
|
cd ../../
|
||||||
|
rm -rf public/*
|
||||||
|
mv dist public
|
||||||
|
|
Reference in a new issue