Similar to packer::scaffold_widget() but replace javascript with typescript, yarn with pnpm and webpack with esbuild

scaffold(
  dir,
  path,
  rstudio = rstudioapi::isAvailable(),
  open = rlang::is_interactive(),
  is_package = FALSE
)

scaffold_widget(...)

scaffold_quarto_book(...)

scaffold_bookdown_book(...)

Arguments

dir

directory to copy, relative to to inst/

path

project path

rstudio

if rstudio is available

open

if rstudio is open

Value

the new project path

Examples

if (FALSE) {
scaffold_widget("~/mywidget")
}