Open Source Tooling and Automation

In this lab we are going to learn some open source tooling.

So the first step is to read the instruntions! If you, dear reader, want to practice with me please go ahead and take a look here:

The next step is to create a new repo and clone to the local machine. These steps are really easy, and are amazingly explained in the instructions by Mr. Humphry. So I am just going to move on to the next step.

Initialize a new Node.js Module

This part was not tricky for me, since I am a linux user, so let’s just move on to the next part.

Create your Node.js Module in seneca.js

So I created a seneca.js file. I put the code provided for us, and that’s how it looks now.

Screenshot from 2017-03-23 17-55-05

The next step is to implement those two functions. Which shouldn’t be hard.

First we need to implement isValidEmail, which basically validates if the provided email is a valid seneca email address. In order to do that, I am going to use regular expression. The second function returns a formatted Seneca email address.


Screenshot from 2017-03-23 18-21-08

Add ESLint to avoid common patterns and bugs

npm install eslint --save-dev

Screenshot from 2017-03-23 18-27-56


Screenshot from 2017-03-23 21-59-06




Screenshot from 2017-03-23 22-02-12



Screenshot from 2017-03-23 22-02-35




Leave a Reply

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

You are commenting using your 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