This is an official starter Turborepo.
This Turborepo uses npm as a packages manager. It includes the following packages/apps:
docs: a Next.js appweb: another Next.js appeleventy-app: an Eleventy sitestatic-demo: a static siteui: a stub React component library shared by bothwebanddocsapplicationseslint-config-custom:eslintconfigurations (includeseslint-config-nextandeslint-config-prettier)tsconfig:tsconfig.jsons used throughout the monorepo
Each package/app is TypeScript.
This Turborepo has some additional tools already setup for you:
- TypeScript for static type checking
- ESLint for code linting
- Prettier for code formatting
cd turborepo-npm-demo
npm installTo build all apps and packages, run the following command:
npm run build
To build only a specific app(Eg:- 'web'), run the following command:
npm run build -- --filter web
Build directory path for the above would be:
./apps/web/.next
To develop all apps and packages, run the following command:
npm run dev
User can host an edge function by adding the functions/[proxy].edge.js file at the root. To understand different use cases of edge function visit Launch Edge Function