- Docker
- Node/NPM
- Yarn
- Composer
yarn
yarn run create
- Visit site at
localhost:8888
node-sass
is very picky about node versions. If you get errors, make sure your node version is supported by the version of node-sass
in package.json
. e.g., nvm use lts/fermium
.
run yarn run wp-env stop
run yarn run wp-env destroy
While working on the theme & plugin, you might need to rebuild the CSS or JavaScript.
To build both projects, you can run:
yarn workspaces run build
To build one at a time, run
yarn workspace wporg-learn-theme build
yarn workspace wporg-learn-plugin build
If you want to watch for changes, run start
. This can only be run in one project at a time:
yarn workspace wporg-learn-theme start
yarn workspace wporg-learn-plugin start
This project has eslint, stylelint, and phpcs set up for linting the code. This ensures all developers are working from the same style. To check your code before pushing it to the repo, run
yarn workspace wporg-learn-theme lint:css
yarn workspace wporg-learn-plugin lint:css
yarn workspace wporg-learn-plugin lint:js
composer run lint
These checks will also be run automatically on each PR.