This Nextjs starter is intended to be used with a Headless Wordpress backend. Find a starter repo here: https://github.com/jonryser/headless-wordpress.
Node version 20.1.0
This project is setup to use asdf. This allows installing a specific version for the project. To install nodejs with asdf, see https://github.com/asdf-vm/asdf-nodejs
If using nvm, run nvm use
to set a compatible version based on the project .nvmrc
Yarn (for package management) version 3.5.1
This project is setup to use asdf. This allows installing a specific version for the project. To install yarn with asdf, see https://github.com/twuni/asdf-yarn
Or install globally via npm: npm i -g yarn
Or install globally via Homebrew: brew install yarn
The correct version of yarn has been committed to this repo (in .yarn). As long as node is installed and a version of yarn is available on the system, this should "just work" and use the project version. If there are any issues, or the version needs to be updated, follow the steps below.
Set the version for the project ie: yarn set version 3.5.1
For linting and formatting see LINTING.md
.
I so welcome contributions to making this better! Please create a fork and commit your changes to the fork. Then make a PR from the fork to this repo's "develop" branch.
I will code review. Once changes are accepted, it can be merged into develop and then on to the main branch.