Manuell Installation
Manual Installation Steps
Prerequisites
- A local WordPress installation where the theme or plugin will be added.
- Node.js installed on your local machine.
- pnpm installed globally.
Installation Instructions
- Check out the repository into your local WordPress installation
- For a theme: place the repository contents in
wp-content/themes/your-theme. - For a plugin: place the repository contents in
wp-content/plugins/your-plugin.
- Install Node.js and pnpm (if not already installed)
- Install Node.js from the official website: https://nodejs.org/
- Install pnpm:
npm install -g pnpm- Install dependencies Navigate to the project directory and install the dependencies:
pnpm install- Run the development environment This will start a local dev environment and watch for changes:
pnpm run dev- Build for production Once satisfied with your changes:
pnpm run build- Adjusting Purge Settings for Missing Styles If some styles are missing after the build, add the relevant selectors or styles to:
- purge.php, or
- Purge ignore settings in the configuration files This ensures those styles won’t be removed in the production build.
You’re all set! You now have a local development environment ready for making changes and producing production-ready builds as needed.