fix(misc): update nx-welcome templates with as-provided generator paths (#20129)

This commit is contained in:
Leosvel Pérez Espinosa 2023-11-09 16:56:06 +01:00 committed by GitHub
parent fda47a1737
commit 40f54d57c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 13 additions and 13 deletions

View File

@ -744,7 +744,7 @@ import { Component, ViewEncapsulation } from '@angular/core';
<pre><span># Generate UI lib</span> <pre><span># Generate UI lib</span>
nx g &#64;nx/angular:lib ui nx g &#64;nx/angular:lib ui
<span># Add a component</span> <span># Add a component</span>
nx g &#64;nx/angular:component button --project ui</pre> nx g &#64;nx/angular:component ui/src/lib/button</pre>
</details> </details>
<details> <details>
<summary> <summary>

View File

@ -747,7 +747,7 @@ import { CommonModule } from '@angular/common';
<pre><span># Generate UI lib</span> <pre><span># Generate UI lib</span>
nx g &#64;nx/angular:lib ui nx g &#64;nx/angular:lib ui
<span># Add a component</span> <span># Add a component</span>
nx g &#64;nx/angular:component button --project ui</pre> nx g &#64;nx/angular:component ui/src/lib/button</pre>
</details> </details>
<details> <details>
<summary> <summary>

View File

@ -472,7 +472,7 @@ export const App = () => {
@nx/expo:component \ @nx/expo:component \
</Text> </Text>
<Text style={[styles.textXS, styles.monospace]}> <Text style={[styles.textXS, styles.monospace]}>
button --project ui ui/src/lib/button
</Text> </Text>
</View> </View>
<View style={styles.listItem}> <View style={styles.listItem}>

View File

@ -385,7 +385,7 @@ export default async function Index() {
<span># Generate UI lib</span> <span># Generate UI lib</span>
nx g @nx/next:library ui nx g @nx/next:library ui
<span># Add a component</span> <span># Add a component</span>
nx g @nx/next:component button --project=ui nx g @nx/next:component ui/src/lib/button
</pre> </pre>
</details> </details>
<details> <details>

View File

@ -358,7 +358,7 @@ export function createAppJsx(name: string) {
<span># Generate UI lib</span> <span># Generate UI lib</span>
nx g @nx/next:library ui nx g @nx/next:library ui
<span># Add a component</span> <span># Add a component</span>
nx g @nx/next:component button --project=ui nx g @nx/next:component ui/src/lib/button
</pre> </pre>
</details> </details>
<details> <details>

View File

@ -379,9 +379,9 @@ defineProps<{
</summary> </summary>
<pre> <pre>
<span># Generate UI lib</span> <span># Generate UI lib</span>
nx g @nx/react:lib ui nx g @nx/vue:lib ui
<span># Add a component</span> <span># Add a component</span>
nx g @nx/react:component button --project ui nx g @nx/vue:component ui/src/lib/button
</pre> </pre>
</details> </details>
<details> <details>

View File

@ -472,7 +472,7 @@ export const App = () => {
@nx/react-native:component \ @nx/react-native:component \
</Text> </Text>
<Text style={[styles.textXS, styles.monospace]}> <Text style={[styles.textXS, styles.monospace]}>
button --project ui ui/src/lib/button
</Text> </Text>
</View> </View>
<View style={styles.listItem}> <View style={styles.listItem}>

View File

@ -792,7 +792,7 @@ export function NxWelcome({ title }: { title: string }) {
<span># Generate UI lib</span> <span># Generate UI lib</span>
nx g @nx/react:lib ui nx g @nx/react:lib ui
<span># Add a component</span> <span># Add a component</span>
nx g @nx/react:component button --project ui nx g @nx/react:component ui/src/lib/button
</pre> </pre>
</details> </details>
<details> <details>

View File

@ -372,9 +372,9 @@ defineProps<{
</summary> </summary>
<pre> <pre>
<span># Generate UI lib</span> <span># Generate UI lib</span>
nx g @nx/react:lib ui nx g @nx/vue:lib ui
<span># Add a component</span> <span># Add a component</span>
nx g @nx/react:component button --project ui nx g @nx/vue:component ui/src/lib/button
</pre> </pre>
</details> </details>
<details> <details>

View File

@ -336,7 +336,7 @@ export class AppElement extends HTMLElement {
nx g @nx/angular:lib ui nx g @nx/angular:lib ui
<span># Add a component</span> <span># Add a component</span>
nx g @nx/angular:component button --project ui</pre> nx g @nx/angular:component ui/src/lib/button</pre>
</details> </details>
<details> <details>
<summary> <summary>

View File

@ -336,7 +336,7 @@ export class AppElement extends HTMLElement {
nx g @nx/angular:lib ui nx g @nx/angular:lib ui
<span># Add a component</span> <span># Add a component</span>
nx g @nx/angular:component button --project ui</pre> nx g @nx/angular:component ui/src/lib/button</pre>
</details> </details>
<details> <details>
<summary> <summary>