Skip to content

Commit 28925dc

Browse files
authored
chore(install): move ember cli in our repo and remove everything unnecessary (#3056)
* chore(install): move ember-cli to a directory in angular-cli * further remove files
1 parent 150b3b0 commit 28925dc

File tree

131 files changed

+8374
-135
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

131 files changed

+8374
-135
lines changed

.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,6 @@ typings/
66

77
# Ignore all blueprint files. We e2e tests those later on.
88
packages/angular-cli/blueprints/*/files/
9+
10+
# Ignore ember cli.
11+
packages/angular-cli/ember-cli/

lib/bootstrap-local.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,13 @@ if (!__dirname.match(new RegExp(`\\${path.sep}node_modules\\${path.sep}`))) {
6161
const newRequest = path.relative(dir, path.join(__dirname, '../packages', request));
6262
return oldLoad.call(this, newRequest, parent);
6363
} else {
64-
return oldLoad.apply(this, arguments);
64+
let match = Object.keys(packages).find(pkgName => request.startsWith(pkgName + '/'));
65+
if (match) {
66+
const p = path.join(packages[match].root, request.substr(match.length));
67+
return oldLoad.call(this, p, parent);
68+
} else {
69+
return oldLoad.apply(this, arguments);
70+
}
6571
}
6672
};
6773
}

lib/packages.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const packages = fs.readdirSync(packageRoot)
1717
dist: path.join(__dirname, '../dist', pkg.name),
1818
packageJson: path.join(pkg.root, 'package.json'),
1919
root: pkg.root,
20+
relative: path.relative(path.dirname(__dirname), pkg.root),
2021
main: path.resolve(pkg.root, 'src/index.ts')
2122
};
2223
return packages;

package.json

Lines changed: 34 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,22 +57,36 @@
5757
"chalk": "^1.1.3",
5858
"common-tags": "^1.3.1",
5959
"compression-webpack-plugin": "^0.3.2",
60+
"configstore": "^2.0.0",
6061
"core-js": "^2.4.0",
62+
"core-object": "0.0.2",
6163
"css-loader": "^0.23.1",
64+
"debug": "^2.1.3",
6265
"denodeify": "^1.2.1",
63-
"ember-cli": "2.5.0",
66+
"diff": "^2.2.2",
67+
"ember-cli-normalize-entity-name": "^1.0.0",
68+
"ember-cli-preprocess-registry": "^2.0.0",
6469
"ember-cli-string-utils": "^1.0.0",
6570
"enhanced-resolve": "^2.2.2",
71+
"exists-sync": "0.0.3",
6672
"exit": "^0.1.2",
6773
"exports-loader": "^0.6.3",
6874
"expose-loader": "^0.7.1",
6975
"extract-text-webpack-plugin": "^2.0.0-beta.4",
7076
"file-loader": "^0.8.5",
77+
"findup": "0.1.5",
78+
"findup-sync": "^0.2.1",
7179
"fs-extra": "^0.30.0",
80+
"fs-monitor-stack": "^1.0.2",
7281
"fs.realpath": "^1.0.0",
82+
"get-caller-file": "^1.0.0",
83+
"git-repo-info": "^1.0.4",
7384
"glob": "^7.0.3",
74-
"handlebars": "^4.0.5",
7585
"html-webpack-plugin": "^2.19.0",
86+
"inflection": "^1.7.0",
87+
"inquirer": "^0.12.0",
88+
"is-git-url": "^0.2.0",
89+
"isbinaryfile": "^2.0.3",
7690
"istanbul-instrumenter-loader": "^0.2.0",
7791
"json-loader": "^0.5.4",
7892
"karma-sourcemap-loader": "^0.3.7",
@@ -81,22 +95,35 @@
8195
"less": "^2.7.1",
8296
"less-loader": "^2.2.3",
8397
"lodash": "^4.11.1",
98+
"markdown-it": "4.3.0",
99+
"markdown-it-terminal": "0.0.3",
100+
"minimatch": "^3.0.0",
101+
"mkdirp": "^0.5.1",
102+
"node-modules-path": "^1.0.0",
84103
"node-sass": "^3.10.1",
104+
"node-uuid": "^1.4.3",
105+
"nopt": "^3.0.1",
85106
"npm-run-all": "^3.0.0",
86107
"offline-plugin": "^3.4.1",
87108
"opn": "4.0.1",
109+
"ora": "^0.2.0",
88110
"parse5": "^2.1.5",
89111
"portfinder": "1.0.9",
90112
"postcss-discard-comments": "^2.0.4",
91113
"postcss-loader": "^0.9.1",
92114
"protractor": "^3.3.0",
115+
"quick-temp": "0.1.5",
93116
"raw-loader": "^0.5.1",
117+
"readline2": "0.1.1",
94118
"remap-istanbul": "^0.6.4",
95119
"resolve": "^1.1.7",
96120
"rimraf": "^2.5.3",
121+
"rsvp": "^3.0.17",
97122
"rxjs": "5.0.0-beta.12",
123+
"sane": "^1.1.1",
98124
"sass-loader": "^3.2.0",
99125
"script-loader": "^0.7.0",
126+
"semver": "^5.1.0",
100127
"shelljs": "^0.7.0",
101128
"silent-error": "^1.0.0",
102129
"source-map-loader": "^0.1.5",
@@ -105,16 +132,20 @@
105132
"style-loader": "^0.13.1",
106133
"stylus": "^0.54.5",
107134
"stylus-loader": "^2.1.0",
108-
"symlink-or-copy": "^1.0.3",
135+
"temp": "0.8.3",
136+
"through": "^2.3.6",
137+
"tree-sync": "^1.1.0",
109138
"ts-loader": "^0.8.2",
110139
"tslint": "^3.15.1",
111140
"tslint-loader": "^2.1.4",
112141
"typescript": "~2.0.3",
113142
"url-loader": "^0.5.7",
143+
"walk-sync": "^0.2.6",
114144
"webpack": "2.1.0-beta.25",
115145
"webpack-dev-server": "2.1.0-beta.9",
116146
"webpack-md5-hash": "0.0.5",
117147
"webpack-merge": "^0.14.0",
148+
"yam": "0.0.18",
118149
"zone.js": "^0.6.23"
119150
},
120151
"ember-addon": {

packages/angular-cli/blueprints/class/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const stringUtils = require('ember-cli-string-utils');
22
const dynamicPathParser = require('../../utilities/dynamic-path-parser');
3-
const Blueprint = require('ember-cli/lib/models/blueprint');
3+
const Blueprint = require('../../ember-cli/lib/models/blueprint');
44
const getFiles = Blueprint.prototype.files;
55

66
module.exports = {

packages/angular-cli/blueprints/component/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const path = require('path');
22
const chalk = require('chalk');
3-
const Blueprint = require('ember-cli/lib/models/blueprint');
3+
const Blueprint = require('../../ember-cli/lib/models/blueprint');
44
const dynamicPathParser = require('../../utilities/dynamic-path-parser');
55
const findParentModule = require('../../utilities/find-parent-module').default;
66
const getFiles = Blueprint.prototype.files;

packages/angular-cli/blueprints/directive/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const stringUtils = require('ember-cli-string-utils');
44
const astUtils = require('../../utilities/ast-utils');
55
const findParentModule = require('../../utilities/find-parent-module').default;
66
const NodeHost = require('@angular-cli/ast-tools').NodeHost;
7-
const Blueprint = require('ember-cli/lib/models/blueprint');
7+
const Blueprint = require('../../ember-cli/lib/models/blueprint');
88
const getFiles = Blueprint.prototype.files;
99

1010
module.exports = {

packages/angular-cli/blueprints/module/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const path = require('path');
2-
const Blueprint = require('ember-cli/lib/models/blueprint');
2+
const Blueprint = require('../../ember-cli/lib/models/blueprint');
33
const dynamicPathParser = require('../../utilities/dynamic-path-parser');
44
const getFiles = Blueprint.prototype.files;
55

packages/angular-cli/blueprints/ng2/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const Blueprint = require('ember-cli/lib/models/blueprint');
1+
const Blueprint = require('../../ember-cli/lib/models/blueprint');
22
const path = require('path');
33
const stringUtils = require('ember-cli-string-utils');
44
const getFiles = Blueprint.prototype.files;

packages/angular-cli/blueprints/pipe/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const stringUtils = require('ember-cli-string-utils');
44
const astUtils = require('../../utilities/ast-utils');
55
const findParentModule = require('../../utilities/find-parent-module').default;
66
const NodeHost = require('@angular-cli/ast-tools').NodeHost;
7-
const Blueprint = require('ember-cli/lib/models/blueprint');
7+
const Blueprint = require('../../ember-cli/lib/models/blueprint');
88
const getFiles = Blueprint.prototype.files;
99

1010
module.exports = {

packages/angular-cli/blueprints/service/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const path = require('path');
22
const chalk = require('chalk');
33
const dynamicPathParser = require('../../utilities/dynamic-path-parser');
4-
const Blueprint = require('ember-cli/lib/models/blueprint');
4+
const Blueprint = require('../../ember-cli/lib/models/blueprint');
55
const getFiles = Blueprint.prototype.files;
66

77
module.exports = {

packages/angular-cli/commands/build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const Command = require('ember-cli/lib/models/command');
1+
const Command = require('../ember-cli/lib/models/command');
22
import WebpackBuild from '../tasks/build-webpack';
33
import WebpackBuildWatch from '../tasks/build-webpack-watch';
44

packages/angular-cli/commands/completion.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as path from 'path';
22
import * as fs from 'fs';
33

4-
const Command = require('ember-cli/lib/models/command');
4+
const Command = require('../ember-cli/lib/models/command');
55

66
const CompletionCommand = Command.extend({
77
name: 'completion',

packages/angular-cli/commands/destroy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const Command = require('ember-cli/lib/models/command');
1+
const Command = require('../ember-cli/lib/models/command');
22
const SilentError = require('silent-error');
33

44

packages/angular-cli/commands/doc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const Command = require('ember-cli/lib/models/command');
1+
const Command = require('../ember-cli/lib/models/command');
22
import { DocTask } from '../tasks/doc';
33

44
const DocCommand = Command.extend({

packages/angular-cli/commands/e2e.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const Command = require('ember-cli/lib/models/command');
1+
const Command = require('../ember-cli/lib/models/command');
22
import {E2eTask} from '../tasks/e2e';
33
import {CliConfig} from '../models/config';
44

packages/angular-cli/commands/easter-egg.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const Command = require('ember-cli/lib/models/command');
1+
const Command = require('../ember-cli/lib/models/command');
22
const stringUtils = require('ember-cli-string-utils');
33
import * as chalk from 'chalk';
44

packages/angular-cli/commands/generate.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import * as path from 'path';
33
import * as os from 'os';
44

55
const chalk = require('chalk');
6-
const EmberGenerateCommand = require('ember-cli/lib/commands/generate');
7-
const Blueprint = require('ember-cli/lib/models/blueprint');
6+
const EmberGenerateCommand = require('../ember-cli/lib/commands/generate');
7+
const Blueprint = require('../ember-cli/lib/models/blueprint');
88
const SilentError = require('silent-error');
99

1010

packages/angular-cli/commands/get.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as chalk from 'chalk';
22
import {CliConfig} from '../models/config';
33

4-
const Command = require('ember-cli/lib/models/command');
4+
const Command = require('../ember-cli/lib/models/command');
55

66
const GetCommand = Command.extend({
77
name: 'get',

packages/angular-cli/commands/github-pages-deploy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const Command = require('ember-cli/lib/models/command');
1+
const Command = require('../ember-cli/lib/models/command');
22
const SilentError = require('silent-error');
33
import denodeify = require('denodeify');
44

packages/angular-cli/commands/help.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import * as fs from 'fs';
22
import * as path from 'path';
33

4-
const Command = require('ember-cli/lib/models/command');
4+
const Command = require('../ember-cli/lib/models/command');
55
const stringUtils = require('ember-cli-string-utils');
6-
const lookupCommand = require('ember-cli/lib/cli/lookup-command');
6+
const lookupCommand = require('../ember-cli/lib/cli/lookup-command');
77

88
const commandsToIgnore = [
99
'easter-egg',

packages/angular-cli/commands/init.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import LinkCli from '../tasks/link-cli';
22
import NpmInstall from '../tasks/npm-install';
33

4-
const Command = require('ember-cli/lib/models/command');
5-
const Promise = require('ember-cli/lib/ext/promise');
4+
const Command = require('../ember-cli/lib/models/command');
5+
const Promise = require('../ember-cli/lib/ext/promise');
66
const SilentError = require('silent-error');
7-
const validProjectName = require('ember-cli/lib/utilities/valid-project-name');
8-
const normalizeBlueprint = require('ember-cli/lib/utilities/normalize-blueprint-option');
7+
const validProjectName = require('../ember-cli/lib/utilities/valid-project-name');
8+
const normalizeBlueprint = require('../ember-cli/lib/utilities/normalize-blueprint-option');
99
const GitInit = require('../tasks/git-init');
1010

1111

packages/angular-cli/commands/lint.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const Command = require('ember-cli/lib/models/command');
1+
const Command = require('../ember-cli/lib/models/command');
22
import LintTask from '../tasks/lint';
33

44
export default Command.extend({

packages/angular-cli/commands/new.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import * as chalk from 'chalk';
22
import InitCommand from './init';
33

4-
const Command = require('ember-cli/lib/models/command');
5-
const Project = require('ember-cli/lib/models/project');
4+
const Command = require('../ember-cli/lib/models/command');
5+
const Project = require('../ember-cli/lib/models/project');
66
const SilentError = require('silent-error');
7-
const validProjectName = require('ember-cli/lib/utilities/valid-project-name');
7+
const validProjectName = require('../ember-cli/lib/utilities/valid-project-name');
88

99

1010
const NewCommand = Command.extend({

packages/angular-cli/commands/serve.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as assign from 'lodash/assign';
22
import * as denodeify from 'denodeify';
3-
const Command = require('ember-cli/lib/models/command');
3+
const Command = require('../ember-cli/lib/models/command');
44
const SilentError = require('silent-error');
55
const PortFinder = require('portfinder');
66
import ServeWebpackTask from '../tasks/serve-webpack';
@@ -157,5 +157,4 @@ const ServeCommand = Command.extend({
157157
}
158158
});
159159

160-
ServeCommand.overrideCore = true;
161160
export default ServeCommand;

packages/angular-cli/commands/set.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const SilentError = require('silent-error');
2-
const Command = require('ember-cli/lib/models/command');
2+
const Command = require('../ember-cli/lib/models/command');
33
import {CliConfig} from '../models/config';
44

55

packages/angular-cli/commands/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const TestCommand = require('ember-cli/lib/commands/test');
1+
const TestCommand = require('../ember-cli/lib/commands/test');
22
import TestTask from '../tasks/test';
33
import {CliConfig} from '../models/config';
44

packages/angular-cli/commands/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const Command = require('ember-cli/lib/models/command');
1+
const Command = require('../ember-cli/lib/models/command');
22
import * as path from 'path';
33
import * as child_process from 'child_process';
44

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2013-2016 Stefan Penner, Robert Jackson and ember-cli contributors
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)