Newer
Older
shell.set('-e'); // exit upon first error
.=*#%%#*= -*#%%#*=. =+- ++. .+ .+#%%#+. :++ -+-
:@@=:..:+@@. #@#:..:+@@. *@* @@: -@#@+:..-@@- -@@ *@*
+@* %@= .@@. %@= *@* @@: -@@. *@* -@@ *@*
+@* %@= %@* *%= *@* @@: -@@ *@* -@@ *@*
+@* %@= +@@= *@* @@: -@@ *@* -@@ *@*
+@* %@= .+@@+. *@* @@: -@@ *@* -@@ *@*
+@* %@= .+@@+. *@* @@: -@@ *@* .@@=. :@@=
+@* %@= == +@@: *@* @@: -@@ *@* .+%@@@@%*-
+@* %@= .@@. +@# *@* .@@: -@@ *@* @@-
=@% .@@- @@- #@# +@# :#@@: -@@ *@* @@-
=%@%##%@%= :#@%##%@@* *@@##@%=:@: :@@ *@+ %@-
.:.. ..:. ...
.authors__term,
.categories__term,
.diplomas__taxonomy, .block-diplomas,
.organizations__section, .block-organizations,
.pages__section, .block-pages,
.persons__section, .block-persons,
.posts__section, .block-posts, .post-sidebar,
.programs__section, .block-programs
`;
function execute(string) {
console.log("OSUNY runs " + string);
execute("hugo");
execute("npx pagefind --site 'public' --output-subdir '../static/pagefind' --exclude-selectors '" + pagefindExclude + "'");
execute("hugo server");
execute("hugo");
execute("npm_config_yes=true npx pagefind --site 'public' --exclude-selectors '" + pagefindExclude + "'");
execute("git pull --recurse-submodules --depth 1");
execute("git submodule update --remote");
execute("git submodule add https://github.com/noesya/osuny-example");
execute("hugo server --config osuny-example/config/example/config.yaml");
execute("yarn setup-example > /dev/null || yarn upgrade");
execute("yarn osuny server-example");
execute("cd themes/osuny-hugo-theme-aaa");
execute("git checkout main");
execute("git pull");
execute("cd ../..");
execute("yarn upgrade");