Skip to content

armgit / peel

Public Imported from GitHub
0

Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.

Offer what atspkg clean removes in Build Artifacts

Țugui Dragoș86a0ed85a570
diff --git a/Packages/PeelCore/Sources/PeelCore/Developer/ProjectArtifacts.swift b/Packages/PeelCore/Sources/PeelCore/Developer/ProjectArtifacts.swift
index 7a947798..bbbf9246 100644
--- a/Packages/PeelCore/Sources/PeelCore/Developer/ProjectArtifacts.swift
+++ b/Packages/PeelCore/Sources/PeelCore/Developer/ProjectArtifacts.swift
@@ -464,6 +464,15 @@ public enum ProjectArtifacts {
name: ".import", markers: ["project.godot"], tool: "Godot", isGeneric: false,
source: "https://docs.godotengine.org/en/3.6/tutorials/best_practices/version_control_systems.html"
),
+ // Only what `atspkg clean` removes: never `cbits` or `gen` beside them, where people keep their own C.
+ Definition(
+ name: ".atspkg", markers: ["atspkg.dhall"], tool: "atspkg", isGeneric: false,
+ source: "https://github.com/vmchale/atspkg/blob/26cdd1ed1130a31e4bb4985fc54e50240228f7df/ats-pkg/src/Language/ATS/Package/Build.hs#L69-L76"
+ ),
+ Definition(
+ name: "ats-deps", markers: ["atspkg.dhall"], tool: "atspkg", isGeneric: false,
+ source: "https://github.com/vmchale/atspkg/blob/26cdd1ed1130a31e4bb4985fc54e50240228f7df/ats-pkg/src/Language/ATS/Package/Build.hs#L69-L76"
+ ),
// Meson's own test for its build folder, whatever its name. The folder also keeps the options it was set up
// with, which Meson's `--wipe` carries over and nothing else in the project holds.
Definition(
diff --git a/Packages/PeelCore/Tests/PeelCoreTests/ProjectArtifactsTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/ProjectArtifactsTests.swift
index 411aa895..f8fa23a2 100644
--- a/Packages/PeelCore/Tests/PeelCoreTests/ProjectArtifactsTests.swift
+++ b/Packages/PeelCore/Tests/PeelCoreTests/ProjectArtifactsTests.swift
@@ -318,6 +318,8 @@ struct ProjectArtifactsTests {
Kind(artifact: ".zig-cache", marker: "build.zig", tool: "Zig", isGeneric: false),
Kind(artifact: "zig-cache", marker: "build.zig", tool: "Zig", isGeneric: false),
Kind(artifact: ".xwin-cache", marker: "Cargo.toml", tool: "xwin", isGeneric: false, isEnvironment: true),
+ Kind(artifact: ".atspkg", marker: "atspkg.dhall", tool: "atspkg", isGeneric: false),
+ Kind(artifact: "ats-deps", marker: "atspkg.dhall", tool: "atspkg", isGeneric: false),
Kind(artifact: ".cxx", marker: "build.gradle.kts", tool: "Android Gradle plugin", isGeneric: false),
Kind(artifact: ".stack-work", marker: "stack.yaml", tool: "Stack", isGeneric: false),
Kind(artifact: "dist-newstyle", marker: "app.cabal", tool: "Cabal", isGeneric: false),