Make build call installSee original GitHub issue
There is a particular design aspect of the .NET Core CLI that I like. By default,
dotnet buildimplicitly executes
dotnet publishimplicitly executes
I like this API because I think it makes it easier to achieve the behave the user actually wants. I prefer this behavior when I am manually executing commands.
But sometimes it can be helpful to execute a build without a restore or a publish without a build. This is possible by executing
dotnet build --no-restoreand
dotnet publish --no-build(which implicitly sets
I prefer this behavior when doing automated builds, because when some part fails, I think it is easier to determine what part failed.
What about changing the codedoc CLI to behave similarly?
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top GitHub Comments
codedoc serve doesn’t directly call
codedoc build, it rather invokes the
build() function from
@codedoc/core library (alongside
rebuild() for iterative rebuilding).
I agree with all that.
If you did decide to do this though,
codedoc serve would only need to call
codedoc build --no-install (or whatever).