Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.
Swift cache-cleanercleanerclideveloper-toolsdisk-cleanupdisk-spaceduplicate-finderhomebrewliquid-glassmac-cleanermacosmacos-appmacos-golden-gatemacos-tahoemacos-tweaksswiftswiftuiterminal-themesuninstalluninstaller
Offer what an interrupted Vite SSG build left behind
Țugui Dragoș1bfe8bb7d023
diff --git a/Packages/PeelCore/Sources/PeelCore/Developer/ProjectArtifacts.swift b/Packages/PeelCore/Sources/PeelCore/Developer/ProjectArtifacts.swiftindex 1ddda617..cfb8d503 100644--- a/Packages/PeelCore/Sources/PeelCore/Developer/ProjectArtifacts.swift+++ b/Packages/PeelCore/Sources/PeelCore/Developer/ProjectArtifacts.swift@@ -204,6 +204,10 @@ public enum ProjectArtifacts {name: ".turbo", markers: ["turbo.json"], tool: "Turborepo", isGeneric: false,source: "https://turborepo.dev/docs/crafting-your-repository/caching"),+ Definition(+ name: ".vite-ssg-temp", markers: ["package.json"], tool: "Vite SSG", isGeneric: false,+ source: "https://github.com/antfu-collective/vite-ssg/blob/4be6e3c31b905f991cda89bcfd598442f8388ffd/src/node/build.ts#L38-L64"+ ),Definition(name: ".solid", markers: ["package.json"], tool: "SolidStart", isGeneric: false,source: "https://github.com/solidjs/solid-start/blob/2f44d456e4814b997058fb366d7361f0d6b1e4e8/packages/start-static/index.js#L28-L30"diff --git a/Packages/PeelCore/Tests/PeelCoreTests/ProjectArtifactsTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/ProjectArtifactsTests.swiftindex 03c7dc04..78d22a9b 100644--- a/Packages/PeelCore/Tests/PeelCoreTests/ProjectArtifactsTests.swift+++ b/Packages/PeelCore/Tests/PeelCoreTests/ProjectArtifactsTests.swift@@ -416,6 +416,19 @@ struct ProjectArtifactsTests {#expect(found.first?.isRecommended == true)}+ @Test func offersWhatAnInterruptedViteSSGBuildLeft() async throws {+ let directory = try TemporaryDirectory()+ try directory.file("site/package.json", bytes: 16)+ try directory.file("site/.vite-ssg-temp/3k2l1j0h9g/main.mjs", bytes: 400_000)+ try age(directory.url, days: 60)++ let found = await ProjectArtifacts.scan(roots: [directory.url]).artifacts++ #expect(found.map(\.name) == [".vite-ssg-temp"])+ #expect(found.first?.tool == "Vite SSG")+ #expect(found.first?.isRecommended == true)+ }+@Test func offersTheBuildsSolidStartMakes() async throws {let directory = try TemporaryDirectory()for app in ["old", "new"] {