This repository provides a scaffold for creating an Acorn package. For more detailed information, please refer to the Acorn Package Development documentation.
Follow these steps to get started:
- Press the "Use this template" button at the top of this repo to create a new repo with the contents of this skeleton.
- Run "php ./configure.php" to run a script that will replace all placeholders throughout all the files.
- Have fun creating your package.
To install this package using Composer, follow these steps:
-
Add the following to the
repositories
section of yourcomposer.json
:{ "type": "vcs", "url": "[email protected]:yardinternet/skeleton-package.git" }
-
Install this package with Composer:
composer require yard/skeleton-package
-
Run the Acorn WP-CLI command to discover this package:
wp acorn package:discover
You can publish the config file with:
wp acorn vendor:publish --provider="Yard\SkeletonPackage\SkeletonPackageServiceProvider"
From a Blade template:
@include('skeleton-package::example')
From WP-CLI:
wp acorn example