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