{"id":36923,"date":"2018-04-18T11:04:55","date_gmt":"2018-04-18T18:04:55","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/webdev\/?p=13305"},"modified":"2018-04-18T11:04:55","modified_gmt":"2018-04-18T18:04:55","slug":"what-happened-to-bower","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/dotnet\/what-happened-to-bower\/","title":{"rendered":"What Happened to Bower?"},"content":{"rendered":"<p>Bower is a popular package management system for managing static content used by client-side web applications. Visual Studio provides rich support for Bower, including templates and package management tools.<\/p>\n<p>In October 2017, there were announcements on Twitter hinting that the Bower platform was being deprecated. While Bower hasn\u2019t gone away, the <a href=\"https:\/\/bower.io\/\">official website<\/a> is encouraging people to use different frameworks, even going so far as to provide detailed instructions on \u201c<a href=\"https:\/\/bower.io\/blog\/2017\/how-to-migrate-away-from-bower\/\">How to migrate away from Bower<\/a>\u201d and \u201c<a href=\"https:\/\/bower.io\/blog\/2017\/how-to-drop-bower-support\/\">How to drop Bower support<\/a>\u201d. <\/p>\n<p>In their own words:<\/p>\n<p><a href=\"http:\/\/devblogs.microsoft.com\/aspnet\/wp-content\/uploads\/sites\/16\/2018\/04\/bower-recommends-yarn.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/aspnet\/wp-content\/uploads\/sites\/16\/2018\/04\/bower-recommends-yarn-2.png\" alt=\"Message on Bower website: 'While Bower is maintained, we recommend using Yarn and Webpack for front-end projects'\" width=\"650\" class=\"alignnone size-full wp-image-13325\" \/><\/a><\/p>\n<p>Though it doesn\u2019t say it explicitly, it implies that Bower is deprecated. Existing projects that depend on package management via Bower will continue to work for the time being; but it\u2019s recommended that new projects should not take a dependency on Bower.<\/p>\n<h3>Introducing Library Manager<\/h3>\n<p>While there are other useful package managers, as Bower points out (e.g. npm), most are designed to handle a variety of tasks, which adds unnecessary complexity when you only need them for a single task (acquiring client-side libraries). So, here at Visual Studio, we decided to create a new tool that would be as simple as possible for specifically addressing the need to acquire client-side content for web applications. Hence, the introduction of \u201cLibrary Manager\u201d.<\/p>\n<p>Library Manager (&#8220;LibMan&#8221; for short) is Visual Studio\u2019s new client-side static content management system. Designed as a replacement for Bower and npm, LibMan helps users find and fetch library files from an external source (like <a href=\"https:\/\/cdnjs.com\/\">CDNJS<\/a>) or from any file system library catalog.<\/p>\n<p>You can specify the library files required for your project by adding entries to the LibMan configuration file &#8211; libman.json. See the image below; it shows an example libman.json file in which some jQuery files are added to the wwwroot\/lib directory.<\/p>\n<p><a href=\"http:\/\/devblogs.microsoft.com\/aspnet\/wp-content\/uploads\/sites\/16\/2018\/04\/example-libman.json_.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/aspnet\/wp-content\/uploads\/sites\/16\/2018\/04\/example-libman.json_-1.png\" alt=\"Example libman.json\" width=\"400\" class=\"alignnone size-full wp-image-13315\" style=\"border: 1px solid #c3c3c3\" \/><\/a><\/p>\n<p>To learn more about LibMan, see the article &#8220;<a href=\"https:\/\/blogs.msdn.microsoft.com\/webdev\/2018\/04\/17\/library-manager-client-side-content-manager-for-web-apps\/\">Library Manager: Client-side content management for web apps<\/a>&#8220;.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Bower is a popular package management system for managing static content used by client-side web applications. Visual Studio provides rich support for Bower, including templates and package management tools. In October 2017, there were announcements on Twitter hinting that the Bower platform was being deprecated. While Bower hasn\u2019t gone away, the official website is encouraging [&hellip;]<\/p>\n","protected":false},"author":467,"featured_media":58792,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[197],"tags":[],"class_list":["post-36923","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-aspnet"],"acf":[],"blog_post_summary":"<p>Bower is a popular package management system for managing static content used by client-side web applications. Visual Studio provides rich support for Bower, including templates and package management tools. In October 2017, there were announcements on Twitter hinting that the Bower platform was being deprecated. While Bower hasn\u2019t gone away, the official website is encouraging [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/36923","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/users\/467"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/comments?post=36923"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/36923\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media\/58792"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media?parent=36923"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/categories?post=36923"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/tags?post=36923"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}