Skip to main content

Create new project

This is the setup guide for wp-lemon. We will go through the requirements and how to get a new project started.

How to start a new project by using wp-lemon cli tool

wp-lemon is a npx package hosted on npm.com to do all the heavy lifting for you. Just run the package, fill in some variables and get yourself a cup of coffee and voilla!

What you'll need beforehand

The CLI tool will check all the requirements before starting a new project.

Running the package

To start a new project you'll first want to create a new folder in your projects folder. When using Laravel Valet as your webserver you'll have to add it in the following format: your-project-name.

After adding this folder you can open a new terminal inside this folder and run the following command npx wp-lemon site create to run the cli-tool. This will automatically download the latest version of this package and starts the installation process. You will now want to follow the instructions given by the cli-tool itself.

💡 Accept default values by pressing enter.

Feedback? Create a ticket at GitHub.

Webpack commands / start development

To start developing you can run some commands that will compile the assets. You will have to run these commands from your child theme folder.

commandDescription
yarn run devRuns the development build process once.
yarn run watchStart a browsersync session that automatically reloads your browser on file changes and injects css.
yarn run productionCreates a build optimized for production. This build will be minimized and images will be optimized.