Skip to content

Commit 48a1ac6

Browse files
authored
build(taskfile): simplify (#314)
1 parent e59754c commit 48a1ac6

File tree

1 file changed

+6
-30
lines changed

1 file changed

+6
-30
lines changed

Taskfile.yml

Lines changed: 6 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,10 @@ tasks:
3333
internal: true
3434
desc: Install Rust packages for development.
3535
cmds:
36-
- cargo install cargo-license cargo-outdated savvy-cli
37-
38-
cargo-update:
39-
desc: Update the lock files.
40-
sources:
41-
- "{{.MANIFEST}}"
42-
generates:
43-
- "{{.CARGO_LOCK}}"
44-
cmds:
45-
- cargo outdated --manifest-path "{{.MANIFEST}}"
36+
- cargo install cargo-license savvy-cli
4637

4738
build-vendor-sources:
4839
desc: Vendor Rust sources.
49-
deps:
50-
- cargo-update
5140
sources:
5241
- "{{.CARGO_LOCK}}"
5342
- dev/vendoring.R
@@ -74,6 +63,7 @@ tasks:
7463
- build-lib-sums
7564
- build-documents
7665
cmds:
66+
- task: lint-and-format-r
7767
- task: test-all
7868
- task: build-license-note
7969
- task: build-authors
@@ -148,7 +138,7 @@ tasks:
148138
deps:
149139
- build-wrappers
150140
cmds:
151-
- Rscript -e 'devtools::document()'
141+
- Rscript -e 'devtools::load_all(); devtools::document()'
152142

153143
build-wrappers:
154144
internal: true
@@ -160,11 +150,13 @@ tasks:
160150
- "{{.CARGO_LOCK}}"
161151
- "{{.RUST_SOURCE}}"
162152
deps:
153+
- lint-and-format-rust
163154
- build-vendor-sources
164155
generates:
165156
- R/000-wrappers.R
166157
cmds:
167158
- savvy-cli update .
159+
- Rscript -e 'pkgbuild::compile_dll()'
168160

169161
build-license-note:
170162
internal: true
@@ -214,12 +206,6 @@ tasks:
214206
cmds:
215207
- Rscript -e 'testthat::snapshot_accept()'
216208

217-
lint-and-format:
218-
desc: Lint and auto-format R and Rust code.
219-
deps:
220-
- lint-and-format-r
221-
- lint-and-format-rust
222-
223209
lint-and-format-r:
224210
internal: true
225211
desc: Lint and auto-format R code.
@@ -232,7 +218,7 @@ tasks:
232218
- Rscript -e
233219
'devtools::load_all();
234220
lintr::lint_package();
235-
styler::style_pkg()'
221+
styler::style_pkg(exclude_files = "R/000-wrappers.R")'
236222

237223
lint-and-format-rust:
238224
internal: true
@@ -244,13 +230,3 @@ tasks:
244230
cmds:
245231
- cargo clippy --manifest-path {{.MANIFEST}}
246232
- cargo fmt --manifest-path {{.MANIFEST}}
247-
248-
release-prep:
249-
desc: "Prepare for a release. args: VERSION: major, minor, or patch"
250-
deps:
251-
- build-all
252-
- lint-and-format
253-
cmds:
254-
- Rscript -e '
255-
usethis::use_version(which = "{{.VERSION}}");
256-
usethis::use_cran_comments()'

0 commit comments

Comments
 (0)