|||

Install a Starter Kit from local repo to get the latest Peak working in Statamic 4 beta

I needed to do this to install the latest Statamic Peak into the Statamic v4 beta.

  • Clone the Starter Kit (read: Statamic Peak) Repo locally
  • I also had to update Peak’s dependencies in starter-kit.yaml to beta
dependencies:
  studio1902/statamic-peak-browser-appearance: '2.0-beta.2'
  studio1902/statamic-peak-commands: '2.0-beta.4'
  studio1902/statamic-peak-seo: '2.0-beta.2'
  studio1902/statamic-peak-tools: '3.0-beta.3'
  • Add the local path to the Peak repo to the global composer config.json:
{
    "config": {},
    "repositories": [
        {
            "type": "path",
            "url": "/Users/daniel/www/statamic-peak"
        }
    ]
}
  • Notice this has to go into the global config.json, not the composer.json
  • For me this was ~/.composer.config.json, but one can find its place via composer config --global home
  • Install with the --local flag. To get the Statamic beta, also add the --dev flag:
  • statamic new mysite studio1902/statamic-peak --dev --local
  • Official documentation about installing from local repos: https://statamic.dev/starter-kits/creating-a-starter-kit#installing-from-a-local-repo
Up next Set sensible validations for Statamic image uploads By default, Statamic asset fields don’t validate size or file type. Recently I’ve had a bit of trouble with large image files clogging up the Git A First Quick Look at Cosmos.so – and Why I'll Stick with MyMind Cosmos.so is an inspiration capture system marketing itself as an alternative to Pinterest. There is quite some overlap with the features offered by
Latest posts Pros and Cons of Reflect Notes App A Love Letter to Sublime Internet Lazy.so is an amazing tool. Here's why I don't keep it Look Around You Don’t ask what the world needs Carl Sagan has shown the absurdity of not acting against climate change back in 1990 On the plus sides of being a web designer Friday Deployment A success message that communicates the opposite of success Do not demand to be appreciated Craft Docs vs Bear Notes Figma AI Rant Epomaker TH80 Pro Polyamor, aber mit PKM apps 🫣 Ironie, die Fabi Rommel Helft der Natur Stimmen im Kopf - Flohmarkt croox website online Tiny Garden Paradise Oktober in Europa Figma Rant: forever assembling iCloud Drive Rant Schwiegerfuchs Same Vibe Tailwind and Web Craftsmanship Buttons with CSS Expand Basic Markdown Formatting in Apple Notes Cannot Divide by Zero in Peak Picture Partial Applying a Growth Mindset (Doodle) When Gmail Messages deleted in Apple Mail keep coming back