Plugin setup based on this cookbook recipe.
- Create a repository using this template
- Clone the resulting repository in your XAMPP/MAMP documents folder
composer install
to install Kirbynpm install -g parcel
to install the Parcel bundler globallynpm run dev
to start Parcel in development mode- Open the project in your browser
There are two key files:
index.php
is your main plugin fileindex.site.php
is the test site's index file
npm run build
to run Parcel in production mode- Make sure all site files (like
index.site.php
) and other development-only files are listed in.gitattributes
so that they're excluded from the release - Release on GitHub