chore(app): move it to crates/ to establish the new structure.

It is similar to `nu-shell`, which has a lot of crates by now,
which is something we probably see here as well.
This commit is contained in:
Sebastian Thiel 2024-03-30 17:53:44 +01:00
parent b39779366f
commit 47e5badbfc
No known key found for this signature in database
GPG Key ID: 9CB5EE7895E8268B
77 changed files with 10 additions and 5 deletions

View File

@ -69,7 +69,7 @@ correctness = "deny"
[workspace]
members = [
"gitbutler-app",
"crates/gitbutler-app",
"gitbutler-changeset",
"gitbutler-git",
]

View File

@ -56,7 +56,7 @@ tokio-util = "0.7.10"
tracing = "0.1.40"
tracing-appender = "0.2.3"
tracing-subscriber = "0.3.17"
gitbutler = { path = "../" }
gitbutler = { path = "../.." }
[lints.clippy]
all = "deny"

View File

@ -5,7 +5,12 @@ fn main() {
// it before building.
let manifest_dir = std::path::PathBuf::from(env!("CARGO_MANIFEST_DIR"));
assert_eq!(manifest_dir.file_name().unwrap(), "gitbutler-app");
let build_dir = manifest_dir.parent().unwrap().join("gitbutler-ui/build");
let build_dir = manifest_dir
.parent()
.unwrap()
.parent()
.unwrap()
.join("gitbutler-ui/build");
if !build_dir.exists() {
// NOTE(qix-): Do not use `create_dir_all` here - the parent directory
// NOTE(qix-): already exists, and we want to fail if not (for some reason).

View File

Before

Width:  |  Height:  |  Size: 6.1 KiB

After

Width:  |  Height:  |  Size: 6.1 KiB

View File

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

View File

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

Before

Width:  |  Height:  |  Size: 4.7 KiB

After

Width:  |  Height:  |  Size: 4.7 KiB

View File

Before

Width:  |  Height:  |  Size: 6.7 KiB

After

Width:  |  Height:  |  Size: 6.7 KiB

View File

Before

Width:  |  Height:  |  Size: 7.1 KiB

After

Width:  |  Height:  |  Size: 7.1 KiB

View File

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

View File

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

View File

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

View File

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

Before

Width:  |  Height:  |  Size: 5.8 KiB

After

Width:  |  Height:  |  Size: 5.8 KiB

View File

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

View File

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

View File

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 24 KiB

View File

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 33 KiB

View File

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

View File

@ -3,7 +3,7 @@
"beforeDevCommand": "pnpm dev",
"beforeBuildCommand": "pnpm build:development",
"devPath": "http://localhost:1420",
"distDir": "../gitbutler-ui/build",
"distDir": "../../gitbutler-ui/build",
"withGlobalTauri": false
},
"package": {

View File

@ -1,4 +1,4 @@
// TODO(ST): move test code into crate and use that, but wait for `crates/`
#[path = "../../tests/shared/mod.rs"]
#[path = "../../../tests/shared/mod.rs"]
pub mod shared;
mod watcher;