- Notifications
You must be signed in to change notification settings - Fork0
coder7475/typescript-monorepo
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This Turborepo starter is maintained by theRobiul Hossain.
Run the following command:
npx create-turbo@latest
This Turborepo includes the following packages/apps:
This monorepo contains the following apps and packages:
docs
: aNext.js app for documentationexpress
: a robust Express.js application with user authentication and MongoDB integrationnode-framework
: a custom Node.js framework implementation
@repo/ui
: React component library shared across applications@repo/db
: Database utilities and MongoDB connector@repo/ds
: Data structures implementation (Queue, Stack, RadixTree)@repo/framework
: Custom Node.js framework core@repo/math
: Mathematical utilities@repo/utils
: Common utilities including JWT and password hashing
@repo/eslint-config
: ESLint configurations for Next.js and React@repo/prettier-config
: Prettier formatting configurations@repo/typescript-config
: TypeScript configurations for different project types
Each package/app is 100%TypeScript.
This Turborepo has some additional tools already setup for you:
- TypeScript for static type checking
- ESLint for code linting
- Prettier for code formatting
To build all apps and packages, run the following command:
cd my-turborepo# With [global `turbo`](https://turborepo.com/docs/getting-started/installation#global-installation) installed (recommended)turbo build# Without [global `turbo`](https://turborepo.com/docs/getting-started/installation#global-installation), use your package managernpx turbo buildyarn dlx turbo buildpnpm exec turbo build
You can build a specific package by using afilter:
# With [global `turbo`](https://turborepo.com/docs/getting-started/installation#global-installation) installed (recommended)turbo build --filter=docs# Without [global `turbo`](https://turborepo.com/docs/getting-started/installation#global-installation), use your package managernpx turbo build --filter=docsyarn exec turbo build --filter=docspnpm exec turbo build --filter=docs
To develop all apps and packages, run the following command:
cd my-turborepo# With [global `turbo`](https://turborepo.com/docs/getting-started/installation#global-installation) installed (recommended)turbo dev# Without [global `turbo`](https://turborepo.com/docs/getting-started/installation#global-installation), use your package managernpx turbo devyarn exec turbo devpnpm exec turbo dev
You can develop a specific package by using afilter:
# With [global `turbo`](https://turborepo.com/docs/getting-started/installation#global-installation) installed (recommended)turbo dev --filter=web# Without [global `turbo`](https://turborepo.com/docs/getting-started/installation#global-installation), use your package managernpx turbo dev --filter=webyarn exec turbo dev --filter=webpnpm exec turbo dev --filter=web
Tip
Vercel Remote Cache is free for all plans. Get started today atvercel.com.
Turborepo can use a technique known asRemote Caching to share cache artifacts across machines, enabling you to share build caches with your team and CI/CD pipelines.
By default, Turborepo will cache locally. To enable Remote Caching you will need an account with Vercel. If you don't have an account you cancreate one, then enter the following commands:
cd my-turborepo# With [global `turbo`](https://turborepo.com/docs/getting-started/installation#global-installation) installed (recommended)turbo login# Without [global `turbo`](https://turborepo.com/docs/getting-started/installation#global-installation), use your package managernpx turbo loginyarn exec turbo loginpnpm exec turbo login
This will authenticate the Turborepo CLI with yourVercel account.
Next, you can link your Turborepo to your Remote Cache by running the following command from the root of your Turborepo:
# With [global `turbo`](https://turborepo.com/docs/getting-started/installation#global-installation) installed (recommended)turbo link# Without [global `turbo`](https://turborepo.com/docs/getting-started/installation#global-installation), use your package managernpx turbo linkyarn exec turbo linkpnpm exec turbo link
Learn more about the power of Turborepo:
About
All web projects, services, packages built on typescript libraries and frameworks
Resources
Uh oh!
There was an error while loading.Please reload this page.