-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Serve target should not be generated for libraries #28
Comments
This should be fixed in generate-project.ts. Bug was introduced when the logic was removed from the individual generators. Feel free to open a PR or I will get to it tomorrow sometime. |
Do not include serve target for libraries as they cannot be run directly. Fixes #28
Do not include serve target for libraries as they cannot be run directly. Fixes #28
Do not include serve target for libraries as they cannot be run directly. Fixes #28 Co-authored-by: Ben Callaghan <bcallaghan@selectbankcard.com>
🎉 This issue has been resolved in version 0.3.0-dev.2 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
@all-contributors add @bcallaghan-et for code |
I've put up a pull request to add @bcallaghan-et! 🎉 |
Do not include serve target for libraries as they cannot be run directly. Fixes #28 Co-authored-by: Ben Callaghan <bcallaghan@selectbankcard.com>
## [0.2.1-dev.1](v0.2.0...v0.2.1-dev.1) (2021-04-27) ### Bug Fixes * **core:** include serve target only for applications ([#30](#30)) ([d3a54ce](d3a54ce)), closes [#28](#28) * **core:** output paths still use windows separator on linux / mac ([ed1c53a](ed1c53a)) * **core:** use full project path in output directory ([7748f9c](7748f9c)), closes [#27](#27) ### Features * **repo:** enable semantic-release ([298c5af](298c5af))
## [0.2.1](v0.2.0...v0.2.1) (2021-04-27) ### Bug Fixes * **core:** include serve target only for applications ([#30](#30)) ([d3a54ce](d3a54ce)), closes [#28](#28) * **core:** output paths still use windows separator on linux / mac ([ed1c53a](ed1c53a)) * **core:** use full project path in output directory ([7748f9c](7748f9c)), closes [#27](#27) ### Features * **repo:** enable semantic-release ([298c5af](298c5af))
🎉 This issue has been resolved in version 0.2.1-dev.1 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
🎉 This issue has been resolved in version 0.2.1 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Describe the bug
When generating a library, the newly-added section of
workspace.json
includes aserve
target. This target invokesdotnet run
under the hood, which is not supported for library projects. Theserve
target should only be added to application projects.To Reproduce
Steps to reproduce the behavior:
npx nx generate @nx-dotnet/core:lib my-lib --template classlib --language C#
workspace.json
and find the section formy-lib
.architect
key includes aserve
target, which will always fail when run.Expected behavior
A
serve
target should not be included for library projects. Only thebuild
target should be scaffolded (plus atest
target if a test template was specified).Environment:
@nx-dotnet/core
The text was updated successfully, but these errors were encountered: