Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(init): don't replace live reload script on diffs (angular#1128)
Browse files Browse the repository at this point in the history
filipesilva authored and EmmanuelAzuh committed Jul 1, 2016
1 parent e319001 commit 0f2ac70
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/cli/index.js
Original file line number Diff line number Diff line change
@@ -74,6 +74,10 @@ module.exports = function(options) {
if (line.match(/version:|WARNING:/)) {
return;
}
if (line.match(/ember-cli-(inject-)?live-reload/)) {
// don't replace 'ember-cli-live-reload' on ng init diffs
return oldStdoutWrite.apply(process.stdout, arguments);
}
line = line.replace(/ember-cli(?!.com)/g, 'angular-cli')
.replace(/ember(?!-cli.com)/g, 'ng');
return oldStdoutWrite.apply(process.stdout, arguments);

0 comments on commit 0f2ac70

Please sign in to comment.