Alt description missing in image
Beta: Plugins coming soon!
@green-stack/coregeneratorsadd-workspace
Alt description missing in image

add-workspace

npm run add:workspace -- --args <workspaceType> <folderName> <packageName> <workspaceStructure> <packageDescription>
npx turbo gen add-workspace --args <workspaceType> <folderName> <packageName> <workspaceStructure> <packageDescription>
        • add-workspace.ts

Prompt Arguments

ArgumentTypeQuestion / Description
workspaceTyperadioWhat type of workspace would you like to generate?
=> package / feature
folderNametextWhat foldername do you want to give this workspace?
=> string
packageNametextWhat package name would you like to import from?
=> string
workspaceStructurechecklistOptional: What will this workspace contain?
=> schemas, resolvers, components, hooks, screens, routes, …
packageDescriptiontextOptional: How would you shortly describe the package?
=> string

Resulting Files

/{workspaceType}/ # <- e.g. packages/ or features/
 └── {folderName}/ ❇️
     └── {workspaceStructure}/ ❇️ # <- e.g. schemas/, resolvers/, components/, ...
     └── package.json ❇️
     └── tsconfig.json ❇️