feat: adds scully

This commit is contained in:
Markus Huggler
2020-11-10 21:11:35 +01:00
parent 7f72252f33
commit ed22dcf5a4
30 changed files with 2078 additions and 355 deletions

17
scullyfy.sh Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/bash
languages=(en de)
rm -rf dist/static
for language in "${languages[@]}"
do
index_file="dist/localization/$language/index.html"
echo "Replace base href for $language in $index_file"
sed -i -e 's/"\/'$language'\/"/"\/"/g' $index_file
echo "Build scully for $language"
LOCALE=$language npm run scully -- --scanRoutes
LOCALE=$language npm run scully
done
cp htaccess.file dist/static/.htaccess