Skip to content

Commit b907022

Browse files
committed
feat(workspace-plugin): add initial inferred target creation for visual-regression projects
1 parent 96677d6 commit b907022

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tools/workspace-plugin/src/plugins/workspace-plugin.ts

+11
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,17 @@ function buildWorkspaceTargets(
151151

152152
// react v9 lib
153153
if (projectJSON.projectType === 'library' && tags.includes('vNext')) {
154+
// *-visual-regression projects
155+
if (tags.includes('visual-regression')) {
156+
// TODO: add VRT targets
157+
158+
if (storybookTarget) {
159+
targets.start = { command: `nx run ${config.projectJSON.name}:storybook`, cache: true };
160+
}
161+
162+
return targets;
163+
}
164+
154165
// *-stories projects
155166
if (tags.includes('type:stories')) {
156167
const testSsrTarget = buildTestSsrTarget(projectRoot, options, context, config);

0 commit comments

Comments
 (0)