DPS909 Lab 2 – Contributing Fixes to package.json file

For the second lab in DPS909 I had to find a module in node.js that was missing the keywords field in the package.json file. There are many node.js modules available at npmjs and surprisingly it wasn’t hard to find a module that was missing the keywords field. I decided to add the keywords field to the morgan module.

This module is described as a HTTP request logger middleware for node.js. It is a popular module and as of today has gotten over 2 million downloads in the last month.

The steps I took to complete this lab I found to be relatively simple. I first forked the morgan repository and then cloned it using git. After that I created a branch and edited the package.json file. Once I finished adding the keywords field in the package.json file I used the JSON validator to validate my changes. This ensured that I didn’t make any mistakes when editing the file. I then added, committed, and pushed the branch onto GitHub. Once my changes were on GitHub I created a pull request. Creating the pull request was a bit nerve-racking. I kept thinking if they would accept my changes or if they would be upset that I added a change.

After I created my pull request one of the members from the morgan team replied back to my request. He was glad that I wanted to contribute to their project but stated that npm completely redid their search engine and wanted to know if adding the keywords field mattered. He also stated that the morgan module is already at the top for the keywords I wanted to add and wasn’t sure if adding my changes would make a difference. He asked me to explain how the keywords section is used and what uses them. I replied to the best of my ability and until now didn’t receive any further reply.

Contributing to my first open source project felt scary but at the same time felt accomplishing. Even though I contributed a small change it felt good and encouraged me to want to contribute to other open source projects. I was surprised as to how easy it was to contribute to an open source project.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s