Skip to content

chore(install): move ember cli in our repo and remove everything unne… #3056

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 10, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ typings/

# Ignore all blueprint files. We e2e tests those later on.
packages/angular-cli/blueprints/*/files/

# Ignore ember cli.
packages/angular-cli/ember-cli/
8 changes: 7 additions & 1 deletion lib/bootstrap-local.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,13 @@ if (!__dirname.match(new RegExp(`\\${path.sep}node_modules\\${path.sep}`))) {
const newRequest = path.relative(dir, path.join(__dirname, '../packages', request));
return oldLoad.call(this, newRequest, parent);
} else {
return oldLoad.apply(this, arguments);
let match = Object.keys(packages).find(pkgName => request.startsWith(pkgName + '/'));
if (match) {
const p = path.join(packages[match].root, request.substr(match.length));
return oldLoad.call(this, p, parent);
} else {
return oldLoad.apply(this, arguments);
}
}
};
}
1 change: 1 addition & 0 deletions lib/packages.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const packages = fs.readdirSync(packageRoot)
dist: path.join(__dirname, '../dist', pkg.name),
packageJson: path.join(pkg.root, 'package.json'),
root: pkg.root,
relative: path.relative(path.dirname(__dirname), pkg.root),
main: path.resolve(pkg.root, 'src/index.ts')
};
return packages;
Expand Down
37 changes: 34 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,22 +57,36 @@
"chalk": "^1.1.3",
"common-tags": "^1.3.1",
"compression-webpack-plugin": "^0.3.2",
"configstore": "^2.0.0",
"core-js": "^2.4.0",
"core-object": "0.0.2",
"css-loader": "^0.23.1",
"debug": "^2.1.3",
"denodeify": "^1.2.1",
"ember-cli": "2.5.0",
"diff": "^2.2.2",
"ember-cli-normalize-entity-name": "^1.0.0",
"ember-cli-preprocess-registry": "^2.0.0",
"ember-cli-string-utils": "^1.0.0",
"enhanced-resolve": "^2.2.2",
"exists-sync": "0.0.3",
"exit": "^0.1.2",
"exports-loader": "^0.6.3",
"expose-loader": "^0.7.1",
"extract-text-webpack-plugin": "^2.0.0-beta.4",
"file-loader": "^0.8.5",
"findup": "0.1.5",
"findup-sync": "^0.2.1",
"fs-extra": "^0.30.0",
"fs-monitor-stack": "^1.0.2",
"fs.realpath": "^1.0.0",
"get-caller-file": "^1.0.0",
"git-repo-info": "^1.0.4",
"glob": "^7.0.3",
"handlebars": "^4.0.5",
"html-webpack-plugin": "^2.19.0",
"inflection": "^1.7.0",
"inquirer": "^0.12.0",
"is-git-url": "^0.2.0",
"isbinaryfile": "^2.0.3",
"istanbul-instrumenter-loader": "^0.2.0",
"json-loader": "^0.5.4",
"karma-sourcemap-loader": "^0.3.7",
Expand All @@ -81,22 +95,35 @@
"less": "^2.7.1",
"less-loader": "^2.2.3",
"lodash": "^4.11.1",
"markdown-it": "4.3.0",
"markdown-it-terminal": "0.0.3",
"minimatch": "^3.0.0",
"mkdirp": "^0.5.1",
"node-modules-path": "^1.0.0",
"node-sass": "^3.10.1",
"node-uuid": "^1.4.3",
"nopt": "^3.0.1",
"npm-run-all": "^3.0.0",
"offline-plugin": "^3.4.1",
"opn": "4.0.1",
"ora": "^0.2.0",
"parse5": "^2.1.5",
"portfinder": "1.0.9",
"postcss-discard-comments": "^2.0.4",
"postcss-loader": "^0.9.1",
"protractor": "^3.3.0",
"quick-temp": "0.1.5",
"raw-loader": "^0.5.1",
"readline2": "0.1.1",
"remap-istanbul": "^0.6.4",
"resolve": "^1.1.7",
"rimraf": "^2.5.3",
"rsvp": "^3.0.17",
"rxjs": "5.0.0-beta.12",
"sane": "^1.1.1",
"sass-loader": "^3.2.0",
"script-loader": "^0.7.0",
"semver": "^5.1.0",
"shelljs": "^0.7.0",
"silent-error": "^1.0.0",
"source-map-loader": "^0.1.5",
Expand All @@ -105,16 +132,20 @@
"style-loader": "^0.13.1",
"stylus": "^0.54.5",
"stylus-loader": "^2.1.0",
"symlink-or-copy": "^1.0.3",
"temp": "0.8.3",
"through": "^2.3.6",
"tree-sync": "^1.1.0",
"ts-loader": "^0.8.2",
"tslint": "^3.15.1",
"tslint-loader": "^2.1.4",
"typescript": "~2.0.3",
"url-loader": "^0.5.7",
"walk-sync": "^0.2.6",
"webpack": "2.1.0-beta.25",
"webpack-dev-server": "2.1.0-beta.9",
"webpack-md5-hash": "0.0.5",
"webpack-merge": "^0.14.0",
"yam": "0.0.18",
"zone.js": "^0.6.23"
},
"ember-addon": {
Expand Down
2 changes: 1 addition & 1 deletion packages/angular-cli/blueprints/class/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const stringUtils = require('ember-cli-string-utils');
const dynamicPathParser = require('../../utilities/dynamic-path-parser');
const Blueprint = require('ember-cli/lib/models/blueprint');
const Blueprint = require('../../ember-cli/lib/models/blueprint');
const getFiles = Blueprint.prototype.files;

module.exports = {
Expand Down
2 changes: 1 addition & 1 deletion packages/angular-cli/blueprints/component/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const path = require('path');
const chalk = require('chalk');
const Blueprint = require('ember-cli/lib/models/blueprint');
const Blueprint = require('../../ember-cli/lib/models/blueprint');
const dynamicPathParser = require('../../utilities/dynamic-path-parser');
const findParentModule = require('../../utilities/find-parent-module').default;
const getFiles = Blueprint.prototype.files;
Expand Down
2 changes: 1 addition & 1 deletion packages/angular-cli/blueprints/directive/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const stringUtils = require('ember-cli-string-utils');
const astUtils = require('../../utilities/ast-utils');
const findParentModule = require('../../utilities/find-parent-module').default;
const NodeHost = require('@angular-cli/ast-tools').NodeHost;
const Blueprint = require('ember-cli/lib/models/blueprint');
const Blueprint = require('../../ember-cli/lib/models/blueprint');
const getFiles = Blueprint.prototype.files;

module.exports = {
Expand Down
2 changes: 1 addition & 1 deletion packages/angular-cli/blueprints/module/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const path = require('path');
const Blueprint = require('ember-cli/lib/models/blueprint');
const Blueprint = require('../../ember-cli/lib/models/blueprint');
const dynamicPathParser = require('../../utilities/dynamic-path-parser');
const getFiles = Blueprint.prototype.files;

Expand Down
2 changes: 1 addition & 1 deletion packages/angular-cli/blueprints/ng2/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const Blueprint = require('ember-cli/lib/models/blueprint');
const Blueprint = require('../../ember-cli/lib/models/blueprint');
const path = require('path');
const stringUtils = require('ember-cli-string-utils');
const getFiles = Blueprint.prototype.files;
Expand Down
2 changes: 1 addition & 1 deletion packages/angular-cli/blueprints/pipe/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const stringUtils = require('ember-cli-string-utils');
const astUtils = require('../../utilities/ast-utils');
const findParentModule = require('../../utilities/find-parent-module').default;
const NodeHost = require('@angular-cli/ast-tools').NodeHost;
const Blueprint = require('ember-cli/lib/models/blueprint');
const Blueprint = require('../../ember-cli/lib/models/blueprint');
const getFiles = Blueprint.prototype.files;

module.exports = {
Expand Down
2 changes: 1 addition & 1 deletion packages/angular-cli/blueprints/service/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const path = require('path');
const chalk = require('chalk');
const dynamicPathParser = require('../../utilities/dynamic-path-parser');
const Blueprint = require('ember-cli/lib/models/blueprint');
const Blueprint = require('../../ember-cli/lib/models/blueprint');
const getFiles = Blueprint.prototype.files;

module.exports = {
Expand Down
2 changes: 1 addition & 1 deletion packages/angular-cli/commands/build.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const Command = require('ember-cli/lib/models/command');
const Command = require('../ember-cli/lib/models/command');
import WebpackBuild from '../tasks/build-webpack';
import WebpackBuildWatch from '../tasks/build-webpack-watch';

Expand Down
2 changes: 1 addition & 1 deletion packages/angular-cli/commands/completion.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as path from 'path';
import * as fs from 'fs';

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

const CompletionCommand = Command.extend({
name: 'completion',
Expand Down
2 changes: 1 addition & 1 deletion packages/angular-cli/commands/destroy.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const Command = require('ember-cli/lib/models/command');
const Command = require('../ember-cli/lib/models/command');
const SilentError = require('silent-error');


Expand Down
2 changes: 1 addition & 1 deletion packages/angular-cli/commands/doc.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const Command = require('ember-cli/lib/models/command');
const Command = require('../ember-cli/lib/models/command');
import { DocTask } from '../tasks/doc';

const DocCommand = Command.extend({
Expand Down
2 changes: 1 addition & 1 deletion packages/angular-cli/commands/e2e.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const Command = require('ember-cli/lib/models/command');
const Command = require('../ember-cli/lib/models/command');
import {E2eTask} from '../tasks/e2e';
import {CliConfig} from '../models/config';

Expand Down
2 changes: 1 addition & 1 deletion packages/angular-cli/commands/easter-egg.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const Command = require('ember-cli/lib/models/command');
const Command = require('../ember-cli/lib/models/command');
const stringUtils = require('ember-cli-string-utils');
import * as chalk from 'chalk';

Expand Down
4 changes: 2 additions & 2 deletions packages/angular-cli/commands/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import * as path from 'path';
import * as os from 'os';

const chalk = require('chalk');
const EmberGenerateCommand = require('ember-cli/lib/commands/generate');
const Blueprint = require('ember-cli/lib/models/blueprint');
const EmberGenerateCommand = require('../ember-cli/lib/commands/generate');
const Blueprint = require('../ember-cli/lib/models/blueprint');
const SilentError = require('silent-error');


Expand Down
2 changes: 1 addition & 1 deletion packages/angular-cli/commands/get.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as chalk from 'chalk';
import {CliConfig} from '../models/config';

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

const GetCommand = Command.extend({
name: 'get',
Expand Down
2 changes: 1 addition & 1 deletion packages/angular-cli/commands/github-pages-deploy.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const Command = require('ember-cli/lib/models/command');
const Command = require('../ember-cli/lib/models/command');
const SilentError = require('silent-error');
import denodeify = require('denodeify');

Expand Down
4 changes: 2 additions & 2 deletions packages/angular-cli/commands/help.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import * as fs from 'fs';
import * as path from 'path';

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

const commandsToIgnore = [
'easter-egg',
Expand Down
8 changes: 4 additions & 4 deletions packages/angular-cli/commands/init.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import LinkCli from '../tasks/link-cli';
import NpmInstall from '../tasks/npm-install';

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


Expand Down
2 changes: 1 addition & 1 deletion packages/angular-cli/commands/lint.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const Command = require('ember-cli/lib/models/command');
const Command = require('../ember-cli/lib/models/command');
import LintTask from '../tasks/lint';

export default Command.extend({
Expand Down
6 changes: 3 additions & 3 deletions packages/angular-cli/commands/new.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import * as chalk from 'chalk';
import InitCommand from './init';

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


const NewCommand = Command.extend({
Expand Down
3 changes: 1 addition & 2 deletions packages/angular-cli/commands/serve.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as assign from 'lodash/assign';
import * as denodeify from 'denodeify';
const Command = require('ember-cli/lib/models/command');
const Command = require('../ember-cli/lib/models/command');
const SilentError = require('silent-error');
const PortFinder = require('portfinder');
import ServeWebpackTask from '../tasks/serve-webpack';
Expand Down Expand Up @@ -157,5 +157,4 @@ const ServeCommand = Command.extend({
}
});

ServeCommand.overrideCore = true;
export default ServeCommand;
2 changes: 1 addition & 1 deletion packages/angular-cli/commands/set.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const SilentError = require('silent-error');
const Command = require('ember-cli/lib/models/command');
const Command = require('../ember-cli/lib/models/command');
import {CliConfig} from '../models/config';


Expand Down
2 changes: 1 addition & 1 deletion packages/angular-cli/commands/test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const TestCommand = require('ember-cli/lib/commands/test');
const TestCommand = require('../ember-cli/lib/commands/test');
import TestTask from '../tasks/test';
import {CliConfig} from '../models/config';

Expand Down
2 changes: 1 addition & 1 deletion packages/angular-cli/commands/version.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const Command = require('ember-cli/lib/models/command');
const Command = require('../ember-cli/lib/models/command');
import * as path from 'path';
import * as child_process from 'child_process';

Expand Down
21 changes: 21 additions & 0 deletions packages/angular-cli/ember-cli/LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2013-2016 Stefan Penner, Robert Jackson and ember-cli contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading