From aff25823c1bd8f5fa2f56c93d06ab5541fc8d827 Mon Sep 17 00:00:00 2001 From: lwjohnst86 Date: Sat, 9 Nov 2024 20:35:46 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=84=20created=20local=20'justfile'=20f?= =?UTF-8?q?rom=20remote=20'justfile'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- justfile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 justfile diff --git a/justfile b/justfile new file mode 100644 index 0000000..aaef9a2 --- /dev/null +++ b/justfile @@ -0,0 +1,25 @@ +@_default: + just --list --unsorted + +# Run all recipes +run-all: install-dependencies spell-check style build-site + +# Install package dependencies +install-dependencies: + #!/usr/bin/Rscript + pak::pak(ask = FALSE) + +# Check spelling of Markdown files +spell-check: + #!/usr/bin/Rscript + files <- fs::dir_ls(here::here(), recurse = TRUE, regexp = "*\\.(md|qmd|Rmd)") + spelling::spell_check_files(files) + +# Style all R code +style: + #!/usr/bin/Rscript + styler::style_dir(here::here()) + +# Build pkgdown website +build-site: + quarto render