hasangkz
hasangkz

Reputation: 53

I want to use turborepo in a project where I don't use next.js. Is something like this possible?

I searched a bit but couldn't find the exact solution.

How to use turborepo without using next.js any comments about it guys?

I don't want to use next.js because its advantages are not important to me but I really like turborepo. There is a solution built with next.js in vercel's documentation.

Upvotes: 1

Views: 4294

Answers (3)

Simran Singh
Simran Singh

Reputation: 2869

Vercel have few offical monorepo Turborepo templates that you can access by just modifying npx create-turbo@latest cli commands.

For example you don't want default NextJs app starter app instead you want Svelte. You just add a svelet flag in the installation command. It will create a starter app with svelte and do all required configuration. 👇

npx create-turbo@latest -e with-svelte

You can find all official templates made by vercel over on their official website ⭐.

Upvotes: 0

Pankaj Avhad
Pankaj Avhad

Reputation: 354

Its easy just follow the instruction here if you want to create a vite app Run the command where you want to create your app within turborepo, generally at the root of apps directory

Step 1.

pnpm create vite

Step 2. Name the app in the prompt, this will create a directory and select the template you want to create your app with.

https://vitejs.dev/guide/#scaffolding-your-first-vite-project

Upvotes: 0

trm217
trm217

Reputation: 97

Next.js is in no way a pre-condition to use Truborepo. You can use Turborepo within any JS code base that you‘d like.

All you have to do is to create an app, for example with Vue.js, in the /apps directory. Once that‘s done, be sure to register the needed pipelines in your Turborepo config-file (turbo.json). And that‘s basically it.

Here is a more thorough explanation of what I tried to explain.

Upvotes: 5

Related Questions