Skip to content

Commit

Permalink
fix: improve 'ember'->'ng' replacement
Browse files Browse the repository at this point in the history
before: `ng g c member-list` output `create src/app/ng-list/ng-list.component.scss`.

after: `ng g c member-list` output ` create src/app/member-list/member-list.component.scss`.

Close #1405
Close #1829
  • Loading branch information
Zhicheng Wang authored and filipesilva committed Aug 26, 2016
1 parent 69a6ff4 commit 80512ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/cli/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ module.exports = function(options) {
return oldStdoutWrite.apply(process.stdout, arguments);
}
line = line.replace(/ember-cli(?!.com)/g, 'angular-cli')
.replace(/ember(?!-cli.com)/g, 'ng');
.replace(/\bember\b(?!-cli.com)/g, 'ng');
return oldStdoutWrite.apply(process.stdout, arguments);
};

const oldStderrWrite = process.stderr.write;
process.stderr.write = function (line) {
line = line.toString()
.replace(/ember-cli(?!.com)/g, 'angular-cli')
.replace(/ember(?!-cli.com)/g, 'ng');
.replace(/\bember\b(?!-cli.com)/g, 'ng');
return oldStderrWrite.apply(process.stdout, arguments);
};

Expand Down

0 comments on commit 80512ba

Please sign in to comment.