mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-19 20:52:06 +08:00
23 lines
542 B
TypeScript
23 lines
542 B
TypeScript
const Command = require('../ember-cli/lib/models/command');
|
|
import { CliConfig } from '../models/config';
|
|
|
|
const E2eCommand = Command.extend({
|
|
name: 'e2e',
|
|
description: 'Run e2e tests in existing project',
|
|
works: 'insideProject',
|
|
run: function () {
|
|
const E2eTask = require('../tasks/e2e').E2eTask;
|
|
this.project.ngConfig = this.project.ngConfig || CliConfig.fromProject();
|
|
|
|
const e2eTask = new E2eTask({
|
|
ui: this.ui,
|
|
project: this.project
|
|
});
|
|
|
|
return e2eTask.run();
|
|
}
|
|
});
|
|
|
|
|
|
export default E2eCommand;
|