Do you have a sweet ruby script that you want to easily share with your friends or a nice class that you think would be useful to others? Fret not, in this article, I will show you how to make a ruby gem using your existing ruby code.

Image for post
Image for post
Photo by Muhannad Ajjan on Unsplash

I will be using a mock project with the following project structure:


It took me quite a bit of time to setup tailwind with webpack, so I’ve documented my steps here to help my future self and others.

Image for post
Image for post
Photo by Pankaj Patel on Unsplash

Installation

  1. Make a directory and cd into it.

mkdir tailwind-webpack-test && cd tailwind-webpack-test

2. Create package.json.

npm init -y

3. Install webpack along with loaders. babel is optional.

npm install --save-dev webpack webpack-cli webpack-dev-server babel-loader @babel/core @babel/preset-env style-loader css-loader postcss postcss-loader

4. Install tailwindcss.

npm install tailwindcss

Setup

  1. Create webpack entry and output points.

mkdir dist src && touch dist/index.html src/index.js src/style.css

2. Copy the following into webpack.config.js in the root of your directory.

const path…


There are two things that I gained from my experience as a tutor that is helping me become a better programmer: the ability to simplify complex topics to basic principles and the communication skills to clearly convey my ideas. Although teaching and development are completely different professions, the skills needed to excel in them are quite similar.

Image for post
Image for post

The ability to simplify complex topics to basic principles has enabled me to pick up new tools and programming concepts quickly. As a junior developer, I’ve had to pick up lots of new things like design patterns and algorithms. …

Meron Ogbai

I’m a Full-Stack Developer who’s passionate about solving complex problems using code.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store