mirror of
https://github.com/nicoverbruggen/phpmon.git
synced 2025-08-07 20:10:08 +02:00
👌 Updated fake sites
This commit is contained in:
@ -20,12 +20,18 @@ class FakeSiteScanner: SiteScanner
|
||||
let fakes = [
|
||||
ValetSite(fakeWithName: "laravel", tld: "test", secure: true, path: "~/Code/laravel/framework", linked: true),
|
||||
|
||||
ValetSite(fakeWithName: "tailwind", tld: "test", secure: true, path: "~/Code/tailwind/site", linked: true),
|
||||
ValetSite(fakeWithName: "tailwind", tld: "test", secure: true, path: "~/Code/tailwind/site", linked: true, constraint: "8.0"),
|
||||
|
||||
ValetSite(fakeWithName: "forge", tld: "test", secure: true, path: "~/Code/laravel/forge", linked: true),
|
||||
|
||||
ValetSite(fakeWithName: "concord", tld: "test", secure: false,
|
||||
path: "~/Code/concord", linked: true, driver: "Laravel (^8.0)", constraint: "^7.4", isolated: "7.4"),
|
||||
|
||||
ValetSite(fakeWithName: "drupal", tld: "test", secure: false,
|
||||
path: "~/Sites/drupal", linked: false, driver: "Drupal", constraint: "^7.4", isolated: "7.4"),
|
||||
|
||||
ValetSite(fakeWithName: "wordpress", tld: "test", secure: false,
|
||||
path: "~/Code/wordpress", linked: false, driver: "Wordpress", constraint: "^7.4", isolated: "7.4")
|
||||
path: "~/Sites/wordpress", linked: false, driver: "Wordpress", constraint: "^7.4", isolated: "7.4")
|
||||
]
|
||||
|
||||
func resolveSiteCount(paths: [String]) -> Int {
|
||||
|
@ -24,6 +24,13 @@ extension ValetSite {
|
||||
self.secured = secure
|
||||
self.composerPhp = constraint
|
||||
|
||||
self.composerPhpCompatibleWithLinked = self.composerPhp.split(separator: "|")
|
||||
.map { string in
|
||||
return PhpVersionNumberCollection.make(from: [PhpEnv.phpInstall.version.long])
|
||||
.matching(constraint: string.trimmingCharacters(in: .whitespacesAndNewlines))
|
||||
.count > 0
|
||||
}.contains(true)
|
||||
|
||||
self.driver = driver
|
||||
self.driverDeterminedByComposer = true
|
||||
if linked {
|
||||
|
Reference in New Issue
Block a user