Skip to content

Commit 00c62a5

Browse files
authored
Break out versioned files into its own crate (#920)
Fixes #997 --------- Co-authored-by: Dylan Anthony <[email protected]>
1 parent 471ba13 commit 00c62a5

File tree

789 files changed

+2955
-2548
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

789 files changed

+2955
-2548
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
knope: patch
3+
---
4+
5+
# Allow omitting the `variables` field for `CreatePullRequest` title and body
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
knope: docs
3+
---
4+
5+
# Created a new recipe for converting a single-package repo into a monorepo
6+
7+
Knope itself is now a monorepo—the process of converting it was documented [here](https:/knope.tech/recipes/convert-to-monorepo).

.changeset/initial_release.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
versioning: minor
3+
---
4+
5+
# Initial release

.github/workflows/tests.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,6 @@ jobs:
4545
runs-on: ubuntu-latest
4646
steps:
4747
- uses: actions/checkout@v4
48-
- uses: errata-ai/vale-action@reviewdog
48+
- uses: errata-ai/vale-action@reviewdog
49+
with:
50+
files: '["docs", "README.md", "CODE_OF_CONDUCT.md", "CONTRIBUTING.md"]'

Cargo.lock

+58-35
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+24-50
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,28 @@
1-
[package]
2-
name = "knope"
3-
description = "A command line tool for automating common development tasks"
4-
version = "0.16.1"
5-
authors = ["Dylan Anthony <[email protected]>"]
6-
edition = "2021"
7-
license = "MIT"
8-
repository = "https://github.com/knope-dev/knope"
9-
homepage = "https://knope.tech"
10-
documentation = "https://knope.tech"
11-
keywords = ["semantic-version", "changelog", "changeset", "git", "github"]
12-
categories = ["command-line-utilities", "development-tools"]
13-
rust-version = "1.71.1"
1+
[workspace]
2+
resolver = "2"
3+
default-members = ["crates/knope"]
4+
members = ["crates/knope", "crates/knope-versioning"]
145

15-
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
6+
[profile.release]
7+
strip = true
168

17-
[dependencies]
18-
execute = "0.2.13"
19-
serde = { version = "1.0.197", features = ["derive"] }
20-
base64 = "0.21.7"
21-
toml = "0.8.12"
22-
serde_json = { version = "1.0.115", features = ["preserve_order"] }
23-
git2 = { version = "0.18.3", default-features = false }
24-
platform-dirs = "0.3.0"
25-
git-conventional = "0.12.6"
26-
ureq = { version = "2.9.6", features = ["json"] }
27-
http = "1.1.0"
28-
clap = { version = "4.5.4", features = ["cargo", "string", "env"] }
29-
itertools = "0.12.1"
30-
miette = { version = "7.2.0", features = ["fancy"] }
31-
thiserror = "1.0.58"
32-
gix = { version = "0.62.0", default-features = false, features = [
33-
"max-performance-safe",
34-
] }
35-
log = "0.4.21"
36-
env_logger = "0.11.3"
37-
indexmap = { version = "2.2.6", features = ["serde"] }
38-
inquire = { version = "0.7.4", default-features = false, features = [
39-
"crossterm",
40-
] }
41-
changesets = "0.2.3"
42-
time = { version = "0.3.36" }
43-
datta = "0.1.1"
44-
serde_yaml = "0.9.34"
45-
enum-iterator = "2.0.0"
46-
relative-path = { version = "1.9.2", features = ["serde"] }
9+
[workspace.lints.rust]
10+
unsafe_code = "forbid"
11+
warnings = "deny"
4712

48-
[dev-dependencies]
49-
pretty_assertions = "1.4.0"
50-
snapbox = { version = "0.5.9", features = ["path"] }
51-
tempfile = "3.10.1"
13+
[workspace.lints.clippy]
14+
all = "deny"
15+
pedantic = "deny"
5216

53-
[profile.release]
54-
strip = true
17+
# cargo-deny handles this
18+
multiple_crate_versions = "allow"
19+
20+
# Don't panic!
21+
panic = "deny"
22+
exit = "deny"
23+
unimplemented = "deny"
24+
todo = "deny"
25+
expect_used = "deny"
26+
unwrap_used = "deny"
27+
indexing_slicing = "deny"
28+
missing_panics_doc = "forbid"

crates/knope-versioning/Cargo.toml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
[package]
2+
name = "knope-versioning"
3+
description = "A library for handling all the versioned files supported by Knope"
4+
version = "0.0.0"
5+
authors = ["Dylan Anthony <[email protected]>"]
6+
edition = "2021"
7+
license = "MIT"
8+
repository = "https://github.com/knope-dev/knope"
9+
keywords = ["semantic-version"]
10+
categories = ["development-tools"]
11+
rust-version = "1.71.1"
12+
readme = "README.md"
13+
14+
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
15+
16+
[dependencies]
17+
itertools = "0.12.1"
18+
miette = { version = "7.2.0", optional = true }
19+
relative-path = { version = "1.9.2", features = ["serde"] }
20+
serde = { version = "1.0.197", features = ["derive"] }
21+
serde_json = "1.0.114"
22+
serde_yaml = "0.9.32"
23+
thiserror = "1.0.57"
24+
toml = "0.8.11"
25+
26+
[dev-dependencies]
27+
pretty_assertions = "1.4.0"
28+
29+
[lints]
30+
workspace = true

crates/knope-versioning/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# `knope-versioned-files`
2+
3+
This crate is intended for use by Knope itself and [Knope Bot](https://github.com/marketplace/knope-bot).

0 commit comments

Comments
 (0)