Adding React projects
Course: Turborepo and Monorepos - chapter 15
- Go to the apps folder
cd apps- Create a fresh vite app
npm create vite@latest- Update package.json to include
@repo/uias a dependency
"@repo/ui": "*",- Run npm install in the root folder
cd ..npm install- Run npm run dev
npm run dev- Try importing something from the
uipackage and rendering it - Add a
turbo.jsonto the react folder to override theoutputsobject of this module. Ref https://turbo.build/repo/docs/core-concepts/monorepos/configuring-workspaces
{ "extends": ["//"], "pipeline": { "build": { "outputs": ["dist/**"] } }}