Install using macOS LEMP & dudestack
How to use Air-light in a native macOS LEMP environment with a modern WordPress development stack based on roots/bedrock.
Using Air-light with our WordPress stack and development environment
This is an option we at here Dude agency use.
Please note: This way requires many packages and is a bit of work to get up and running. We recommend you read all the documentation thoroughly. You can always use your own setup and try option 2.
Install
Set up macos-lemp-stack by following the instructions on GitHub.
Ensure that http://localhost works and ~/Projects is linked to /var/www and both exist
Install dudestack by following instructions provided in the repository
Create a new project by using dudestack's
createproject
command (explained here)From Terminal go into bin folder:
cd /path/to/where/you/cloned/air-light/bin
and runsh newtheme.sh
. This script takes care of the rest as it updates textdomain with your project name, checks updates for air and npm packages, runs npm install, fetches devpackages, sets up gulp, cleans up the leftover files and activates the theme via WP-CLI.Go back to project directory
cd ~/Projects/yourproject
, rungulp
and start coding!
Last updated