Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
allow files changed to be undefined (fixes ebryn#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
arne21 committed Mar 18, 2017
1 parent a4d1ca1 commit db3f139
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ To install, run:

Then, instead of running `ember serve`, run `ember autoserve` instead.

Your development server will be automatically restarted when `ember-cli-build.js`, `.jshintrc`, or when you install a new addon!
Your development server will be automatically restarted when `ember-cli-build.js` or `.jshintrc` change, when you install a new addon, or when you [enter `rs`](https://github.com/remy/nodemon#manual-restarting)!
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ module.exports = {
// console.log('`ember serve` has quit');
resolve();
}).on('restart', function (files) {
console.log('Detected changes to: ' + files.map(function(f) { return path.basename(f); }).join(", "))
if (files) {
console.log('Detected changes to: ' + files.map(function(f) { return path.basename(f); }).join(", "))
}
console.log('Restarting `ember serve`');
});
});
Expand Down

0 comments on commit db3f139

Please sign in to comment.