excubo-ag / WebCompiler

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make a Build nupkg variant of this

frankhommers opened this issue · comments

We do some packaging stuff with Libman too.
They have a CLI version: https://www.nuget.org/packages/Microsoft.Web.LibraryManager.Cli
But also one which you can just ref in your project during the Build stage: https://www.nuget.org/packages/Microsoft.Web.LibraryManager.Build

It would be very cool if we could have such a build thingy of this webcompiler too!

Anyway, great work! We love it ;-)

Hi @frankhommers,

Could you please elaborate what specifically you are looking for? There's already support for using this in build targets, as documented in the Readme, so I'm not sure what's missing for you.

Cheers,
Stefan

Well, for Microsoft.Web.LibraryManager.Build we don't need to do dotnet tool restore just referencing the package will make it execute the build step.

I never had to run that command so far. AFAIK it's only relevant if you use dotnet tools locally, rather than globally. Have you considered switching?

For us it is inside a Docker container.

For docker files, I'd strongly recommend running the webcompiler commands as independent operations to the dotnet build. You will never get any caching benefits if compiling static assets is inside the dotnet build.