Skip to content

Commit

Permalink
Update dependencies and other stuff (#45)
Browse files Browse the repository at this point in the history
* Update dependencies and resolve warnings

* Add little changes

* Outsource the formulas in a own file

* Outsource the HTMLContext class in a own file

* Outsource the TemplateValueMapping class in a own file and rename the ContextVariable file

* Outsource the properties in a own file

* Outsource the EnvironmentModifier struct and rename the Localize file

* Add a document rendering test

* Add more rendering tests

* Add the missing tests to AllTests

* Add HTMLNode

* Change ContentNode to a generic type for elements with a different type of content

* Add the comment element

* Add HTMLDocument as a node

* Clean up

* Add some tests

* Update swift.yml
  • Loading branch information
mattesmohr authored Nov 11, 2021
1 parent 58db8cd commit 8109144
Show file tree
Hide file tree
Showing 34 changed files with 1,248 additions and 1,264 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/swift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
xenial:
needs: check-doc-coverage
container:
image: swift:5.1.3-xenial
image: swift:5.4.3-xenial
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
Expand All @@ -33,7 +33,7 @@ jobs:
bionic:
needs: check-doc-coverage
container:
image: swift:5.1.3-bionic
image: swift:5.4.3-bionic
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
Expand Down
4 changes: 2 additions & 2 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"repositoryURL": "https://github.com/miroslavkovac/Lingo.git",
"state": {
"branch": null,
"revision": "f21f388b04239641b3e88d14f21762125faa9857",
"version": "3.0.5"
"revision": "e4b032f65bde917209a1cb0962c0fd13fa0add2f",
"version": "3.1.0"
}
}
]
Expand Down
23 changes: 11 additions & 12 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version:5.1
// swift-tools-version:5.4
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription
Expand All @@ -9,26 +9,25 @@ let package = Package(
.macOS(.v10_14),
],
products: [
// Products define the executables and libraries produced by a package, and make them visible to other packages.
.library(
name: "HTMLKit",
targets: ["HTMLKit"])
targets: ["HTMLKit"]
)
],
dependencies: [
// Dependencies declare other packages that this package depends on.
// .package(url: /* package url */, from: "1.0.0"),

.package(url: "https://github.com/miroslavkovac/Lingo.git", from: "3.0.5"),
// .package(url: "https://github.com/vapor-community/markdown.git", .upToNextMajor(from: "0.4.0")),
.package(url: "https://github.com/miroslavkovac/Lingo.git", from: "3.1.0"),
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
.target(
name: "HTMLKit",
dependencies: ["Lingo"]),
dependencies: ["Lingo"]
),
.testTarget(
name: "HTMLKitTests",
dependencies: ["HTMLKit"]),
dependencies: ["HTMLKit"],
resources: [
.process("Localization")
]
)
]
)
Loading

0 comments on commit 8109144

Please sign in to comment.