Skip to content

Commit

Permalink
fix(@angular/cli): Fixing aliases for blueprint help
Browse files Browse the repository at this point in the history
  • Loading branch information
sumitarora committed Mar 9, 2017
1 parent afbddfe commit a09aa49
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/@angular/cli/blueprints/class/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const getFiles = Blueprint.prototype.files;

export default Blueprint.extend({
description: '',
aliases: ['cl'],

availableOptions: [
{
Expand Down
1 change: 1 addition & 0 deletions packages/@angular/cli/blueprints/component/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const astUtils = require('../../utilities/ast-utils');

export default Blueprint.extend({
description: '',
aliases: ['c'],

availableOptions: [
{
Expand Down
1 change: 1 addition & 0 deletions packages/@angular/cli/blueprints/directive/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const getFiles = Blueprint.prototype.files;

export default Blueprint.extend({
description: '',
aliases: ['d'],

availableOptions: [
{
Expand Down
1 change: 1 addition & 0 deletions packages/@angular/cli/blueprints/enum/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const Blueprint = require('../../ember-cli/lib/models/blueprint');

export default Blueprint.extend({
description: '',
aliases: ['e'],

availableOptions: [
{
Expand Down
1 change: 1 addition & 0 deletions packages/@angular/cli/blueprints/guard/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const getFiles = Blueprint.prototype.files;

export default Blueprint.extend({
description: '',
aliases: ['g'],

availableOptions: [
{
Expand Down
1 change: 1 addition & 0 deletions packages/@angular/cli/blueprints/interface/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const Blueprint = require('../../ember-cli/lib/models/blueprint');

export default Blueprint.extend({
description: '',
aliases: ['i'],

anonymousOptions: [
'<interface-type>'
Expand Down
1 change: 1 addition & 0 deletions packages/@angular/cli/blueprints/module/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const getFiles = Blueprint.prototype.files;

export default Blueprint.extend({
description: '',
aliases: ['m'],

availableOptions: [
{
Expand Down
1 change: 1 addition & 0 deletions packages/@angular/cli/blueprints/pipe/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const getFiles = Blueprint.prototype.files;

export default Blueprint.extend({
description: '',
aliases: ['p'],

availableOptions: [
{
Expand Down
1 change: 1 addition & 0 deletions packages/@angular/cli/blueprints/service/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const getFiles = Blueprint.prototype.files;

export default Blueprint.extend({
description: '',
aliases: ['s'],

availableOptions: [
{
Expand Down
3 changes: 2 additions & 1 deletion packages/@angular/cli/commands/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ const aliasMap: { [alias: string]: string } = {
'm': 'module',
'p': 'pipe',
'r': 'route',
's': 'service'
's': 'service',
'g': 'guard'
};

export default GenerateCommand;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ var commandProperties = [
];
var blueprintProperties = [
'name',
'aliases',
'description',
'availableOptions',
'anonymousOptions',
Expand Down

0 comments on commit a09aa49

Please sign in to comment.