{"id":14957420,"url":"https://github.com/deployn/nextjs-boilerplate-with-wordpress","last_synced_at":"2025-10-01T16:31:52.409Z","repository":{"id":65540503,"uuid":"589213827","full_name":"deployn/nextjs-boilerplate-with-wordpress","owner":"deployn","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-01T00:39:33.000Z","size":855,"stargazers_count":32,"open_issues_count":7,"forks_count":6,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-16T02:21:44.026Z","etag":null,"topics":["boilerplate","eslint","jest","next-js","nextjs","prettier","tailwind","tailwindcss","typescript","wordpress"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/deployn.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null},"funding":null},"created_at":"2023-01-15T13:08:21.000Z","updated_at":"2025-01-02T05:34:38.000Z","dependencies_parsed_at":"2023-12-01T01:35:13.481Z","dependency_job_id":"cd66e937-daab-464a-b3a0-2da6771e5d71","html_url":"https://github.com/deployn/nextjs-boilerplate-with-wordpress","commit_stats":null,"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deployn%2Fnextjs-boilerplate-with-wordpress","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deployn%2Fnextjs-boilerplate-with-wordpress/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deployn%2Fnextjs-boilerplate-with-wordpress/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deployn%2Fnextjs-boilerplate-with-wordpress/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deployn","download_url":"https://codeload.github.com/deployn/nextjs-boilerplate-with-wordpress/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234883315,"owners_count":18901365,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["boilerplate","eslint","jest","next-js","nextjs","prettier","tailwind","tailwindcss","typescript","wordpress"],"created_at":"2024-09-24T13:14:52.835Z","updated_at":"2025-10-01T16:31:46.959Z","avatar_url":"https://github.com/deployn.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Boilerplate for Next JS 13+, Tailwind CSS 3.3, TypeScript and WordPress\n\n🚀 Boilerplate and Starter for Next.js, Tailwind CSS, TypeScript and WordPress \n⚡️ Made with developer experience first: Next.js, TypeScript, ESLint, Prettier, Husky, Lint-Staged, Jest, Testing Library, Commitlint, VSCode, Netlify, PostCSS, Tailwind CSS.\n\n### Attribution\n\nBased on [this Nextjs-Boilerplate](https://github.com/ixartz/Next-js-Boilerplate) and [this Nextjs-with-Wordpress and Apollo example](https://github.com/vercel/next.js/tree/canary/examples/cms-wordpress) and [this Next-wordpress-starter](https://github.com/colbyfayock/next-wordpress-starter)\n\nSome elements from [Tailwind UI](https://tailwindui.com/)\n\n### Features\n\nDeveloper experience first:\n\n- ⚡ [Next.js](https://nextjs.org) for Static Site Generator\n- 🔥 Type checking [TypeScript](https://www.typescriptlang.org)\n- 💎 Integrate with [Tailwind CSS](https://tailwindcss.com)\n- ✅ Strict Mode for TypeScript and React 18\n- 📏 Linter with [ESLint](https://eslint.org) (default NextJS, NextJS Core Web Vitals, Tailwind CSS and Airbnb configuration)\n- 💖 Code Formatter with [Prettier](https://prettier.io)\n- 🦊 Husky for Git Hooks\n- 🚫 Lint-staged for running linters on Git staged files\n- 🚓 Lint git commit with Commitlint\n- 📓 Write standard compliant commit messages with Commitizen\n- 🦺 Unit Testing with Jest and React Testing Library\n- 🧪 E2E Testing with Cypress\n- 👷 Run tests on pull request with GitHub Actions\n- 🎁 Automatic changelog generation with Semantic Release\n- 🔍 Visual testing with Percy (Optional)\n- 💡 Absolute Imports using `@` prefix\n- 🗂 VSCode configuration: Debug, Settings, Tasks and extension for PostCSS, ESLint, Prettier, TypeScript, Jest\n- 🤖 SEO metadata, JSON-LD and Open Graph tags with Next SEO\n- 🗺️ Sitemap.xml and robots.txt with next-sitemap\n- ⚙️ [Bundler Analyzer](https://www.npmjs.com/package/@next/bundle-analyzer)\n- 💯 Maximize lighthouse score\n- ✍️ Blogposts with headless Wordpress\n- ✅ Live editing of Tailwind CSS classes with [Impulse](https://impulse.dev)\n- 📊 Analytics with selfhosted [Plausible](https://plausible.io) or [Umami](https://umami.is)\n\nBuilt-in feature from Next.js:\n\n- ☕ Minify HTML \u0026 CSS\n- 💨 Live reload\n- ✅ Cache busting\n\n### Philosophy\n\n- Minimal code\n- SEO-friendly\n- 🚀 Production-ready\n\n### Requirements\n\n- Node.js 16+ and npm\n- WordPress CMS with GraphQL endpoint\n\n### Commit Message Format\n\nThe project enforces [Conventional Commits](https://www.conventionalcommits.org/) specification. This means that all your commit messages must be formatted according to the specification. To help you write commit messages, the project uses [Commitizen](https://github.com/commitizen/cz-cli), an interactive CLI that guides you through the commit process. To use it, run the following command:\n\n```shell\nnpm run commit\n```\n\nOne of the benefits of using Conventional Commits is that it allows us to automatically generate a `CHANGELOG` file. It also allows us to automatically determine the next version number based on the types of commits that are included in a release.\n\n### Deploy to production\n\nYou can see the results locally in production mode with:\n\n```shell\n$ npm run build\n$ npm run start\n```\n\nThe generated HTML and CSS files are minified (built-in feature from Next js). It will also removed unused CSS from [Tailwind CSS](https://tailwindcss.com).\n\nYou can create an optimized production build with:\n\n```shell\nnpm run build-prod\n```\n\nNow, your blog is ready to be deployed. All generated files are located at `out` folder, which you can deploy with any hosting service.\n\n### Testing\n\nAll tests are colocated with the source code inside the same directory. So, it makes it easier to find them. Unfortunately, it is not possible with the `pages` folder which is used by Next.js for routing. So, what is why we have a `pages.test` folder to write tests from files located in `pages` folder.\n\n### VSCode information (optional)\n\nIf you are VSCode users, you can have a better integration with VSCode by installing the suggested extension in `.vscode/extension.json`. The starter code comes up with Settings for a seamless integration with VSCode. The Debug configuration is also provided for frontend and backend debugging experience.\n\nWith the plugins installed on your VSCode, ESLint and Prettier can automatically fix the code and show you the errors. Same goes for testing, you can install VSCode Jest extension to automatically run your tests and it also show the code coverage in context.\n\nPro tips: if you need a project wide type checking with TypeScript, you can run a build with \u003ckbd\u003eCmd\u003c/kbd\u003e + \u003ckbd\u003eShift\u003c/kbd\u003e + \u003ckbd\u003eB\u003c/kbd\u003e on Mac.\n\n### Contributions\n\nEveryone is welcome to contribute to this project. Feel free to open an issue if you have question or found a bug.  Totally open to any suggestions and improvements.\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeployn%2Fnextjs-boilerplate-with-wordpress","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeployn%2Fnextjs-boilerplate-with-wordpress","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeployn%2Fnextjs-boilerplate-with-wordpress/lists"}