Skip to content

Commit

Permalink
updated examples to use community packages (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
sliemeobn authored Jul 5, 2024
1 parent 20db05c commit 36dcbc9
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 56 deletions.
2 changes: 2 additions & 0 deletions Examples/HummingbirdDemo/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@ let package = Package(
],
dependencies: [
.package(url: "https://github.com/hummingbird-project/hummingbird.git", from: "2.0.0-rc.1"),
.package(url: "https://github.com/hummingbird-community/hummingbird-elementary.git", from: "0.1.0-rc.1"),
.package(path: "../../"),
],
targets: [
.executableTarget(
name: "App",
dependencies: [
.product(name: "Hummingbird", package: "hummingbird"),
.product(name: "HummingbirdElementary", package: "hummingbird-elementary"),
.product(name: "ElementaryHTMX", package: "elementary-htmx"),
],
resources: [
Expand Down
27 changes: 0 additions & 27 deletions Examples/HummingbirdDemo/Sources/App/Elementary+Hummingbird.swift

This file was deleted.

1 change: 1 addition & 0 deletions Examples/HummingbirdDemo/Sources/App/Routes.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Hummingbird
import HummingbirdElementary

func addRoutes(to router: Router<some RequestContext>) {
router.get("") { _, _ in
Expand Down
2 changes: 2 additions & 0 deletions Examples/VaporDemo/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@ let package = Package(
],
dependencies: [
.package(url: "https://github.com/vapor/vapor", from: "4.102.0"),
.package(url: "https://github.com/vapor-community/vapor-elementary.git", from: "0.1.0"),
.package(path: "../../"),
],
targets: [
.executableTarget(
name: "App",
dependencies: [
.product(name: "Vapor", package: "vapor"),
.product(name: "VaporElementary", package: "vapor-elementary"),
.product(name: "ElementaryHTMX", package: "elementary-htmx"),
],
resources: [
Expand Down
28 changes: 0 additions & 28 deletions Examples/VaporDemo/Sources/App/Elementary+Vapor.swift

This file was deleted.

2 changes: 1 addition & 1 deletion Examples/VaporDemo/Sources/App/Routes.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Elementary
import Vapor
import VaporElementary

func addRoutes(to app: Application) {
app.get("") { _ in
Expand Down

0 comments on commit 36dcbc9

Please sign in to comment.