Skip to content

Commit

Permalink
Splitting readme example into two blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-lynch committed Dec 1, 2014
1 parent cba824e commit 7886187
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ var nw = new NwBuilder({
platforms: ['win','osx']
});

// Log stuff you want
//Log stuff you want

nw.on('log', console.log);

// Build returns a promise
Expand All @@ -56,8 +57,11 @@ nw.build().then(function () {
}).catch(function (error) {
console.error(error);
});
```

`build` also supports callbacks:

// And supports callbacks
```javascript
nw.build(function(err) {
if(err) console.log(err);
})
Expand Down

0 comments on commit 7886187

Please sign in to comment.