This is an unofficial starter Turborepo.
Run the following command:
bunx create-turbo@latest -e https://github.com/IslamZaoui/turbo-sveltekit-shadcn
This Turborepo includes the following packages/apps:
web: a sveltekit app@repo/ui: a stub Svelte component library powered by shadcn-svelte & tailwind v4@repo/tsconfig: typescript configurationsEach package/app is 100% TypeScript.
This Turborepo has some additional tools already setup for you:
You can add components to the project by running the following command:
bun ui add <component-name>
# Example:
bun ui add button input
When adding a new component, make sure to update the dependencies correctly:
ui package should go in devDependencies.peerDependencies of the ui package.package.json whenever possible.bun.lock file from the root of the project.pnpm-workspace.yaml in the root of the project with the following content:packages:
- 'apps/*'
- 'packages/*'
catalog:
"typescript": "^6",
...and more (check the workspace field in `package.json` file)
workspace field from the package.json file.bun to use pnpm instead. For example:- "ui": "bun --cwd packages/ui ui"
+ "ui": "pnpm --filter @repo/ui ui"
bun-types and other bun related stuff with nodeAnd you should be good to go!