Skip to content

Commit

Permalink
fix(core): aliases were not being picked up when generating projects …
Browse files Browse the repository at this point in the history
…w/ solution files
  • Loading branch information
AgentEnder committed Dec 14, 2021
1 parent 3d91672 commit 56c770a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 77 deletions.
39 changes: 0 additions & 39 deletions docs/core/generators/app.md

This file was deleted.

35 changes: 0 additions & 35 deletions docs/core/generators/lib.md

This file was deleted.

8 changes: 7 additions & 1 deletion docs/core/guides/handling-solutions.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,19 @@ To add projects to a solution file by default, you can set the generator default
// ... more nx.json configuration
generators: {
// ... other default configurations
'@nx-dotnet/core:app': {
'@nx-dotnet/core:application': {
solutionFile: true,
},
// ... other default configurations
'@nx-dotnet/core:library': {
solution: 'my-sln.sln',
},
},
}
```

> Note that the generator names in `nx.json` must be the full name. Alias's like `app`, `lib` and so on will not be recognized.
## Subgraph Solutions

In a large monorepo, IDEs or other tooling may slow down when presented with a large solution file. Currently, `nx-dotnet` does not assist in managing this issue, but there are a few easy steps to take that can help optimize your workflow. Which path you take will depend on both the tooling you use, and the pains that you are enountering.
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/generators/app/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"description": "Should the project be added to the default solution file?"
}
],
"alias": ["solution", "s"]
"aliases": ["solution", "s"]
}
},
"required": ["name", "template", "language"]
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/generators/lib/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"description": "Should the project be added to the default solution file?"
}
],
"alias": ["solution", "s"]
"aliases": ["solution", "s"]
}
},
"required": ["name", "template", "language", "testTemplate"]
Expand Down

0 comments on commit 56c770a

Please sign in to comment.