Skip to content

Commit

Permalink
build: use package attributes from workspace (#488)
Browse files Browse the repository at this point in the history
Signed-off-by: Jérémie Drouet <jeremie.drouet@gmail.com>
  • Loading branch information
jdrouet authored Oct 27, 2024
1 parent 0481f1c commit 62d0f79
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 20 deletions.
6 changes: 6 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,9 @@ resolver = "2"
[workspace.dependencies]
htmlparser = { version = "0.1" }
similar-asserts = { version = "1.6" }

[workspace.package]
authors = ["Jérémie Drouet <jeremie.drouet@gmail.com>"]
edition = "2021"
license = "MIT"
repository = "https://github.com/jdrouet/mrml/"
7 changes: 4 additions & 3 deletions packages/mrml-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ name = "mrml-cli"
description = "CLI for the Rust implementation of MJML renderer"
keywords = ["cli", "email", "mjml"]
version = "1.6.1"
authors = ["Jérémie Drouet <jeremie.drouet@gmail.com>"]
license = "MIT"
edition = "2018"
authors.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
readme = "readme.md"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
1 change: 0 additions & 1 deletion packages/mrml-cli/LICENSE

This file was deleted.

8 changes: 4 additions & 4 deletions packages/mrml-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name = "mrml"
description = "Rust implementation of MJML renderer"
keywords = ["email", "mjml"]
version = "4.0.1"
authors = ["Jérémie Drouet <jeremie.drouet@gmail.com>"]
edition = "2018"
license = "MIT"
repository = "https://github.com/jdrouet/mrml/"
authors.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
readme = "readme.md"

include = ["src/*", "Cargo.toml"]
Expand Down
1 change: 0 additions & 1 deletion packages/mrml-core/LICENSE

This file was deleted.

8 changes: 4 additions & 4 deletions packages/mrml-python/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name = "mrml-python"
description = "Python wrapping on MRML"
keywords = ["email", "mjml"]
version = "0.1.15"
authors = ["Jérémie Drouet <jeremie.drouet@gmail.com>"]
edition = "2021"
license = "MIT"
repository = "https://github.com/jdrouet/mrml/"
authors.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
readme = "readme.md"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
1 change: 0 additions & 1 deletion packages/mrml-python/LICENSE

This file was deleted.

8 changes: 4 additions & 4 deletions packages/mrml-wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name = "mrml-wasm"
description = "Wasm wrapping on MRML"
keywords = ["email", "mjml"]
version = "1.4.12"
authors = ["Jérémie Drouet <jeremie.drouet@gmail.com>"]
edition = "2018"
license = "MIT"
repository = "https://github.com/jdrouet/mrml/"
authors.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
readme = "README.md"

[lib]
Expand Down
1 change: 0 additions & 1 deletion packages/mrml-wasm/LICENSE

This file was deleted.

3 changes: 2 additions & 1 deletion packages/mrml-wasm/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ done
# copy resources
cp pkg/nodejs/package.json pkg/
rm pkg/{web,nodejs,bundler}/{.gitignore,LICENSE,package.json,README.md}
cp {LICENSE,README.md} pkg/
cp README.md pkg/
cp ../../LICENSE pkg/
node scripts/build-package.js

0 comments on commit 62d0f79

Please sign in to comment.