warm-worktrees 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/BENCHMARKS.md +179 -0
- package/GUIDE.md +343 -0
- package/LICENSE.md +21 -0
- package/README.md +79 -2
- package/bench/results/adobe.json +1739 -0
- package/bench/results/build-lifecycle.json +1618 -0
- package/bench/results/cache-selection.json +3155 -0
- package/bench/results/cache-tuning.json +1554 -0
- package/bench/results/cargo-cache-scans.json +522 -0
- package/bench/results/cargo-snapshot-storage.json +1068 -0
- package/bench/results/checkout-selection.json +157 -0
- package/bench/results/compiler-seeds.json +634 -0
- package/bench/results/concurrent-publication.json +7999 -0
- package/bench/results/directory-export.json +4501 -0
- package/bench/results/firefox-checkout-control.json +4160 -0
- package/bench/results/four-worktrees.json +594 -0
- package/bench/results/incremental-cache-directories.json +555 -0
- package/bench/results/ninja.json +2133 -0
- package/bench/results/output-delivery.json +719 -0
- package/bench/results/per-checkout-archives.json +7044 -0
- package/bench/results/pool-maintenance.json +447 -0
- package/bench/results/rebuild-latency.json +138 -0
- package/bench/results/seed-scenarios.json +295 -0
- package/bench/results/snapshot-reclamation.json +885 -0
- package/bench/results/snapshot-writers.json +46 -0
- package/bench/results/source-mirror.json +150 -0
- package/bench/results/startup.json +703 -0
- package/bench/results/swift-scenarios.json +173 -0
- package/bench/results/upstream/firefox-ios.json +2395 -0
- package/bench/results/upstream/ripgrep.json +3275 -0
- package/bench/results/upstream/swift-syntax.json +2305 -0
- package/bench/results/upstream/vscode-seeded.json +3181 -0
- package/bench/results/upstream/vscode.json +2121 -0
- package/dist/Commander-LICENSE +22 -0
- package/dist/JSON5-LICENSE +23 -0
- package/dist/Zod-LICENSE +21 -0
- package/dist/benchmark.js +289 -0
- package/dist/cli.js +18337 -0
- package/dist/warm-copy.node +0 -0
- package/docs/assets/worktrees-cargo.png +0 -0
- package/package.json +55 -4
- package/profiles.json5 +82 -0
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,57 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "warm-worktrees",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Reuse build directories across Git worktrees on macOS to speed up builds and save disk space.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"bin": {
|
|
7
|
+
"warm": "dist/cli.js"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"dist/cli.js",
|
|
11
|
+
"dist/warm-copy.node",
|
|
12
|
+
"dist/Zod-LICENSE",
|
|
13
|
+
"dist/Commander-LICENSE",
|
|
14
|
+
"dist/JSON5-LICENSE",
|
|
15
|
+
"profiles.json5",
|
|
16
|
+
"README.md",
|
|
17
|
+
"docs/assets/worktrees-cargo.png",
|
|
18
|
+
"GUIDE.md",
|
|
19
|
+
"BENCHMARKS.md",
|
|
20
|
+
"dist/benchmark.js",
|
|
21
|
+
"bench/results"
|
|
22
|
+
],
|
|
23
|
+
"os": [
|
|
24
|
+
"darwin"
|
|
25
|
+
],
|
|
26
|
+
"type": "module",
|
|
27
|
+
"imports": {
|
|
28
|
+
"#warm-copy": "./dist/warm-copy.node"
|
|
29
|
+
},
|
|
30
|
+
"scripts": {
|
|
31
|
+
"build": "tsc && node scripts/build.ts",
|
|
32
|
+
"benchmark": "npm run build --silent && node dist/benchmark.js",
|
|
33
|
+
"test": "npm run build && node --test \"test/**/*.test.ts\"",
|
|
34
|
+
"lint": "oxlint --type-aware .",
|
|
35
|
+
"format": "oxfmt --write .",
|
|
36
|
+
"format:check": "oxfmt --check .",
|
|
37
|
+
"prepack": "npm run build",
|
|
38
|
+
"typecheck": "tsc"
|
|
39
|
+
},
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"@cloudflare/oxlint-config": "0.2.0",
|
|
42
|
+
"@oxlint/plugins": "1.95.0",
|
|
43
|
+
"@types/node": "24.19.4",
|
|
44
|
+
"commander": "15.1.0",
|
|
45
|
+
"esbuild": "0.28.2",
|
|
46
|
+
"json5": "2.2.3",
|
|
47
|
+
"oxfmt": "0.80.0",
|
|
48
|
+
"oxlint": "1.95.0",
|
|
49
|
+
"oxlint-tsgolint": "7.0.2009",
|
|
50
|
+
"typescript": "7.0.2",
|
|
51
|
+
"zod": "4.6.7"
|
|
52
|
+
},
|
|
53
|
+
"engines": {
|
|
54
|
+
"node": ">=24.4.0"
|
|
55
|
+
},
|
|
56
|
+
"packageManager": "npm@11.21.3"
|
|
57
|
+
}
|
package/profiles.json5
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
executable: "tsc",
|
|
4
|
+
compiler: "typescript",
|
|
5
|
+
checkoutInputs: ["tsconfig.json"],
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
executable: "cargo",
|
|
9
|
+
checkoutInputs: ["Cargo.lock"],
|
|
10
|
+
when: {
|
|
11
|
+
subcommands: [
|
|
12
|
+
"build",
|
|
13
|
+
"b",
|
|
14
|
+
"check",
|
|
15
|
+
"c",
|
|
16
|
+
"test",
|
|
17
|
+
"t",
|
|
18
|
+
"run",
|
|
19
|
+
"r",
|
|
20
|
+
"bench",
|
|
21
|
+
"doc",
|
|
22
|
+
"clippy",
|
|
23
|
+
"rustc",
|
|
24
|
+
"rustdoc",
|
|
25
|
+
],
|
|
26
|
+
skipFirstPrefix: "+",
|
|
27
|
+
},
|
|
28
|
+
caches: [
|
|
29
|
+
{
|
|
30
|
+
from: [
|
|
31
|
+
{ option: "--target-dir" },
|
|
32
|
+
{ env: "CARGO_TARGET_DIR" },
|
|
33
|
+
{ env: "CARGO_BUILD_TARGET_DIR" },
|
|
34
|
+
],
|
|
35
|
+
directory: "target",
|
|
36
|
+
seed: true,
|
|
37
|
+
manifest: {
|
|
38
|
+
name: "Cargo.toml",
|
|
39
|
+
locationOption: "--manifest-path",
|
|
40
|
+
locationKind: "file",
|
|
41
|
+
search: "all",
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
{ from: [{ env: "CARGO_BUILD_BUILD_DIR" }], ignoreContains: "{" },
|
|
45
|
+
],
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
executable: "swift",
|
|
49
|
+
checkoutInputs: ["Package.resolved"],
|
|
50
|
+
when: { subcommands: ["build", "test", "run"] },
|
|
51
|
+
caches: [
|
|
52
|
+
{
|
|
53
|
+
from: [
|
|
54
|
+
{ env: "SWIFTPM_BUILD_DIR" },
|
|
55
|
+
{ option: "--scratch-path" },
|
|
56
|
+
{ option: "--build-path" },
|
|
57
|
+
],
|
|
58
|
+
directory: ".build",
|
|
59
|
+
seed: ["out"],
|
|
60
|
+
manifest: { name: "Package.swift", locationOption: "--package-path" },
|
|
61
|
+
},
|
|
62
|
+
],
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
executable: "xcodebuild",
|
|
66
|
+
checkoutInputs: [],
|
|
67
|
+
when: { flags: ["-scheme"] },
|
|
68
|
+
caches: [
|
|
69
|
+
{
|
|
70
|
+
directory: "DerivedData",
|
|
71
|
+
addOption: "-derivedDataPath",
|
|
72
|
+
seed: [
|
|
73
|
+
"CompilationCache.noindex",
|
|
74
|
+
"ModuleCache.noindex",
|
|
75
|
+
"SDKStatCaches.noindex",
|
|
76
|
+
"SDKExplicitPrecompiledModules",
|
|
77
|
+
],
|
|
78
|
+
},
|
|
79
|
+
],
|
|
80
|
+
remarks: { hit: "Cache hit", miss: "Cache miss" },
|
|
81
|
+
},
|
|
82
|
+
]
|