{"id":24345928,"url":"https://github.com/hugocruzlfc/nextjs-perfect-base-template","last_synced_at":"2026-04-11T06:42:37.840Z","repository":{"id":272482144,"uuid":"916739127","full_name":"hugocruzlfc/nextjs-perfect-base-template","owner":"hugocruzlfc","description":"Nextjs with Shadcn(Tailwind v4), husky, commitlint, lint-satged, prettier and eslint integration. Base project template.","archived":false,"fork":false,"pushed_at":"2025-04-22T13:25:16.000Z","size":486,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-22T14:32:18.680Z","etag":null,"topics":["clsx","commit-and-tag-version","commitizen","commitlint","cz-conventional-changelog","eslint","husky","lint-staged","nextjs15","prettier","shadcn-ui","tailwindv4","typescript"],"latest_commit_sha":null,"homepage":"","language":"CSS","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/hugocruzlfc.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"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,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-01-14T17:12:39.000Z","updated_at":"2025-04-22T13:25:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"fdfc74de-c3cc-41f6-98c7-086477a4eebb","html_url":"https://github.com/hugocruzlfc/nextjs-perfect-base-template","commit_stats":null,"previous_names":["hugocruzlfc/nextjs-perfect-base-template"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/hugocruzlfc/nextjs-perfect-base-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugocruzlfc%2Fnextjs-perfect-base-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugocruzlfc%2Fnextjs-perfect-base-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugocruzlfc%2Fnextjs-perfect-base-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugocruzlfc%2Fnextjs-perfect-base-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hugocruzlfc","download_url":"https://codeload.github.com/hugocruzlfc/nextjs-perfect-base-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugocruzlfc%2Fnextjs-perfect-base-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31671629,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T17:19:37.612Z","status":"online","status_checked_at":"2026-04-11T02:00:05.776Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["clsx","commit-and-tag-version","commitizen","commitlint","cz-conventional-changelog","eslint","husky","lint-staged","nextjs15","prettier","shadcn-ui","tailwindv4","typescript"],"created_at":"2025-01-18T10:21:08.550Z","updated_at":"2026-04-11T06:42:37.818Z","avatar_url":"https://github.com/hugocruzlfc.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"This is a [Next.js](https://nextjs.org) project bootstrapped with `pnpm dlx create-next-app@latest --use-pnpm`.\n\n## Getting Started\n\nClone the repository and run `pnpm install` to install the dependencies.\n\n## Development\n\nRun `pnpm dev` to start the development server.\n\n## Configuration step by step\n\nInstall and config each package and create the necessary files for his configuration.\n\n### Commitlint\n\n[See the commitlint guide](https://commitlint.js.org/guides/getting-started.html) and [local setup](https://commitlint.js.org/guides/local-setup.html)\n\n```bash\npnpm add --save-dev @commitlint/{cli,config-conventional}\n```\n\nCreate the commitlint configuration file\n\n```bash\necho \"export default { extends: ['@commitlint/config-conventional'] };\" \u003e commitlint.config.ts\n```\n\n### Husky\n\n```bash\npnpm add --save-dev husky\npnpm husky init\necho \"pnpm dlx commitlint --edit \\$1\" \u003e .husky/commit-msg\n```\n\n### Commitizen and cz-conventional-changelog\n\n[See the commitizen cz-cli guide](https://github.com/commitizen/cz-cli)\n\n```bash\npnpm add -D commitizen\npnpm dlx commitizen init cz-conventional-changelog --pnpm --save-dev --save-exact\n```\n\nCreate prepare-commit-msg hook to run commitizen\n\n```bash\necho \"exec \u003c /dev/tty \u0026\u0026 node_modules/.bin/cz --hook || true\" \u003e .husky/prepare-commit-msg\n```\n\n### Prettier and plugins\n\n```bash\npnpm add -D prettier eslint-config-prettier eslint-config-prettier eslint-plugin-prettier\n```\n\nCreate the prettier configuration file\n\n```bash\necho \"export default {plugins: ['prettier-plugin-organize-imports','prettier-plugin-tailwindcss'],\ntailwindFunctions: ['clsx'],};\" \u003e prettier.config.mjs\n```\n\n### Lint-staged\n\n```bash\npnpm add -D lint-staged\n```\n\nAnd in the pre commit husky hook copy the following:\n\n```bash\nnpx lint-staged\n```\n\nAnd the package.json copy the following:\n\n```json\n \"devDependencies\": {\n   ....\n  },\n  \"lint-staged\": {\n    \"*.{js,ts}\": [\n      \"eslint --fix\",\n      \"prettier --write\"\n    ],\n    \"*.{md,html,json}\": \"prettier --write\"\n  },\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugocruzlfc%2Fnextjs-perfect-base-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhugocruzlfc%2Fnextjs-perfect-base-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugocruzlfc%2Fnextjs-perfect-base-template/lists"}