Skip to content

Commit 6825de8

Browse files
Charles Lydingfilipesilva
Charles Lyding
authored andcommitted
refactor(@angular/cli): remove additional unneeded ember-cli files
1 parent 1c22a94 commit 6825de8

File tree

9 files changed

+8
-418
lines changed

9 files changed

+8
-418
lines changed

packages/@angular/cli/commands/test.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const EmberTestCommand = require('../ember-cli/lib/commands/test');
1+
const Command = require('../ember-cli/lib/models/command');
22
import TestTask from '../tasks/test';
33
import {CliConfig} from '../models/config';
44
import { oneLine } from 'common-tags';
@@ -23,7 +23,12 @@ export interface TestOptions {
2323
}
2424

2525

26-
const TestCommand = EmberTestCommand.extend({
26+
const TestCommand = Command.extend({
27+
name: 'test',
28+
aliases: ['t'],
29+
description: 'Run unit tests in existing project.',
30+
works: 'insideProject',
31+
2732
availableOptions: [
2833
{
2934
name: 'watch',

packages/@angular/cli/ember-cli/lib/commands/test.js

Lines changed: 0 additions & 86 deletions
This file was deleted.

packages/@angular/cli/ember-cli/lib/models/command.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ var keys = require('lodash/keys');
2020
var EOL = require('os').EOL;
2121
var CoreObject = require('../ext/core-object');
2222
var debug = require('debug')('ember-cli:command');
23-
var Watcher = require('../models/watcher');
2423
var SilentError = require('silent-error');
2524

2625
var allowedWorkOptions = {
@@ -126,13 +125,7 @@ Command.prototype.validateAndRun = function(args) {
126125
}
127126
}
128127

129-
return Watcher.detectWatcher(this.ui, commandOptions.options).then(function(options) {
130-
if (options._watchmanInfo) {
131-
this.project._watchmanInfo = options._watchmanInfo;
132-
}
133-
134-
return this.run(options, commandOptions.args);
135-
}.bind(this));
128+
return this.run(commandOptions.options, commandOptions.args);
136129
};
137130

138131
/*

packages/@angular/cli/ember-cli/lib/models/watcher.js

Lines changed: 0 additions & 114 deletions
This file was deleted.

packages/@angular/cli/ember-cli/lib/tasks.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
module.exports = {
33
DestroyFromBlueprint: require('./tasks/destroy-from-blueprint'),
44
GenerateFromBlueprint: require('./tasks/generate-from-blueprint'),
5-
GitInit: require('./tasks/git-init'),
65
InstallBlueprint: require('./tasks/install-blueprint'),
76
NpmInstall: require('./tasks/npm-install'),
87
NpmTask: require('./tasks/npm-task'),

packages/@angular/cli/ember-cli/lib/tasks/git-init.js

Lines changed: 0 additions & 50 deletions
This file was deleted.

packages/@angular/cli/ember-cli/lib/utilities/COMMIT_MESSAGE.txt

Lines changed: 0 additions & 39 deletions
This file was deleted.

0 commit comments

Comments
 (0)