turbo generate
command to create a package in our monorepo where we’ll be importing our Subframe components. We’ll call the package @repo/subframe
.
devDependencies
for the next step.
We’ll also want to integrate our monorepo’s TypeScript and ESLint configuration, so we’ll create the following two files:
@subframe/cli init
command.
@repo/subframe/*
during the initialization process. This will make sure that the code imports from Subframe will work within our UI apps later.
If you forgot to set it, simply edit the importAlias key in your .subframe/sync.json
file and run @subframe/cli init
again to sync the changed import alias to your Subframe project.exports
field in our package.json
accordingly:
@repo/subframe
package into your appdependencies
:
install
command to link your dependencies:
preset
from our local package, as well as include the Subframe component source files in tailwind’s content
array:
@repo/subframe
package.