<?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 Diego Julião on Medium]]></title>
        <description><![CDATA[Stories by Diego Julião on Medium]]></description>
        <link>https://medium.com/@dianjuar?source=rss-760d3f62ec50------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*CaKoSycIbCtKZryX1eU8yQ.jpeg</url>
            <title>Stories by Diego Julião on Medium</title>
            <link>https://medium.com/@dianjuar?source=rss-760d3f62ec50------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 08:16:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dianjuar/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[7 VSCode Extensions to Boost Your Performance as an Angular Developer]]></title>
            <link>https://blog.herodevs.com/7-vscode-extensions-to-boost-your-performance-as-an-angular-developer-21bc37104446?source=rss-760d3f62ec50------2</link>
            <guid isPermaLink="false">https://medium.com/p/21bc37104446</guid>
            <category><![CDATA[vscode]]></category>
            <category><![CDATA[performance]]></category>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[developer-tools]]></category>
            <category><![CDATA[optimization]]></category>
            <dc:creator><![CDATA[Diego Julião]]></dc:creator>
            <pubDate>Wed, 13 Jul 2022 18:06:06 GMT</pubDate>
            <atom:updated>2024-09-25T19:56:34.000Z</atom:updated>
            <content:encoded><![CDATA[<h4>Switchers, checkers, runners galore</h4><figure><img alt="A space ship rocketing into the sky" src="https://cdn-images-1.medium.com/max/1024/1*EciHVXsyE9HDyvUFd9tQhQ.png" /></figure><p>Extensions on VSCode are invaluable tools for us developers to turn repetitive manual tasks in a few clicks or key bindings ⚡, do complex operations automagically ✨, and increase our development satisfaction by providing us a whole new experience on gray areas 🚀.</p><p>Today, we will see 7 VSCode extensions that will increase our performance and enhance our experience with Angular.</p><h4><a href="https://marketplace.visualstudio.com/items?itemName=nrwl.angular-console">Nx Console</a></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/128/1*-RUSd9A-yXichvo5gdrsPA.png" /><figcaption><a href="https://marketplace.visualstudio.com/items?itemName=nrwl.angular-console">Nx Console</a></figcaption></figure><p>This is my favorite so far 😍. It was previously known as <em>Angular Console</em>. The description of this plugin has everything we need to know:</p><blockquote><em>“Spend less time looking up command-line arguments and more time shipping incredible products.”</em></blockquote><p>This extension is a UI for the Angular CLI. You will have all schematic parameters with their description available to decide better what fits your current needs.</p><p><a href="https://www.herodevs.com/blog-posts/testing-ngrx-effects-with-async-await"><strong>Continue Reading on HeroDevs Blog: For the full article and more in-depth insights, visit our official blog. Click here to read the complete post on HeroDevs.</strong></a></p><h4>About HeroDevs</h4><p><a href="https://www.herodevs.com/">HeroDevs</a> is a software engineering and consulting studio that specializes in frontend development. Our team has authored or co-authored projects like the Angular CLI, Angular Universal, Scully, XLTS — extended long-term support for AngularJS, Ng-conf, and many others. We work with fast-growing startups and some of the world’s largest companies like Google, GE, Capital One, Experian, T-Mobile, Corteva, and others. Learn more about us at <a href="http://herodevs.com/">herodevs.com</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=21bc37104446" width="1" height="1" alt=""><hr><p><a href="https://blog.herodevs.com/7-vscode-extensions-to-boost-your-performance-as-an-angular-developer-21bc37104446">7 VSCode Extensions to Boost Your Performance as an Angular Developer</a> was originally published in <a href="https://blog.herodevs.com/">HeroDevs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[`ng deploy` your Angular Library to NPM]]></title>
            <link>https://medium.com/@dianjuar/ng-deploy-your-angular-library-to-npm-a3ccfc88ce39?source=rss-760d3f62ec50------2</link>
            <guid isPermaLink="false">https://medium.com/p/a3ccfc88ce39</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[npm]]></category>
            <category><![CDATA[deployment]]></category>
            <category><![CDATA[angular-cli]]></category>
            <dc:creator><![CDATA[Diego Julião]]></dc:creator>
            <pubDate>Thu, 12 Sep 2019 04:53:31 GMT</pubDate>
            <atom:updated>2023-01-18T21:24:17.625Z</atom:updated>
            <content:encoded><![CDATA[<h3>Edit</h3><p>A lot has passed since this library was released. In a few words, it is now an Nx Plugin, and now it can publish not only Angular libraries but <strong>ANY</strong> type of libraries created on an Angular or Nx Workspace embracing a wide option of technologies.</p><p>I create another blog post with up-to-date information about this tool.</p><p><a href="https://dev.to/dianjuar/publish-your-libraries-to-npm-with-one-command-angular-and-nx-4lao">https://dev.to/dianjuar/publish-your-libraries-to-npm-with-one-command-angular-and-nx-4lao</a></p><p>Publishing your Angular Library to NPM using Angular CLI</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QKaox_3ROdq5yjss0saLjQ.png" /></figure><h3>TL;DR</h3><p>Suppose that you have:</p><ul><li>An Angular Project with a publishable library</li><li>Already logged into NPM using npm login</li></ul><p>Deploy your package by</p><pre>ng add ngx-deploy-npm<br>ng deploy your-library</pre><p>Since Angular CLI version 8.3, we can deploy our applications by simply running <a href="https://angular.schule/blog/2019-08-ng-deploy">ng deploy</a> . The deployers that are currently available at the moment of writing this article are:</p><ul><li><a href="https://www.npmjs.com/package/@angular/fire">Firebase hosting</a></li><li><a href="https://www.npmjs.com/package/@azure/ng-deploy">Azure</a></li><li><a href="https://npmjs.org/package/@zeit/ng-deploy">Now</a></li><li><a href="https://npmjs.org/package/@netlify-builder/deploy">Netlify</a></li><li><a href="https://npmjs.org/package/angular-cli-ghpages">GitHub pages</a></li></ul><p>But in an Angular project you don’t only have apps, you also have <strong>libraries</strong>.</p><blockquote>Today I’m going to talk about <a href="http://npmjs.com/ngx-deploy-npm">ngx-deploy-npm</a><strong>,</strong> a deployer to NPM to be able to publish your libraries using the Angular CLI.</blockquote><h3>Publish your Angular Library to NPM</h3><h4>Pre-steps</h4><ol><li>Have an Angular Library</li><li>Being logged into NPM using npm login</li></ol><h4>Let’s Deploy our Library🚀 💪</h4><p>Let’s add this deployer:</p><pre>ng add ngx-deploy-npm</pre><p>This is going to detect all your libraries and modify your angular.json file to “install” this deployer. You will notice that a new property was added to that file and is going to look like:</p><pre>&quot;deploy&quot;: {<br>  &quot;builder&quot;: &quot;ngx-deploy-npm:deploy&quot;,<br>    &quot;options&quot;: {<br>      &quot;access&quot;: &quot;public&quot;<br>    }<br>}</pre><p>That is all the configuration needed to publish a package to NPM, now what’s left is the <strong>DEPLOY 🚀</strong></p><pre>ng deploy my-library</pre><p><strong>And done, your library is published to NPM 😊</strong></p><blockquote><strong>NOTE:</strong> Be a good citizen and do not publish test packages to NPM. You can use the option <em>--dry-run</em> just to test, with that you’ll see all process but nothing is going to be published</blockquote><h3>Considerations</h3><h4>Version Bumping</h4><p>This deployer doesn’t manage the version of your library, is something that you need to do on your own. It takes the single responsibility of publishing a library to NPM.</p><h3>Why is this Important?</h3><p>It’s useful for Angular package creators that now have a tool that will help them to automate part of the publishment process. It’s really helpful on <a href="http://nx.dev/">Nx</a> projects, because there you can have several applications and libraries using a mono-repo.</p><p>Nx has very useful commands to run test, linter and build only the libraries/apps affected given a point of reference in the git history. To deploy your affected apps and libraries you can run nx affected --target=deploy and with this you can use all the power of the feature ng deploy 💪.</p><h3>What is the Story Behind?</h3><p>I just have finished a deployment script for a side project that I started. When it was finished I said <em>“(yawn) that was hard! 😩”.</em> I have some devops skills and I couldn’t stop thinking about the people that don’t, how difficult would be to deploy an application to them. Two days passed, and I read the news about the new feature of the Angular CLI ng deploy , the universe has heard me!</p><p>In parallel I was planing to publish my third package with some friends, which would be a little bit more complex than my previous ones. We were thinking on publishing several packages that complement the principal one behind an npm scope, just like Angular does @angular/core , @angular/common , @angular/forms , ...</p><p>In all articles that I’ve read about how to publish your libraries on NPM they recommend to have in your package.json an script to make all the steps needed to publish your package. And they are:</p><ul><li>Build your package</li><li>Step on dist</li><li>Copy Readme</li><li>Copy Licence</li><li>Copy ChangeLog</li><li>and finally run npm publish</li></ul><p>So each time that I created a new package I had to copy, paste and adapt the script to my new library, so the idea to repeat all the script to publish each package inside the scope was killing me, I was not being <a href="https://en.wikipedia.org/wiki/Don%27t_repeat_yourself">DRY</a>.</p><p>Combining the just release feature of the Angular CLI, ng deploy , I thought</p><blockquote>What about an NPM deployer 🤔?</blockquote><p>I searched for the existence if this deployer but nothing found. In that search I found a <a href="https://github.com/angular-schule/ngx-deploy-starter">deployer started</a> to build your own deployer, so, I <a href="https://twitter.com/Dianjuar/status/1165997563335663617">asked</a> to <a href="https://medium.com/u/d7fc7be3ac05">Johannes Hoppe</a>, the repo maintainer, if he knows of the existence of the deployer that I had in mind and why I thought it was important, he answers that dunno and</p><blockquote>“Well, then, what are you waiting for 🚀!?”</blockquote><p><strong>Motivation enough to push myself to develop something missing in the Angular Community 😄</strong></p><h3>Test case</h3><p>If you want to see how things are implemented in a real library, for example, see how a project integrates this deployer with a CI or with Nx, you can check this repo:</p><h4><a href="https://github.com/bikecoders/ngx-input-search">ngx-input-search</a></h4><p>Let me know if you have some feedback/suggestions, the PR’s are welcome in the <a href="https://github.com/bikecoders/ngx-deploy-npm">GitHub repo</a>. Also if you found this post useful, 👏 <strong>are welcome.</strong> You can find me on Twitter by <a href="http://twitter.com/dianjuar">@dianjuar</a>.</p><blockquote>If you find <a href="https://www.npmjs.com/package/ngx-deploy-npm">ngx-deploy-npm</a> useful and you are using it in your package I would like to hear what amazing library you are working on 😃</blockquote><p>Keep Publishing! Thanks!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a3ccfc88ce39" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>