Skip to content

Commit

Permalink
docs(intro): require brigadier in examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
JD Huntington committed Dec 12, 2017
1 parent 0d04762 commit 5198db0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/intro/tutorial04.md
Expand Up @@ -89,6 +89,8 @@ Brigade uses simple JavaScript files to run tasks. When it comes to task running
Given this, the role of the `brigade.js` file is to declare event handlers. And it's easy. Open `brigade.js` and write this JavaScript code into it:

```javascript
const { events, Job } = require("brigadier");

events.on("push", function(e, project) {
console.log("received push for commit " + e.commit)
})
Expand All @@ -113,6 +115,8 @@ Logging a commit SHA isn't all that helpful. Instead, we would want to test that
Edit `brigade.js` again so it looks like this:

```javascript
const { events, Job } = require("brigadier");

events.on("push", function(e, project) {
console.log("received push for commit " + e.commit)

Expand Down

0 comments on commit 5198db0

Please sign in to comment.