- Install Lando
- Clone this repository into a directory representing the name of your plugin, lowercased and with hyphens for spaces (this slug is important as it is reused below).
- Run the following case-sensitive project-wide search and replaces inside the repository:
- WP Lando Plugin Scaffold > [Name of your plugin]
- wp-lando-plugin-scaffold > [Your plugin slug from step 2]
- YourNamepace > [Your top-level PHP namespace]
- Lando_Plugin_Scaffold > [PHP namespace for your project]
- yournamespace > [namespace for use in package names]
- Run
composer install && npm install && npm run build
- Run
lando start
- When the Lando boot script is finished running, it will show you the URLs you can use to load the site.
Run npm start
to run a Webpack watch task. See composer.json
and package.json
for other scripts.