Turborepo
Last updated
Was this helpful?
Last updated
Was this helpful?
A monorepo is a single repository containing multiple distinct projects, with well-defined relationships. learn more at
enable managing deployable apps and associated in single git repo. Sharing Code cab be either or
Internal packages are which are only intended to be used inside your monorepo. They're extremely useful for sharing code between apps in closed-source monorepos. External packages run their files through a bundler before putting them on a package registry.
This Turborepo includes the following packages/apps:
WebApps
playground
: an experimental web app to play with new ideas.
docs
: a sample documentation web app build with astro's
web
: a sample landing page web app build with
console
: a sample dashboard web app build with
Packages
ui
: a stub Svelte component library shared by both web
and docs
applications
eslint-config
: eslint
configurations (includes eslint-plugin-svelte
and eslint-config-prettier
)
prettier-config
: shared prettier
configurations (plugins etc...)
typescript-config
: shared tsconfig
files
utils
: utility functions used throughout the monorepo
This Turborepo has some additional tools already setup for you:
Turbo CLI
to create a new sveltekit turborepo, Run the following command:
turbo automatically include environment variables from .env , .secrets as we set them at globalDotEnv in turbo.json
migrate command which both upgrades your repo to the specified version (latest by default) of turbo, and runs any codemods required.
for static type checking
for code linting
for code formatting
VS Code monorepo plugin:
Turbo is working on to load dotEnv files. Meanwhile we recommend using a library called to solve this problem.