Thanks for your interest in contributing to Next.js for Drupal. We're happy to have you here.
Please take a moment to review this document before submitting your first pull request.
If you need any help, feel free to reach out on Drupal Slack. Look for @shadcn in the #nextjs channel.
This repository is a monorepo. This is where we develop all modules, packages and starters.
- We use Yarn and
yarn workspaces
for development. - We use Turborepo as our build system.
- We use Lerna for versioning and publishing.
git clone [email protected]:chapter-three/next-drupal.git
yarn install
You can use the yarn workspace [WORKSPACE]
command to start the development process for a workspace.
- To run the
next-drupal.org
website:
yarn workspace www dev
- To run the
next-drupal
package:
yarn workspace next-drupal dev
You can run all the tests from the root of the repository.
We use jest
for testing the next-drupal
package.
yarn test packages/next-drupal
We use jest
for testing the next-drupal-query
package.
yarn test packages/next-drupal
We use phpunit
for testing the next
module.
yarn test:next
yarn lint
yarn phpcs
Please ensure that the tests are passing when submitting a pull request. If you're adding new features, please include tests.