Skip to content

Commit

Permalink
refactor: move config to cli package (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
hougesen authored Sep 25, 2024
1 parent 35ecd68 commit 3a489a0
Show file tree
Hide file tree
Showing 17 changed files with 280 additions and 336 deletions.
5 changes: 0 additions & 5 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,3 @@ updates:
schedule:
interval: monthly
open-pull-requests-limit: 100
- package-ecosystem: cargo
directory: /packages/i18nhero-config
schedule:
interval: monthly
open-pull-requests-limit: 100
12 changes: 2 additions & 10 deletions .github/workflows/release-cargo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,5 @@ jobs:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Publish hitt-formatter
run: cargo publish -p hitt-formatter --verbose --locked --token ${{ secrets.CARGO_TOKEN }}
- name: Publish hitt-parser
run: cargo publish -p hitt-parser --verbose --locked --token ${{ secrets.CARGO_TOKEN }}
- name: Publish hitt-request
run: cargo publish -p hitt-request --verbose --locked --token ${{ secrets.CARGO_TOKEN }}
- name: Publish hitt-sse
run: cargo publish -p hitt-sse --verbose --locked --token ${{ secrets.CARGO_TOKEN }}
- name: Publish hitt
run: cargo publish -p hitt --verbose --locked --token ${{ secrets.CARGO_TOKEN }}
- name: Publish cli
run: cargo publish -p i18nhero --verbose --locked --token ${{ secrets.CARGO_TOKEN }}
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

#### Unreleased

- feat: select project on init [`#28`](https://github.com/i18nhero/cli/pull/28)
- refactor: rename project [`#24`](https://github.com/i18nhero/cli/pull/24)
- feat: add flag for saving missing translations [`#23`](https://github.com/i18nhero/cli/pull/23)
- feat(cli): json5 output [`#19`](https://github.com/i18nhero/cli/pull/19)
Expand Down
25 changes: 2 additions & 23 deletions Cargo.lock

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

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[workspace]
members = ["packages/i18nhero", "packages/i18nhero-config"]
members = ["packages/i18nhero"]
resolver = "2"

[workspace.package]
Expand All @@ -16,12 +16,12 @@ readme = "README.md"
categories = ["command-line-utilities", "development-tools"]

[workspace.dependencies]
i18nhero-config = { version = "0.0.0", path = "./packages/i18nhero-config" }
clap = { version = "4.5.17", features = ["derive"] }
clap_complete = "4.5.26"
console = { version = "0.15.8" }
dialoguer = { version = "0.11.0" }
json5 = "0.4.1"
reqwest = { version = "0.12.7", default-features = false, features = [
"blocking",
"brotli",
"charset",
"cookies",
Expand Down
25 changes: 0 additions & 25 deletions packages/i18nhero-config/Cargo.toml

This file was deleted.

36 changes: 0 additions & 36 deletions packages/i18nhero-config/src/error.rs

This file was deleted.

141 changes: 0 additions & 141 deletions packages/i18nhero-config/src/lib.rs

This file was deleted.

15 changes: 11 additions & 4 deletions packages/i18nhero/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,22 @@ path-guid = "E203BA21-081C-408B-9395-A7223571469A"
license = false
eula = false

[features]
default = []
json-schema = ["dep:schemars"]

[dependencies]
i18nhero-config = { workspace = true }
clap = { workspace = true }
clap_complete = { workspace = true }
console = { workspace = true }
dialoguer = { workspace = true }
json5 = { workspace = true }
reqwest.workspace = true
reqwest = { workspace = true }
schemars = { workspace = true, optional = true }
serde = { workspace = true }
serde_json = { workspace = true }
serde_yml = { workspace = true }
dialoguer = "0.11.0"
console = "0.15.8"
tokio = { workspace = true }

[dev-dependencies]
tempfile = { workspace = true }
Loading

0 comments on commit 3a489a0

Please sign in to comment.