Quellcode durchsuchen

make make executable

light
Garrick Aden-Buie vor 7 Jahren
Ursprung
Commit
f7a826fb85
1 geänderte Dateien mit 14 neuen und 3 gelöschten Zeilen
  1. +14
    -3
      make.R

+ 14
- 3
make.R Datei anzeigen

#! /usr/bin/env Rscript
library(sass) library(sass)
library(fs) library(fs)
library(purrr) library(purrr)
path_ext(output) <- "rstheme" path_ext(output) <- "rstheme"
} }
output <- path(outdir, output) output <- path(outdir, output)
out_sass <- sass(sass_file(paste(file)))
writeLines(out_sass, output)
sass(sass_file(paste(file)), output = output)
} }


dir_create("rsthemes") dir_create("rsthemes")


dir_ls(regexp = "^[^_].+\\.scss") %>% dir_ls(regexp = "^[^_].+\\.scss") %>%
walk(render_sass)
walk(render_sass)

cp_to_rstudio <- function(file) {
file_copy(
file,
path_home_r(".R", "rstudio", "themes", path_file(file)),
overwrite = TRUE
)
}

dir_ls("rsthemes", regexp = "\\.rstheme") %>%
walk(cp_to_rstudio)

Laden…
Abbrechen
Speichern