<?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: RM</title>
    <description>The latest articles on DEV Community by RM (@rmur99).</description>
    <link>https://dev.to/rmur99</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%2F1202624%2Fb4e52f72-4637-4eb0-bb9e-be843ae8a7ed.jpg</url>
      <title>DEV Community: RM</title>
      <link>https://dev.to/rmur99</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rmur99"/>
    <language>en</language>
    <item>
      <title>Bashing as a Junior Developer (Gone Right !)</title>
      <dc:creator>RM</dc:creator>
      <pubDate>Tue, 21 Nov 2023 14:32:58 +0000</pubDate>
      <link>https://dev.to/rmur99/bashing-as-a-junior-developer-gone-right--2l3i</link>
      <guid>https://dev.to/rmur99/bashing-as-a-junior-developer-gone-right--2l3i</guid>
      <description>&lt;p&gt;Greetings ! welcome to my first post here , i am a junior developer who likes to learn thing today i will show you how i worked on bash to set tailwind CSS ( everything will be linked on &lt;a href="https://github.com/RMUR99/Bash"&gt;GitHub&lt;/a&gt; !) &lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1 : find a good summarized bash syntax
&lt;/h2&gt;

&lt;p&gt;i personally used Prompt Engineering to give me a summarized list with bash code ( i will put it in Github + i will make a prompt engineering post soon )&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2 : I made a folder for testing purposes
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--JJ10z48Y--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0fxovceh8byozj8encxs.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--JJ10z48Y--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0fxovceh8byozj8encxs.png" alt="Testing Folder" width="252" height="263"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3 : Choose where to write your bash script
&lt;/h2&gt;

&lt;p&gt;i personally tried using notepad + vscode i recommend vscode cause you wont have to move files again to the wanted location plus you will notice if there is something wrong ! &lt;br&gt;
Ps: if you worked on note and saved it ( in the correct location ) it will be synced to vscode too &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--M3jCAW_V--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8p38ggzrt9d4dxgdyn7y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--M3jCAW_V--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8p38ggzrt9d4dxgdyn7y.png" alt="BASH CODE " width="800" height="424"&gt;&lt;/a&gt;&lt;/p&gt;


&lt;h1&gt;
  
  
  NOW IT IS BASH CODE DETAILS !
&lt;/h1&gt;
&lt;h2&gt;
  
  
  Step 1 ) Download Tailwind CSS ! (2 ways)
&lt;/h2&gt;

&lt;p&gt;A) if you want to download it inside a specific folder do the following block : &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Mine is windows but choose the version you want&lt;a href="https://github.com/tailwindlabs/tailwindcss/releases/"&gt; here&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#!/bin/bash

folder_name="packages"
folder_path="D:/Development Journey/Set-up-test/$folder_name"

# Check if folder exists
if [ ! -d "$folder_path" ]; then
    # Create the folder
    mkdir -p "$folder_path"
    echo "Folder '$folder_name' created! 📁"
else
    echo "Folder '$folder_name' already exists! ✅"
fi

# Download Tailwind CSS
curl -sLO https://github.com/tailwindlabs/tailwindcss/releases/download/v3.3.5/tailwindcss-windows-x64.exe

chmod +x tailwindcss-windows-x64.exe

# Rename the downloaded file to 'tailwindcss'
mv tailwindcss-windows-x64.exe tailwindcss

# Move the file to the folder
mv "tailwindcss" "$folder_path"

# Check if file was moved successfully
if [ -f "$folder_path/tailwindcss" ]; then
    echo "File moved to folder '$folder_name' successfully! ✅"
else
    echo "Failed to move file to folder '$folder_name'. Please check the file path and folder permissions. ❌"
fi

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;B) if you just want it "there "&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#!/bin/bash
 Download Tailwind CSS
curl -sLO https://github.com/tailwindlabs/tailwindcss/releases/download/v3.3.5/tailwindcss-windows-x64.exe

chmod +x tailwindcss-windows-x64.exe

# Rename the downloaded file to 'tailwindcss'
mv tailwindcss-windows-x64.exe tailwindcss

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Step 2 : Create input.css and an output.css files
&lt;/h2&gt;

&lt;p&gt;you can either do it manually or vscode or use this bash command touch for creating files !&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#!/bin/bash

# Create input.css file
touch input.css

# Create output.css file
touch output.css


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Step 3 : Next we need to build the Minifying of both CSS files using this bash command
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#!/bin/bash
./packages/tailwindcss -i input.css -o output.css --minify
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Compile and minify your CSS for production make sure that the path is correct or it wont work with you &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--5ewZ3bV4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rqn3hg773uao8nu6yzlm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--5ewZ3bV4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rqn3hg773uao8nu6yzlm.png" alt="BUILD IMAGE " width="800" height="361"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Step 4 : You need to set up a watch command so you can keep the changes synced ! ( also when making this command i had to make sure to put the correct path or it wont work with you )
&lt;/h1&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--M4pZsMch--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bt0ln7ff1nt90wtdb42v.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--M4pZsMch--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bt0ln7ff1nt90wtdb42v.png" alt="Path" width="800" height="235"&gt;&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#!/bin/bash

./packages/tailwindcss -i input.css -o output.css --watch
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>bash</category>
      <category>beginners</category>
      <category>progrmamming</category>
      <category>juniordeveloper</category>
    </item>
  </channel>
</rss>
