Skip to content
This repository has been archived by the owner on Aug 31, 2024. It is now read-only.
/ k3-scaffold Public archive

A simple local development setup for Kirby 3 sites.

Notifications You must be signed in to change notification settings

philipmarnef/k3-scaffold

Repository files navigation

KIRBY 3 scaffold

This is a minimal Kirby 3 local development scaffolding.

Requirements

This setup requires:

  • node & npm
  • composer
  • A server running Nginx with root set to html/public. If you want to use Apache instead, download the .htaccess file from the Kirby plainkit and put it in html/public

Installation

Clone this repo:

git clone https://github.com/philipmarnef/k3-scaffold.git --depth 1 <project-folder>
  • update the package.json file with your project info

  • run ./install.zsh OR manually

    • edit the baseUrl in gulpfile.esm.js to the url your local site is running on, like http://my-site.test or http://localhost:4000.
    • update the 'robots' conditional in snippets/head.php to the production url
    • install Node modules & Kirby composer packages:
       	# Install node modules:
       	npm install
      
       	# Install Kirby:
       	cd html
       	composer install
  • Run the Kirby installer at http://my-site.test/panel.

Watch files

To start watching, run the serve task from the root directory:

npm run serve

This will start a proxy server with browsersync at localhost:3000, refreshing the browser page on file changes.

See gulpfile.esm.js for details.

Build for production

To build your assets for production:

npm run build

This removes sourcemaps and minifies the assets.

About

A simple local development setup for Kirby 3 sites.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published