Skip to content

Commit 7969282

Browse files
authored
refactor: organizing into workspace crates (#172)
* refactor: organize crates * refactor: update version spm_core * refactor: fix tests folder * refactor: remove script
1 parent 22773a3 commit 7969282

27 files changed

+158
-95
lines changed

.vscode/settings.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"editor.fontSize": 15,
3+
"terminal.integrated.fontSize": 14,
4+
"workbench.iconTheme": "material-icon-theme",
5+
"workbench.colorTheme": "Tokyo Night Pro"
6+
}

Cargo.lock

Lines changed: 78 additions & 70 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,27 @@
1-
[package]
2-
name = "spm-swift-package"
1+
[workspace]
2+
members = [
3+
"crates/spm_core",
4+
"crates/cli",
5+
]
6+
resolver = "2"
7+
8+
[workspace.package]
39
version = "0.8.0"
410
edition = "2024"
5-
authors = ["João Lucas <joaolucasfp2001@gmail.com>"]
611
license = "MIT"
12+
authors = ["João Lucas <joaolucasfp2001@gmail.com>"]
713
description = "Command Line Tools for macOS to create project in Swift Package Manager with desirable files."
814
readme = "README.md"
915
repository = "https://github.com/heroesofcode/spm-swift-package"
10-
exclude = [".github/**", ".api/*"]
1116

12-
[dependencies]
17+
[workspace.dependencies]
1318
demand = "1.7.2"
1419
clap = "4.5.49"
1520
colored = "3.0.0"
1621
tokio = { version = "1.48.0", features = ["full"] }
22+
insta = "1.43.2" # dev-dependency
1723

18-
[dev-dependencies]
19-
insta = "1.43.2"
24+
[profile.release]
25+
strip = true
26+
lto = true
27+
codegen-units = 1

crates/cli/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/target

crates/cli/Cargo.toml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[package]
2+
name = "spm-swift-package"
3+
version.workspace = true
4+
edition.workspace = true
5+
license.workspace = true
6+
authors.workspace = true
7+
description.workspace = true
8+
readme.workspace = true
9+
repository.workspace = true
10+
11+
[dependencies]
12+
demand.workspace = true
13+
clap.workspace = true
14+
colored.workspace = true
15+
tokio.workspace = true
16+
spm_core = "0.8.0"
17+
18+
[dev-dependencies]
19+
insta.workspace = true

crates/cli/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pub mod presentation;

0 commit comments

Comments
 (0)