Skip to content

Commit

Permalink
feat: Build resources relative to Quarto project root (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
georgestagg authored Sep 4, 2024
1 parent c186cc7 commit bd17fc8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# shinylive (development version)

* Updated default shinylive assets to [v0.6.0](https://github.com/posit-dev/shinylive/releases/tag/v0.6.0). (#120)
* Updated default shinylive assets to [v0.7.0](https://github.com/posit-dev/shinylive/releases/tag/v0.7.0). (#120, #129)

* Resources are now built relative to Quarto project root. (#130)

* In CI and other automated workflow settings the `SHINYLIVE_WASM_PACKAGES` environment variable can now be used to control whether WebAssembly R package binaries are bundled with the exported shinylive app, in addition to the `wasm_packages` argument of the `export()` function. (#116)

Expand Down
5 changes: 3 additions & 2 deletions R/quarto_ext.R
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,9 @@ quarto_ext <- function(
}

build_app_resources <- function(app_json) {
appdir <- fs::path(".quarto", "_webr", "appdir")
destdir <- fs::path(".quarto", "_webr", "destdir")
projdir <- Sys.getenv("QUARTO_PROJECT_DIR", ".")
appdir <- fs::path(projdir, ".quarto", "_webr", "appdir")
destdir <- fs::path(projdir, ".quarto", "_webr", "destdir")

# Build app directory, removing any previous app expanded there
if (fs::dir_exists(appdir)) {
Expand Down

0 comments on commit bd17fc8

Please sign in to comment.