refactor: Follow monorepo pattern elsewhere

This commit is contained in:
Ed Page 2020-05-18 19:58:38 -05:00
parent 04837f0bfd
commit 814ff82aff
39 changed files with 12 additions and 12 deletions

View file

@ -1,10 +1,10 @@
[workspace]
members = [
"typos",
"dict/typos", "dict/typos/codegen",
"dict/codespell", "dict/codespell/codegen",
"dict/misspell", "dict/misspell/codegen",
"dict/wikipedia", "dict/wikipedia/codegen",
"crates/typos",
"crates/typos-dict", "crates/typos-dict/codegen",
"crates/codespell-dict", "crates/codespell-dict/codegen",
"crates/misspell-dict", "crates/misspell-dict/codegen",
"crates/wikipedia-dict", "crates/wikipedia-dict/codegen",
]
[package]
@ -29,8 +29,8 @@ azure-devops = { project = "crate-ci", pipeline = "typos" }
codecov = { repository = "crate-ci/typos" }
[dependencies]
typos = { version = "^0.3", path = "typos" }
typos-dict = { version = "^0.2", path = "dict/typos" }
typos = { version = "^0.3", path = "crates/typos" }
typos-dict = { version = "^0.2", path = "crates/typos-dict" }
phf = { version = "0.8", features = ["unicase"] }
unicase = "2.5"
anyhow = "1.0"

View file

@ -28,16 +28,16 @@ stages:
steps:
- template: install-rust.yml@templates
- script: |
cargo run --package typos-codegen -- --output dict/typos/src/dict_codegen.rs --check
cargo run --package typos-codegen -- --output crates/typos-dict/src/dict_codegen.rs --check
displayName: Verify typos-dict
- script: |
cargo run --package codespell-codegen -- --output dict/codespell/src/dict_codegen.rs --check
cargo run --package codespell-codegen -- --output crates/codespell-dict/src/dict_codegen.rs --check
displayName: Verify codespell-dict
- script: |
cargo run --package misspell-codegen -- --output dict/misspell/src/dict_codegen.rs --check
cargo run --package misspell-codegen -- --output crates/misspell-dict/src/dict_codegen.rs --check
displayName: Verify misspell-dict
- script: |
cargo run --package wikipedia-codegen -- --output dict/wikipedia/src/dict_codegen.rs --check
cargo run --package wikipedia-codegen -- --output crates/wikipedia-dict/src/dict_codegen.rs --check
displayName: Verify wikipedia-dict
- stage: committed
displayName: Lint History

View file

@ -28,4 +28,4 @@ fn main() {
}
";
pub const CORPUS: &str = include_str!("../dict/typos/assets/words.csv");
pub const CORPUS: &str = include_str!("../crates/typos-dict/assets/words.csv");

View file

Can't render this file because it is too large.