File tree 1 file changed +16
-21
lines changed
1 file changed +16
-21
lines changed Original file line number Diff line number Diff line change 1
1
@_ default :
2
- just --list --unsorted
2
+ just --list --unsorted
3
3
4
4
# Run all recipes
5
- run-all : install-dependencies spell-check style build-site
5
+ run-all : install-dependencies check-spelling style build-website
6
+
7
+ # Installs the pre-commit hooks, if not done already
8
+ install-pre-commit :
9
+ uvx pre-commit install
6
10
7
11
# Install package dependencies
8
12
install-dependencies :
9
13
#!/ usr/ bin/ Rscript
10
14
pak::pak(ask = FALSE)
11
15
12
- # Check spelling of Markdown files
13
- spell-check :
14
- #!/ usr/ bin/ Rscript
15
- files <- fs::dir_ls(here::here(), recurse = TRUE, regexp = " *\\ .(md|qmd|Rmd)" )
16
- dictionary_file <- here::here(" includes/dictionary.txt" )
17
- ignore_words <- character()
18
- if (fs::file_exists(dictionary_file))
19
- ignore_words <- readLines(dictionary_file)
20
- spelling::spell_check_files(
21
- files,
22
- ignore_words,
23
- lang = " en_GB"
24
- )
16
+ # Check spelling
17
+ check-spelling :
18
+ uvx typos
25
19
26
20
# Style all R code
27
21
style :
28
- #!/ usr/ bin/ Rscript
29
- styler::style_dir(
30
- here::here(),
31
- exclude_dirs = c(" .quarto" , " _extensions" ),
32
- )
22
+ # Need to install air first
23
+ air format .
33
24
34
25
# Build Quarto website
35
- build-site :
26
+ build-website :
36
27
quarto render
28
+
29
+ # Installs the pre-commit hooks, if not done already
30
+ install-pre-commit :
31
+ uvx pre-commit install
You can’t perform that action at this time.
0 commit comments