mirror of
https://gitlab.com/novaloop-oss/angular/localization.git
synced 2025-12-06 04:51:52 +00:00
feat: adds scully
This commit is contained in:
17
scullyfy.sh
Executable file
17
scullyfy.sh
Executable 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
|
||||
Reference in New Issue
Block a user