Bläddra i källkod

Delete intermediate or output files on each run

Ensure final builds are always clean
master
Garrick Aden-Buie 7 år sedan
förälder
incheckning
cf4985239e
1 ändrade filer med 5 tillägg och 1 borttagningar
  1. +5
    -1
      make.R

+ 5
- 1
make.R Visa fil



source("R/make_functions.R") source("R/make_functions.R")


dir_delete("dist")
dir_create("dist") dir_create("dist")


cli_alert_info("Prepping base16 themes...") cli_alert_info("Prepping base16 themes...")
file_delete(dir_ls("src", regexp = "base16.+scss$"))
dir_ls("src/palettes/base16/", regexp = "_base16.+scss") %>% dir_ls("src/palettes/base16/", regexp = "_base16.+scss") %>%
walk(base16_make_theme) walk(base16_make_theme)


cli_alert_success("Reloading {strong {current_theme}}") cli_alert_success("Reloading {strong {current_theme}}")
rstudioapi::applyTheme(current_theme) rstudioapi::applyTheme(current_theme)
} else { } else {
cli_alert_info("Use {code {fun list_sassy_themes}} to list Sassy RStudio themes")
if (interactive()) {
cli_alert_info("Use {code {fun list_sassy_themes}} to list Sassy RStudio themes")
}
cli_alert_info("Use {code {fun rstudioapi::applyTheme}} to enable the above themes") cli_alert_info("Use {code {fun rstudioapi::applyTheme}} to enable the above themes")
} }

Laddar…
Avbryt
Spara