Skip to content
Snippets Groups Projects
Unverified Commit 1e221f64 authored by Sébastien Gaya's avatar Sébastien Gaya Committed by GitHub
Browse files

Merge pull request #237 from noesya/percy

Add percy-build command
parents 7548048d b6adbf0d
No related branches found
No related tags found
No related merge requests found
......@@ -30,8 +30,8 @@ let pagefindExclude = `
.events__section, .block-agenda,
.organizations__section, .block-organizations,
.pages__section, .block-pages,
.persons__section, .block-persons,
.posts__section, .block-posts, .post-sidebar,
.persons__section, .block-persons,
.posts__section, .block-posts, .post-sidebar,
.programs__section, .block-programs,
.researchers__term,
.teachers__term
......@@ -50,7 +50,6 @@ if (command === "dev") {
execute("hugo");
execute("npx pagefind --site 'public' --output-subdir '../static/pagefind' --exclude-selectors '" + pagefindExclude + "'");
execute("hugo server");
}
if (command === "build") {
......@@ -59,6 +58,12 @@ if (command === "build") {
execute("npm_config_yes=true npx pagefind --site 'public' --exclude-selectors '" + pagefindExclude + "'");
}
if (command === "percy-build") {
execute("yarn upgrade");
execute("hugo --baseURL=/");
execute("npm_config_yes=true npx pagefind --site 'public' --exclude-selectors '" + pagefindExclude + "'");
}
if (command === "update") {
execute("git pull --recurse-submodules --depth 1");
execute("git submodule update --remote");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment