mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-18 20:02:40 +08:00
refactor(commands): more consistent names for command, capitalised camel-cased names.
Close #4157
This commit is contained in:
parent
c079ccf587
commit
26dc4ce497
@ -15,7 +15,7 @@ export interface GithubPagesDeployOptions {
|
|||||||
vendorChunk?: boolean;
|
vendorChunk?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
const githubPagesDeployCommand = Command.extend({
|
const GithubPagesDeployCommand = Command.extend({
|
||||||
name: 'github-pages:deploy',
|
name: 'github-pages:deploy',
|
||||||
aliases: ['gh-pages:deploy'],
|
aliases: ['gh-pages:deploy'],
|
||||||
description: oneLine`
|
description: oneLine`
|
||||||
@ -87,4 +87,4 @@ const githubPagesDeployCommand = Command.extend({
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
export default githubPagesDeployCommand;
|
export default GithubPagesDeployCommand;
|
||||||
|
@ -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 TestTask from '../tasks/test';
|
||||||
import {CliConfig} from '../models/config';
|
import {CliConfig} from '../models/config';
|
||||||
|
|
||||||
@ -18,7 +18,7 @@ export interface TestOptions {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const NgCliTestCommand = TestCommand.extend({
|
const TestCommand = EmberTestCommand.extend({
|
||||||
availableOptions: [
|
availableOptions: [
|
||||||
{ name: 'watch', type: Boolean, default: true, aliases: ['w'] },
|
{ name: 'watch', type: Boolean, default: true, aliases: ['w'] },
|
||||||
{ name: 'code-coverage', type: Boolean, default: false, aliases: ['cc'] },
|
{ name: 'code-coverage', type: Boolean, default: false, aliases: ['cc'] },
|
||||||
@ -50,5 +50,5 @@ const NgCliTestCommand = TestCommand.extend({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
NgCliTestCommand.overrideCore = true;
|
TestCommand.overrideCore = true;
|
||||||
export default NgCliTestCommand;
|
export default TestCommand;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user