<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Sumit Parakh</title>
    <description>The latest articles on Forem by Sumit Parakh (@sumitparakh).</description>
    <link>https://forem.com/sumitparakh</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F161458%2Fe938d9e6-ca08-4b2f-85d9-d63d55f0f4c7.jpeg</url>
      <title>Forem: Sumit Parakh</title>
      <link>https://forem.com/sumitparakh</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/sumitparakh"/>
    <language>en</language>
    <item>
      <title>How to make angular app watch for changes in angular library and update itself?</title>
      <dc:creator>Sumit Parakh</dc:creator>
      <pubDate>Sun, 01 Mar 2020 14:48:25 +0000</pubDate>
      <link>https://forem.com/sumitparakh/how-to-make-angular-app-watch-for-changes-in-angular-library-and-update-itself-2j79</link>
      <guid>https://forem.com/sumitparakh/how-to-make-angular-app-watch-for-changes-in-angular-library-and-update-itself-2j79</guid>
      <description>&lt;p&gt;&lt;a href="https://angular.io/cli"&gt;Angular CLI&lt;/a&gt; provides a command-line interface to do a lot of things like linting, changing configuration of your application, view docs, run and build your app etc etc..&lt;/p&gt;

&lt;p&gt;Out of these commands, there is a &lt;a href="https://angular.io/cli/generate"&gt;generate&lt;/a&gt; command which allows us to create building blocks of our application. In this article, we are going to learn how to &lt;a href="https://angular.io/guide/creating-libraries"&gt;generate library&lt;/a&gt; and watch for changes in the library in an angular application.&lt;/p&gt;

&lt;h4&gt;
  
  
  Let's get started.
&lt;/h4&gt;

&lt;h3&gt;
  
  
  Create an empty angular application
&lt;/h3&gt;



&lt;div class="highlight"&gt;&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;ng&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nx"&gt;my&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;lib&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;app&lt;/span&gt; &lt;span class="err"&gt;–&lt;/span&gt;&lt;span class="nx"&gt;createApplication&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;This command will create angular application with an empty workspace.&lt;/p&gt;
&lt;h3&gt;
  
  
  Add a library project
&lt;/h3&gt;

&lt;p&gt;Go to the root of this project and generate a library.&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;cd&lt;/span&gt; &lt;span class="nx"&gt;my&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;lib&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;app&lt;/span&gt;
&lt;span class="nx"&gt;ng&lt;/span&gt; &lt;span class="nx"&gt;g&lt;/span&gt; &lt;span class="nx"&gt;library&lt;/span&gt; &lt;span class="nx"&gt;lib1&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;This command will generate a library project for you. Now build this library:-&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;ng&lt;/span&gt; &lt;span class="nx"&gt;build&lt;/span&gt; &lt;span class="nx"&gt;lib1&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Depending on angular.json configuration, it will generate build files in the output path. By default it should be &lt;strong&gt;dist/lib1&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Link this library in your local system. Go to the build folder of your library and run command:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;npm&lt;/span&gt; &lt;span class="nx"&gt;link&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;It will globally link your library in your local system and you will be able to install it in any app in your system.&lt;/p&gt;
&lt;h3&gt;
  
  
  Create an angular application
&lt;/h3&gt;

&lt;p&gt;Run following command to create an angular app:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;ng&lt;/span&gt; &lt;span class="nx"&gt;g&lt;/span&gt; &lt;span class="nx"&gt;application&lt;/span&gt; &lt;span class="nx"&gt;myapp&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Now install library which we've created earlier. But to enable watching, we’ll have to install this library with a file system url:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;npm&lt;/span&gt; &lt;span class="nx"&gt;install&lt;/span&gt; &lt;span class="nx"&gt;file&lt;/span&gt;&lt;span class="p"&gt;:.&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="nx"&gt;dist&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="nx"&gt;lib1&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Now run following commands:-&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;ng&lt;/span&gt; &lt;span class="nx"&gt;build&lt;/span&gt; &lt;span class="nx"&gt;lib1&lt;/span&gt; &lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="nx"&gt;watch&lt;/span&gt;
&lt;span class="nx"&gt;ng&lt;/span&gt; &lt;span class="nx"&gt;serve&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Now use any component from your library in the app. Run it. Make some changes to the library and you’ll see that app is updating automatically based on those changes.&lt;/p&gt;

&lt;p&gt;You can find complete source code of this article here:-&lt;/p&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--qF2jUiUG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/github-logo-6a5bca60a4ebf959a6df7f08217acd07ac2bc285164fae041eacb8a148b1bab9.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/sumitparakh"&gt;
        sumitparakh
      &lt;/a&gt; / &lt;a href="https://github.com/sumitparakh/ng-lib-watch"&gt;
        ng-lib-watch
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      Make angular app watch for changes in angular library and update itself?
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;
&lt;h1&gt;
NgLibWatch&lt;/h1&gt;
&lt;p&gt;This project was generated with &lt;a href="https://github.com/angular/angular-cli"&gt;Angular CLI&lt;/a&gt; version 9.0.2.&lt;/p&gt;
&lt;h2&gt;
Development server&lt;/h2&gt;
&lt;p&gt;Run &lt;code&gt;ng serve&lt;/code&gt; for a dev server. Navigate to &lt;code&gt;http://localhost:4200/&lt;/code&gt;. The app will automatically reload if you change any of the source files.&lt;/p&gt;
&lt;h2&gt;
Code scaffolding&lt;/h2&gt;
&lt;p&gt;Run &lt;code&gt;ng generate component component-name&lt;/code&gt; to generate a new component. You can also use &lt;code&gt;ng generate directive|pipe|service|class|guard|interface|enum|module&lt;/code&gt;.&lt;/p&gt;
&lt;h2&gt;
Build&lt;/h2&gt;
&lt;p&gt;Run &lt;code&gt;ng build&lt;/code&gt; to build the project. The build artifacts will be stored in the &lt;code&gt;dist/&lt;/code&gt; directory. Use the &lt;code&gt;--prod&lt;/code&gt; flag for a production build.&lt;/p&gt;
&lt;h2&gt;
Running unit tests&lt;/h2&gt;
&lt;p&gt;Run &lt;code&gt;ng test&lt;/code&gt; to execute the unit tests via &lt;a href="https://karma-runner.github.io" rel="nofollow"&gt;Karma&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;
Running end-to-end tests&lt;/h2&gt;
&lt;p&gt;Run &lt;code&gt;ng e2e&lt;/code&gt; to execute the end-to-end tests via &lt;a href="http://www.protractortest.org/" rel="nofollow"&gt;Protractor&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;
Further help&lt;/h2&gt;
&lt;p&gt;To get more help on the Angular CLI use &lt;code&gt;ng help&lt;/code&gt; or go check out the &lt;a href="https://github.com/angular/angular-cli/blob/master/README.md"&gt;Angular CLI README&lt;/a&gt;.&lt;/p&gt;
&lt;/div&gt;

  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/sumitparakh/ng-lib-watch"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;



</description>
      <category>angular</category>
      <category>library</category>
      <category>opensource</category>
    </item>
    <item>
      <title>How can i make my career in open source development?</title>
      <dc:creator>Sumit Parakh</dc:creator>
      <pubDate>Sun, 17 Nov 2019 16:20:29 +0000</pubDate>
      <link>https://forem.com/sumitparakh/how-can-i-make-my-career-in-open-source-development-4p6</link>
      <guid>https://forem.com/sumitparakh/how-can-i-make-my-career-in-open-source-development-4p6</guid>
      <description>&lt;p&gt;I see some people in Twitter whose bio says that they are Open source developer or open source advocate in some xyz company. I am also very much interested in open source development but not sure how to make a good career out of it.&lt;/p&gt;

&lt;p&gt;Can anyone please guide?&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>career</category>
    </item>
    <item>
      <title>How to contribute to xLayers this hacktoberfest</title>
      <dc:creator>Sumit Parakh</dc:creator>
      <pubDate>Wed, 02 Oct 2019 14:29:15 +0000</pubDate>
      <link>https://forem.com/xlayers/how-to-contribute-to-xlayers-this-hacktoberfest-285p</link>
      <guid>https://forem.com/xlayers/how-to-contribute-to-xlayers-this-hacktoberfest-285p</guid>
      <description>&lt;h3&gt;
  
  
  The &lt;strong&gt;&lt;a href="https://hacktoberfest.digitalocean.com/"&gt;Hacktoberfest 2019&lt;/a&gt;&lt;/strong&gt; is here. :D
&lt;/h3&gt;

&lt;p&gt;This event is organized by digitalocean every year in October, to celebrate the open-source community and their contributions. It not only promotes the idea of open-source but also provides a great opportunity for developers across the world, to make contributions to ANY open source project.&lt;/p&gt;

&lt;p&gt;If you have never made any open source contribution but are willing to, then this is the best opportunity for you to begin with and learn.  &lt;/p&gt;

&lt;p&gt;Don't know how to make PR to any open source project? Well, you got to read this:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://dev.to/wassimchegham/demystifying-open-source-contributions-1moi"&gt;Demystifying Open Source Contributions&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In order to keep the momentum of open source, &lt;a href="https://xlayers.dev"&gt;we&lt;/a&gt;, the &lt;a href="https://github.com/xlayers/xlayers/graphs/contributors"&gt;xLayerians&lt;/a&gt; also invite your contributions.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;What is xLayers?&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://github.com/xlayers/xlayers"&gt;xLayers&lt;/a&gt; is a community driven open source project which is a perfect companion for designers who want to see their design running ;) &lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;What does xLayers do?&lt;/strong&gt;
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Convert your &lt;a href="https://www.sketch.com"&gt;sketch&lt;/a&gt; prototype into code of &lt;a href="https://github.com/xlayers/xlayers/wiki"&gt;any framework&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Display your design directly on the web.&lt;/li&gt;
&lt;li&gt;3D rotation, preview mode and zooming support&lt;/li&gt;
&lt;li&gt;Display metadata of your design such as size, position, layout structure, etc. 
on the page.&lt;/li&gt;
&lt;li&gt;Edit, run and deploy the generated code directly from your browser. Thanks to &lt;a href="https://stackblitz.com"&gt;stackblitz&lt;/a&gt; :)&lt;/li&gt;
&lt;li&gt;Download generated code as a zip file.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;How to contribute to xLayers?&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;It is very simple. &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Just go through &lt;a href="https://github.com/xlayers/xlayers/labels/hacktoberfest"&gt;this link&lt;/a&gt; to get a list of hacktoberfest issues. &lt;/li&gt;
&lt;li&gt;Pick any issue you want &lt;/li&gt;
&lt;li&gt;Read our &lt;a href="https://github.com/xlayers/xlayers/blob/master/CONTRIBUTING.md"&gt;contribution guidelines&lt;/a&gt; &lt;/li&gt;
&lt;li&gt;Get started. :)&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Apart from the main xLayers project, we also have few more projects in our github &lt;a href="https://github.com/xlayers"&gt;organization&lt;/a&gt; which you can look around:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;a href="https://github.com/xlayers/xlayers-lite"&gt;xlayers-lite&lt;/a&gt;  (Web Component of xLayers)&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.com/xlayers/xlayers-vscode-extenstion"&gt;xlayers-vscode-extenstion&lt;/a&gt;  (vscode extension of xLayers)&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;So what are you waiting for? Let’s begin. Afterall, it is open to all :)&lt;/p&gt;

&lt;p&gt;If you have any doubt, feel free to comment here or &lt;a href="https://github.com/xlayers/xlayers/issues/new/choose"&gt;raise an issue&lt;/a&gt;, or &lt;a href="https://twitter.com/xlayers_"&gt;tweet/DM&lt;/a&gt; us :) .&lt;/p&gt;

</description>
      <category>hacktoberfest</category>
      <category>xlayers</category>
      <category>angular</category>
    </item>
  </channel>
</rss>
