diff --git a/.gitignore b/.gitignore index 92bc629..0f17700 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ test-archive.tar.gz out/ dist/ +temp/ # Added by cargo /target diff --git a/Trunk.toml b/Trunk.toml index 0a3e74f..70695d1 100644 --- a/Trunk.toml +++ b/Trunk.toml @@ -3,7 +3,24 @@ release = false dist = "dist" public_url = "/" +[watch] +ignore = ["temp"] + [serve] address = "0.0.0.0" port = 3000 +[[hooks]] +stage = "pre_build" +command = "sh" +command_arguments = ["-c", "mkdir -p ./temp && tar -xzf ./test-archive.tar.gz -C ./temp"] + +[[hooks]] +stage = "pre_build" +command = "cp" +command_arguments = ["-r", "./temp/", "./dist/.stage/media" ] + +[[hooks]] +stage = "pre_build" +command = "cp" +command_arguments = ["-r", "./resources/", "./dist/.stage/resources" ] diff --git a/index.html b/index.html index faeecbc..c3f6d2e 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,8 @@
-