<?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>DEV Community: Marcus Chukwuoma</title>
    <description>The latest articles on DEV Community by Marcus Chukwuoma (@marcdomain).</description>
    <link>https://dev.to/marcdomain</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%2F176438%2F8b3a3ca3-b09f-4c91-97cf-1ffb5110380c.jpg</url>
      <title>DEV Community: Marcus Chukwuoma</title>
      <link>https://dev.to/marcdomain</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/marcdomain"/>
    <language>en</language>
    <item>
      <title>Github Actions: set-variables</title>
      <dc:creator>Marcus Chukwuoma</dc:creator>
      <pubDate>Tue, 03 May 2022 10:33:09 +0000</pubDate>
      <link>https://dev.to/marcdomain/github-actions-set-variables-7hd</link>
      <guid>https://dev.to/marcdomain/github-actions-set-variables-7hd</guid>
      <description>&lt;p&gt;&lt;a href="https://github.com/marketplace/actions/set-variables"&gt;set-variables&lt;/a&gt; is a Github Action for setting multiple variables dynamically. It also accepts the ternary operator syntax &lt;code&gt;VARIABLE_NAME: conditional_statement ? true : false&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  USAGE
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Variables
&lt;/h3&gt;

&lt;p&gt;Variable names are dynamic - you're free to name your variables as you wish.&lt;br&gt;
Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;marcdomain/set-variables@v1&lt;/span&gt;
    &lt;span class="s"&gt;with&lt;/span&gt;&lt;span class="err"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;variables&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="pi"&gt;|&lt;/span&gt;
        &lt;span class="s"&gt;ENVIRONMENT: "${{ github.ref }}" == "refs/heads/main" ? "production" : "staging"&lt;/span&gt;
        &lt;span class="s"&gt;USERNAME: 1 &amp;gt; 2 ? "John" : "Doe"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;NOTE:&lt;/em&gt;&lt;/strong&gt; Only &lt;code&gt;string&lt;/code&gt;, &lt;code&gt;number&lt;/code&gt;, and &lt;code&gt;boolean&lt;/code&gt; data types are accepted in the conditions/values. The maximum number of variables allowed is 10.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Output
&lt;/h3&gt;

&lt;p&gt;Outputs are the resolved variables. In the example above, you can get the expected values with &lt;code&gt;${{ env.ENVIRONMENT }}&lt;/code&gt; and &lt;code&gt;${{ env.USERNAME }}&lt;/code&gt; respectively.&lt;/p&gt;

&lt;h4&gt;
  
  
  Links
&lt;/h4&gt;

&lt;p&gt;&lt;a href="https://github.com/marketplace/actions/set-variables"&gt;https://github.com/marketplace/actions/set-variables&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you would like to buy me coffee ☕️ 😍&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.buymeacoffee.com/marcdomain"&gt;https://www.buymeacoffee.com/marcdomain&lt;/a&gt;&lt;/p&gt;

</description>
      <category>cicd</category>
      <category>github</category>
      <category>environment</category>
      <category>variables</category>
    </item>
    <item>
      <title>ignoreit: vscode extension to automatically ignore files and folders</title>
      <dc:creator>Marcus Chukwuoma</dc:creator>
      <pubDate>Sat, 21 Mar 2020 09:42:25 +0000</pubDate>
      <link>https://dev.to/marcdomain/ignoreit-vscode-extension-to-automatically-ignore-files-and-folders-1lf</link>
      <guid>https://dev.to/marcdomain/ignoreit-vscode-extension-to-automatically-ignore-files-and-folders-1lf</guid>
      <description>&lt;p&gt;I published a VSCODE extension with the name &lt;code&gt;ignoreit&lt;/code&gt;. It automatically helps you to add files and folders to .gitignore and creates a symlink between ".env" and ".env.example" files. So, you’re sure your secrets are never pushed to github or other source controls.&lt;br&gt;
&lt;a href="https://marketplace.visualstudio.com/items?itemName=marcdomain.ignoreit"&gt;https://marketplace.visualstudio.com/items?itemName=marcdomain.ignoreit&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  USAGE
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;Install and navigate to &lt;code&gt;vscode settings.json&lt;/code&gt; and ensure you have "ignoreit.array": [".env", "node_modules", "coverage"] as one of the key-value pairs. The array is a list of files and folders you wish to always ignore. Feel free to modify it.&lt;/li&gt;
&lt;li&gt;If any of the files or folders specified in the array exists in your project directory, ignoreit extension will add it to the .gitignore file.&lt;/li&gt;
&lt;li&gt;If .gitigore file does not exist in your project directory, ignoreit extension will create a .gitignore file and fill in the files you're to ignore.&lt;/li&gt;
&lt;li&gt;The .gitignore content will be the files in your project directory that corresponds to the ignoreit.array&lt;/li&gt;
&lt;li&gt;You can manually add other files to the .gitignore file. New files are always appended to the existing ones.&lt;/li&gt;
&lt;li&gt;If .env file is part of the files in your directory, ignoreit extension will create a .env.example file and fill it with the the contents of your .env file. Only variables are filled in, values are left behind. The .env and .env.example files will always be in sync.&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  REQUIREMENTS
&lt;/h1&gt;

&lt;p&gt;This extension works when you're working in a git repository on VSCODE.&lt;br&gt;
This extension requires that ignoreit.array key be added to your VSCODE settings.json file and value should be an array of files you wish to automatically add to .gitignore file in all your project (if the files or folders exist in your project). See example below&lt;/p&gt;

&lt;p&gt;&lt;code&gt;"ignoreit.array": [".env", "node_modules", "coverage"]&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://marketplace.visualstudio.com/items?itemName=marcdomain.ignoreit"&gt;https://marketplace.visualstudio.com/items?itemName=marcdomain.ignoreit&lt;/a&gt;&lt;/p&gt;

</description>
      <category>vscode</category>
      <category>gitignore</category>
      <category>git</category>
      <category>ignoreit</category>
    </item>
    <item>
      <title>How to customise markdown anchor tags</title>
      <dc:creator>Marcus Chukwuoma</dc:creator>
      <pubDate>Thu, 05 Mar 2020 14:20:21 +0000</pubDate>
      <link>https://dev.to/marcdomain/how-to-customise-anchor-tags-in-a-markdown-3nf0</link>
      <guid>https://dev.to/marcdomain/how-to-customise-anchor-tags-in-a-markdown-3nf0</guid>
      <description>&lt;p&gt;Customising anchor tags in a markdown file can be daunting when adhering to markdown syntaxes.&lt;br&gt;
For example [click-here](url) will generate a corresponding anchor tag &amp;lt;a href='url'&amp;gt;click-here &amp;lt;/a&amp;gt;, this makes it difficult to add customisations such as.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Opening external links in a new tab, while local links retain default behaviour (opens on same tab)&lt;/li&gt;
&lt;li&gt;Adding attributes to the anchor tags&lt;/li&gt;
&lt;li&gt;Adding className links so as to do more customisation with CSS and JavaScript.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So, I have created an NPM package to solve this challenge. Check it out &lt;a href="https://www.npmjs.com/package/customise-links"&gt;https://www.npmjs.com/package/customise-links&lt;/a&gt;&lt;/p&gt;

</description>
      <category>gatsby</category>
      <category>javascript</category>
      <category>markdown</category>
      <category>frontend</category>
    </item>
  </channel>
</rss>
