This project is built by Indigo Tree.
It uses WordPress and is hosted on WP Engine.
This guide explains how to:
- Get access and set up your environment.
- Run and build the project.
- Work with our branching, code, and deployment processes.
To start work you’ll need access to:
- GitHub (permission to create repos in the
indigotreeorg). - Hosting environments on WP Engine.
- The project in Teamwork.
➡️ Contact the project manager or a developer colleague for access.
The main setup instructions are in our Platform Docs.
We use Webpack for building CSS and JavaScript.
All tasks are run via NPM scripts in package.json.
| Command | What it does |
|---|---|
npm run install:core |
Install dependencies |
npm run build:core |
Build assets |
npm run watch:core |
Watch files, dev mode |
npm run format:core |
Auto-format code |
npm run composer:core |
Install PHP dependencies |
| Command | What it does |
|---|---|
npm run build:theme |
Build theme assets |
npm run watch:theme |
Watch files, dev mode |
| Command | What it does |
|---|---|
npm run build |
Full build |
npm run format |
Format everything |
npm run lint:style |
Lint CSS |
npm run lint:js |
Lint JS |
npm run lint:md:docs |
Lint docs |
npm run lint:pkg-json |
Lint package.json |
npm run packages-update |
Update wp-scripts |
npm start |
Run theme in dev mode |
Make sure your Git repo email is correct:
- Work email (not personal).
GitHub guide.
We follow Indigo Tree’s Branching & PR Process.
- Work in feature branches.
- Merge into:
develop→ Development environmentstaging→ Staging environmentmain→ Production
Pull Requests (PRs):
- Open a PR.
- Assign a colleague for review.
- After approval, you merge it.
We follow the WordPress.org Coding Standards.
You don’t need to memorise them — they are enforced through the lint and format scripts described above.
Check .nvmrc for required version.
Commands:
node -v→ current versionnvm list→ installed versionsnvm use <VERSION>→ switch versionnvm alias default node→ set default
We deploy via GitHub Actions.
Branches map to environments:
develop→ Developmentstaging→ Stagingmain→ Production
- Some files must not deploy. Add them to
.deployignore. - The theme’s
assets/folder (source files) is not deployed.
Each environment works the same way:
- Merge into the branch (
develop,staging, ormain). - PHP + JS checks run.
- If they pass → GitHub deploys to WP Engine.
✅ You’re ready to develop, test, and deploy.