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/
|
||||
node_modules/
|
||||
dist/
|
||||
public/
|
||||
|
|
16
generate.sh
16
generate.sh
|
@ -1,19 +1,21 @@
|
|||
echo "STEP 1 - Nettoyage du dossier de generation"
|
||||
rm -rf dist/*
|
||||
|
||||
echo "STEP 2 - Generation des fichiers statics"
|
||||
echo "STEP 1 - Generation des fichiers statics"
|
||||
gulp
|
||||
|
||||
echo "STEP 3 - Generation du blog"
|
||||
echo "STEP 2 - Generation du blog"
|
||||
cd src/blog
|
||||
hexo generate
|
||||
|
||||
cd ../../
|
||||
|
||||
echo "STEP 4 - Generation de l'espace littéraire"
|
||||
echo "STEP 3 - Generation de l'espace littéraire"
|
||||
cd src/textes
|
||||
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
|
||||
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