Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

1.0 KB
Raw Blame
# worktrunk project config — see CLAUDE.md "Worktrees" and scripts/worktree/.
# pre-start blocks worktree creation until the environment (server/, database,
# deps) exists, so `wt switch -c foo -x claude` lands agents in a working tree.
# Both hooks are declared as top-level keys: a bare key after a [table] header
# would belong to that table, turning teardown into a second create hook.
#
# The `! test -x` form skips (exit 0) only when the script is absent — which is
# how worktrees branched from a base predating these scripts stay usable — while
# a script that runs and fails still fails the hook, so nobody lands in a
# half-provisioned worktree.

pre-start = "! test -x scripts/worktree/setup.sh && echo 'scripts/worktree/setup.sh not on this branch — provision manually' || scripts/worktree/setup.sh '{{ branch }}'"

post-remove = "! test -x scripts/worktree/teardown.sh && echo 'scripts/worktree/teardown.sh not on this branch — drop databases manually' || scripts/worktree/teardown.sh '{{ branch }}'"