C
Join ServerC#
help
Frontend package management in ASP.NET Core
AAntonC11/8/2022
The Microsoft docs apparently recommend libman https://learn.microsoft.com/en-us/aspnet/core/client-side/libman/?view=aspnetcore-6.0
and then using external tools for bundling and minification, https://learn.microsoft.com/en-us/aspnet/core/client-side/bundling-and-minification?view=aspnetcore-6.0
But they also have docs on using Grunt and NPM.
This seems like too much work tbh, and would also require configuration duplication.
What do you use usually? With all these separate tools I'd also need to maintain build scripts. Do you use Nuke for that on your job? Maybe send an example?
and then using external tools for bundling and minification, https://learn.microsoft.com/en-us/aspnet/core/client-side/bundling-and-minification?view=aspnetcore-6.0
But they also have docs on using Grunt and NPM.
This seems like too much work tbh, and would also require configuration duplication.
What do you use usually? With all these separate tools I'd also need to maintain build scripts. Do you use Nuke for that on your job? Maybe send an example?
AAngius11/8/2022
That's funny, both Libman and Grunt fell out of favor 

AAngius11/8/2022
Libman got largely replaced by NPM, while Grunt was replaced by Gulp, and layer by bundlers
AAngius11/8/2022
Personally, I use Gulp for build tasks, both for CSS and JS
AAntonC11/8/2022
Sure thanks for the advice
AAntonC11/8/2022
Gulp's last update was in 2019
AAntonC11/8/2022
You're sure it's a good idea to still use it? The world's moving fast
AAntonC11/8/2022
I just installed the package and got 7 vulnerability warnings
AAngius11/8/2022
Yeah, Gulp is slowly going to shit. There's some big update planned for the unspecified future, and even some work put into it, but when it's out nobody knows
AAngius11/8/2022
And the maintainer won't lift a finger to update dependencies because of that
AAntonC11/8/2022
Seems like a bad idea to use it
AAngius11/8/2022
And because it's a dev tool that doesn't make it to production, so all the vulnerabilities are fair game apparently
AAntonC11/8/2022
any alternatives you can suggest?
AAngius11/8/2022
I haven't found anything else that would count as a plain taks runner
AAngius11/8/2022
It's all bundlers nowadays