I recently decided to publish an NPM module. I wrote it in TypeScript and went with Rollup for bundling. It was my first time publishing a module and my first experience with Rollup, so I’d like to write a tutorial on how to do it, both as a reference for myself and for anyone who may find this useful. Let’s get started!

Why TypeScript and Rollup

I went with TypeScript for several reasons. It’s what I use at work, so I’m not only familiar with it, but it’s always good to hone my skills, especially since I’m not necessarily a TypeScript expert (yet). I’m…


A lot of frustration has been building up inside me lately. I recently deleted my Facebook account, mostly because I decided that I distrusted Facebook more than I enjoyed keeping up with people, but also because my timeline constantly made me upset. I’m starting to feel similarly about Twitter, but instead of deleting my account, I’m going to take a hiatus from the main source of my problems: online social justice.

If you are interested in why I’m so upset, then read on.

1. It’s become too negative and visceral.

Virtually every time I open up Twitter, I am immediately greeted with a ton of negativity. I…


The famous Burr–Hamilton duel

[PHILIP]
Pops, if you had only heard the shit he said about you
I doubt you would have let it slide and I was not about to —

[HAMILTON]
Slow down

[PHILIP]
I came to ask you for advice. This is my very first duel
They don’t exactly cover this subject in boarding school

[HAMILTON]
Did your friends attempt to negotiate a peace?

[PHILIP]
He refused to apologize, we had to let the peace talks cease

- Blow Us All Away by Lin-Manuel Miranda

In the wake of Donald Trump’s election as president of the United States, I have done…


When I was born, my mother was torn crazy
They nearly gave me away to the wrong lady
Doctor said, “Sorry we didn’t see that comin’,
But there’s no way in the world that he came from a black woman”
I guess I been fightin’ since birth
I barely had life on this earth
Already subjected to people and how they judge
Little fair-skinned baby, resentment was in my blood

- Who I Am by Locksmith

Before I begin, I would like to throw out a quick disclaimer:

This post is all about my life and experiences, in stark contrast…

Gerard O'Neill

Just a crazy kid whose thoughts may get him in trouble one day. Nothing I say reflects the opinions of people who pay me. https://grardb.com

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