From 26dc4ce4976fb60b742c76ca684aeafe440340d5 Mon Sep 17 00:00:00 2001 From: Carlo Dapor Date: Sun, 22 Jan 2017 02:41:03 +0100 Subject: [PATCH] refactor(commands): more consistent names for command, capitalised camel-cased names. Close #4157 --- packages/angular-cli/commands/github-pages-deploy.ts | 4 ++-- packages/angular-cli/commands/test.ts | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/angular-cli/commands/github-pages-deploy.ts b/packages/angular-cli/commands/github-pages-deploy.ts index d766af1f14..b5e60638e0 100644 --- a/packages/angular-cli/commands/github-pages-deploy.ts +++ b/packages/angular-cli/commands/github-pages-deploy.ts @@ -15,7 +15,7 @@ export interface GithubPagesDeployOptions { vendorChunk?: boolean; } -const githubPagesDeployCommand = Command.extend({ +const GithubPagesDeployCommand = Command.extend({ name: 'github-pages:deploy', aliases: ['gh-pages:deploy'], description: oneLine` @@ -87,4 +87,4 @@ const githubPagesDeployCommand = Command.extend({ }); -export default githubPagesDeployCommand; +export default GithubPagesDeployCommand; diff --git a/packages/angular-cli/commands/test.ts b/packages/angular-cli/commands/test.ts index 4d7b2bd211..12c0ac3d47 100644 --- a/packages/angular-cli/commands/test.ts +++ b/packages/angular-cli/commands/test.ts @@ -1,4 +1,4 @@ -const TestCommand = require('../ember-cli/lib/commands/test'); +const EmberTestCommand = require('../ember-cli/lib/commands/test'); import TestTask from '../tasks/test'; import {CliConfig} from '../models/config'; @@ -18,7 +18,7 @@ export interface TestOptions { } -const NgCliTestCommand = TestCommand.extend({ +const TestCommand = EmberTestCommand.extend({ availableOptions: [ { name: 'watch', type: Boolean, default: true, aliases: ['w'] }, { name: 'code-coverage', type: Boolean, default: false, aliases: ['cc'] }, @@ -50,5 +50,5 @@ const NgCliTestCommand = TestCommand.extend({ } }); -NgCliTestCommand.overrideCore = true; -export default NgCliTestCommand; +TestCommand.overrideCore = true; +export default TestCommand;