<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Hareem Adderley on Medium]]></title>
        <description><![CDATA[Stories by Hareem Adderley on Medium]]></description>
        <link>https://medium.com/@hadderley?source=rss-1e03d38afa93------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*twdI55zTA76iGr9r.</url>
            <title>Stories by Hareem Adderley on Medium</title>
            <link>https://medium.com/@hadderley?source=rss-1e03d38afa93------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 22:36:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hadderley/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to use LibraryManager to manage frontend libraries in PyCharm.]]></title>
            <link>https://medium.com/@hadderley/how-to-use-librarymanager-to-manage-frontend-libraries-in-pycharm-1f0141a3d41f?source=rss-1e03d38afa93------2</link>
            <guid isPermaLink="false">https://medium.com/p/1f0141a3d41f</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[pycharm]]></category>
            <category><![CDATA[django]]></category>
            <category><![CDATA[libman]]></category>
            <dc:creator><![CDATA[Hareem Adderley]]></dc:creator>
            <pubDate>Tue, 25 Feb 2020 20:12:58 GMT</pubDate>
            <atom:updated>2020-02-25T20:12:58.022Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XhfT2DJusFhOA-XH5Lxc8g.jpeg" /><figcaption>Photo by form <a href="http://pxhere.com/en/photo/799887"><strong>PxHere</strong></a></figcaption></figure><h4>Easily manage client-side libraries without the need for yarn, bower, or npm.</h4><blockquote><a href="https://github.com/aspnet/LibraryManager">Microsoft Library Manager</a> is a cross-platform tool built with .NET Core and is used to install and consume 3rd-party client-side libraries with ease.</blockquote><p>It is very useful for traditional web development projects that do not use a front-end JavaScript framework. A developer might not want to use Yarn, npm or Bower for such projects for various reasons. Bower&#39;s depreciation message on its website alone may deter certain types of developers from using it in any new project. Yarn and npm attempt to download 1/10 of the Internet when you may only need the latest CSS and JS files for Twitter Bootstrap. The medieval way of navigating to getbootstrap.com, then clicking around to the downloads page, then either downloading the package or copying the CDN link can also be time-consuming and error-prone.</p><p>Enter <a href="https://github.com/aspnet/LibraryManager">LibraryManager</a>. It is designed to be simple to use, yet so powerful in the solution it provides to this modern problem. Once installed, all you would need to do is create a libman.json file, and enter the packages and destination.</p><p><a href="https://www.djangoproject.com/">Django</a> is my go-to backend web development framework. My IDE of choice is PyCharm and my operating system is MacOS. Therefore this tutorial will be for setting up LibraryManager in PyCharm on MacOS. LibraryManager can also work with VSCode or any other IDE or text-editor.</p><h3>Insalling .NET Core</h3><p>First, install the .<a href="https://dotnet.microsoft.com/download">NET Core SDK from Microsoft’s website</a>. Run the installer and verify the installation by typing dotnet in the terminal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L5-KQKxcBjznMfcQyIf8tQ.png" /><figcaption>.NET Core 3.1 SDK Installer</figcaption></figure><h3>Installing LibraryManager</h3><p>Then install LibraryManager by typing the following command in the terminal.</p><pre>dotnet tool install -g Microsoft.Web.LibraryManager.Cli</pre><p>Now in the root folder of your project, create a file called <strong><em>libman.json</em></strong> and create a destination folder, i.e. the folder where you want to put the CSS, JS, etc. files when they are downloaded.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a6117f083634ace57c28ac13a5f40306/href">https://medium.com/media/a6117f083634ace57c28ac13a5f40306/href</a></iframe><p>Save the libman.json file, then execute the following command from your project root directory in terminal.</p><pre>libman restore</pre><p>If LibraryManager is installed correctly and added to your PATH, the command should run successfully and it should download the files and place them in the destination folder.</p><h3>Configure File Watcher</h3><p>We can automate LibraryManager to run every time we save the libman.json file in PyCharm. Make sure the <a href="https://plugins.jetbrains.com/plugin/7177-file-watchers">File Watchers</a> plugin is installed and enabled. Then create a New Custom Watcher.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1019/1*7EkuV_eVdn32lbslY3VsTw.png" /><figcaption>New File Watcher</figcaption></figure><p>Configure it to run /Users/[YOUR_USERNAME]/.dotnet/tools/libman restore with the <strong><em>Working Directory</em></strong> set to $ContentRoot$ and create a scope for just the libman.json file. Set <strong><em>Show console</em></strong> to <em>Always</em> just to see the results every time it runs. Then edit the libman.json file and save it again to confirm that everything is working as planned.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/732/1*FRVK3mf6ZM3P5f4pij1g6Q.png" /></figure><p>This setup is useful for projects that use <a href="https://docs.djangoproject.com/en/3.0/topics/templates/">Django Templates</a> for the frontend rather than a frontend framework like <a href="https://angular.io/">Angular</a>, <a href="https://reactjs.org/">React</a>, or <a href="https://vuejs.org/">Vue.js</a>. A project that uses <a href="https://www.django-cms.org/en/">django-cms</a>, for example, benefits greatly from a more automated approach to the management of its client-side libraries.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1f0141a3d41f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>