Skip to content

Commit

Permalink
add bacon.toml file
Browse files Browse the repository at this point in the history
  • Loading branch information
Canop committed Dec 24, 2023
1 parent 33d7625 commit 3c18982
Show file tree
Hide file tree
Showing 3 changed files with 125 additions and 17 deletions.
84 changes: 71 additions & 13 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bacon"
version = "2.14.0"
version = "2.14.1-dev"
authors = ["dystroy <[email protected]>"]
repository = "https://github.com/Canop/bacon"
description = "background rust compiler"
Expand All @@ -15,16 +15,16 @@ rust-version = "1.65"
anyhow = "1.0.68"
cargo_metadata = "0.14.0"
clap = { version = "4.4", features = ["derive", "cargo"] }
clap-help = "0.6.1"
clap-help = "1.0.0"
cli-log = "2.0.0"
crokey = "0.4.1"
crossbeam = "0.8.2"
directories-next = "2.0.0"
gix = "0.37.2"
lazy-regex = "3.0.1"
lazy-regex = "3"
notify = "5.0.0"
serde = { version = "1.0.164", features = ["derive"] }
termimad = "0.23.1"
termimad = "0.26.1"
tokio = { version = "1.28", default-features = false, features = ["net", "sync", "process", "rt", "macros", "io-util"] }
toml = "0.7.4"
unicode-width = "0.1.10"
Expand Down
50 changes: 50 additions & 0 deletions bacon.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# a bacon.toml file dedicated to the bacon tool

default_job = "check-all"

[jobs]

[jobs.check-all]
command = ["cargo", "check", "--all-targets", "--color", "always"]
need_stdout = false
watch = ["tests", "benches", "examples"]

[jobs.check]
command = [
"cargo", "check",
"--color", "always",
"--features", "clipboard",
]
need_stdout = false
watch = ["benches"]

[jobs.test]
command = [
"cargo", "test", "--color", "always",
]
need_stdout = true

[jobs.doc]
command = ["cargo", "doc", "--color", "always", "--no-deps"]
need_stdout = false

# If the doc compiles, then it opens in your browser and bacon switches
# to the previous job
[jobs.doc-open]
command = ["cargo", "doc", "--color", "always", "--no-deps", "--open"]
need_stdout = false
on_success = "back" # so that we don't open the browser at each change

[jobs.clippy]
command = [
"cargo", "clippy",
"--color", "always",
"--",
"-A", "clippy::bool_to_int_with_if",
"-A", "clippy::collapsible_else_if",
"-A", "clippy::collapsible_if",
"-A", "clippy::derive_partial_eq_without_eq",
"-A", "clippy::len_without_is_empty",
]
need_stdout = false

0 comments on commit 3c18982

Please sign in to comment.