{"id":16498020,"url":"https://github.com/dan5py/turborepo-cli-template","last_synced_at":"2025-05-03T21:31:13.642Z","repository":{"id":219320446,"uuid":"748626772","full_name":"dan5py/turborepo-cli-template","owner":"dan5py","description":"Turborepo template for CLI tool","archived":false,"fork":false,"pushed_at":"2024-01-27T12:48:31.000Z","size":96,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-07T21:51:22.999Z","etag":null,"topics":["changesets","cli","commitlint","eslint","husky","nextjs","prettier","shadcn-ui","tailwindcss","turborepo","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dan5py.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2024-01-26T12:08:20.000Z","updated_at":"2024-07-23T10:08:26.000Z","dependencies_parsed_at":"2024-01-26T18:48:22.787Z","dependency_job_id":null,"html_url":"https://github.com/dan5py/turborepo-cli-template","commit_stats":null,"previous_names":["dan5py/turborepo-cli-template"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dan5py%2Fturborepo-cli-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dan5py%2Fturborepo-cli-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dan5py%2Fturborepo-cli-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dan5py%2Fturborepo-cli-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dan5py","download_url":"https://codeload.github.com/dan5py/turborepo-cli-template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252259305,"owners_count":21719659,"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":["changesets","cli","commitlint","eslint","husky","nextjs","prettier","shadcn-ui","tailwindcss","turborepo","typescript"],"created_at":"2024-10-11T14:46:57.470Z","updated_at":"2025-05-03T21:31:09.813Z","avatar_url":"https://github.com/dan5py.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Turborepo starter for a CLI tool\n\nThis is a Turborepo starter for a CLI tool.\n\n\u003e [!NOTE]\n\u003e Built from [turborepo-shadcn-ui](https://github.com/dan5py/turborepo-shadcn-ui)\n\n## Using this example\n\nInstall dependencies:\n\n```sh\ncd turborepo-cli-template\npnpm install\n```\n\n### Add ui components\n\nUse the pre-made script:\n\n```sh\npnpm ui:add \u003ccomponent-name\u003e\n```\n\n\u003e This works just like the add command in the `shadcn/ui` CLI.\n\n### Add a new app\n\nTurborepo offer a simple command to add a new app:\n\n```sh\npnpm turbo gen workspace --name \u003capp-name\u003e\n```\n\nThis will create a new empty app in the `apps` directory.\n\nIf you want, you can copy an existing app with:\n\n```sh\npnpm turbo gen workspace --name \u003capp-name\u003e --copy\n```\n\n\u003e [!NOTE]\n\u003e Remember to run `pnpm install` after copying an app.\n\n### Publish the CLI package\n\nAuthenticate your machine with NPM:\n\n```sh\npnpm adduser\n```\n\n\u003e [!NOTE]\n\u003e REMEMBER to change the name of the the CLI package in `packages/cli/package.json` (replace it also in the scripts)\n\nFinally, publish the package:\n\n```sh\npnpm pub:release\n```\n\n## What's inside?\n\nThis Turborepo includes the following packages/apps:\n\n### Apps and Packages\n\n- `docs`: a [Next.js](https://nextjs.org/) app\n- `web`: another [Next.js](https://nextjs.org/) app\n- `@repo/ui`: a stub React component library shared by both `web` and `docs` applications (🚀 powered by **shadcn/ui**)\n- `@repo/eslint-config`: `eslint` configurations (includes `eslint-config-next` and `eslint-config-prettier`)\n- `@repo/typescript-config`: `tsconfig.json`s used throughout the monorepo\n- `@repo/cli`: a CLI tool example\n\nEach package/app is 100% [TypeScript](https://www.typescriptlang.org/).\n\n### Utilities\n\nThis Turborepo has some additional tools already setup for you:\n\n- [TypeScript](https://www.typescriptlang.org/) for static type checking\n- [ESLint](https://eslint.org/) for code linting\n- [Prettier](https://prettier.io) for code formatting\n\n### Build\n\nTo build all apps and packages, run the following command:\n\n```sh\ncd turborepo-shadcn-ui\npnpm build\n```\n\n### Develop\n\nTo develop all apps and packages, run the following command:\n\n```sh\ncd turborepo-shadcn-ui\npnpm dev\n```\n\n### Remote Caching\n\nTurborepo can use a technique known as [Remote Caching](https://turbo.build/repo/docs/core-concepts/remote-caching) to share cache artifacts across machines, enabling you to share build caches with your team and CI/CD pipelines.\n\nBy default, Turborepo will cache locally. To enable Remote Caching you will need an account with Vercel. If you don't have an account you can [create one](https://vercel.com/signup), then enter the following commands:\n\n```\ncd turborepo-shadcn-ui\nnpx turbo login\n```\n\nThis will authenticate the Turborepo CLI with your [Vercel account](https://vercel.com/docs/concepts/personal-accounts/overview).\n\nNext, you can link your Turborepo to your Remote Cache by running the following command from the root of your Turborepo:\n\n```sh\nnpx turbo link\n```\n\n## Useful Links\n\nLearn more about the power of Turborepo:\n\n- [Tasks](https://turbo.build/repo/docs/core-concepts/monorepos/running-tasks)\n- [Caching](https://turbo.build/repo/docs/core-concepts/caching)\n- [Remote Caching](https://turbo.build/repo/docs/core-concepts/remote-caching)\n- [Filtering](https://turbo.build/repo/docs/core-concepts/monorepos/filtering)\n- [Configuration Options](https://turbo.build/repo/docs/reference/configuration)\n- [CLI Usage](https://turbo.build/repo/docs/reference/command-line-reference)\n\nLearn more about shadcn/ui:\n\n- [Documentation](https://ui.shadcn.com/docs)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdan5py%2Fturborepo-cli-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdan5py%2Fturborepo-cli-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdan5py%2Fturborepo-cli-template/lists"}