This is a Next.js project bootstrapped with create-next-app
.
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
Build a Yarn Workspace on the root folder containing both repositories
Setup a package.json file
{
"private": true,
"workspaces": [
"design-system",
"website",
]
}
Remove lock files on both folders, the app that will drink from the design-system folder.
Root yarn install from the root folder
And then start your dev environments on each project.
Yarn dev for a next.js project
yarn watch:all for the design system