Skip to content

Commit ac25cf0

Browse files
authored
Merge branch 'master' into live-reload
2 parents 3c79e5b + 121c390 commit ac25cf0

Some content is hidden

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

56 files changed

+990
-92
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ matrix:
2525
- node_js: "6"
2626
os: linux
2727
env: NODE_SCRIPT="tests/run_e2e.js --glob=tests/build/**"
28+
- node_js: "6"
29+
os: linux
30+
env: NODE_SCRIPT="tests/run_e2e.js --eject --glob=tests/build/**"
2831
- node_js: "6"
2932
os: linux
3033
env: NODE_SCRIPT="tests/run_e2e.js --ignore=**/tests/build/**"

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ with NPM 3 or higher.
3535

3636
* [Installation](#installation)
3737
* [Usage](#usage)
38-
* [Generating a New Project](#generating-and-serving-an-angular2-project-via-a-development-server)
38+
* [Generating a New Project](#generating-and-serving-an-angular-project-via-a-development-server)
3939
* [Generating Components, Directives, Pipes and Services](#generating-components-directives-pipes-and-services)
4040
* [Updating Angular CLI](#updating-angular-cli)
4141
* [Development Hints for hacking on Angular CLI](#development-hints-for-hacking-on-angular-cli)
@@ -54,7 +54,7 @@ npm install -g @angular/cli
5454
ng help
5555
```
5656

57-
### Generating and serving an Angular2 project via a development server
57+
### Generating and serving an Angular project via a development server
5858

5959
```bash
6060
ng new PROJECT_NAME

docs/documentation/build.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ By default, the development build target and environment are used.
2222
The mapping used to determine which environment file is used can be found in `.angular-cli.json`:
2323

2424
```json
25+
"environmentSource": "environments/environment.ts",
2526
"environments": {
26-
"source": "environments/environment.ts",
2727
"dev": "environments/environment.ts",
2828
"prod": "environments/environment.prod.ts"
2929
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
117117
"@types/express": "^4.0.32",
118118
"@types/fs-extra": "0.0.37",
119119
"@types/glob": "^5.0.29",
120-
"@types/jasmine": "^2.2.32",
120+
"@types/jasmine": "~2.2.0",
121121
"@types/lodash": "4.14.50",
122122
"@types/mock-fs": "^3.6.30",
123123
"@types/node": "^6.0.36",

packages/@angular/cli/addon/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ module.exports = {
2121
return {
2222
'build': require('../commands/build').default,
2323
'serve': require('../commands/serve').default,
24+
'eject': require('../commands/eject').default,
2425
'new': require('../commands/new').default,
2526
'generate': require('../commands/generate').default,
2627
'destroy': require('../commands/destroy').default,

packages/@angular/cli/blueprints/ng2/files/__path__/polyfills.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ import 'core-js/es7/reflect';
5353
/***************************************************************************************************
5454
* Zone JS is required by Angular itself.
5555
*/
56-
import 'zone.js/dist/zone'; // Included with Angular-CLI.
56+
import 'zone.js/dist/zone'; // Included with Angular CLI.
5757

5858

5959

packages/@angular/cli/blueprints/ng2/files/angular-cli.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
"styles.<%= styleExt %>"
2323
],
2424
"scripts": [],
25+
"environmentSource": "environments/environment.ts",
2526
"environments": {
26-
"source": "environments/environment.ts",
2727
"dev": "environments/environment.ts",
2828
"prod": "environments/environment.prod.ts"
2929
}

packages/@angular/cli/blueprints/ng2/files/protractor.conf.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ exports.config = {
2020
defaultTimeoutInterval: 30000,
2121
print: function() {}
2222
},
23-
useAllAngular2AppRoots: true,
2423
beforeLaunch: function() {
2524
require('ts-node').register({
2625
project: 'e2e'

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ export const baseBuildCommandOptions: any = [
3535
description: 'define the output filename cache-busting hashing mode',
3636
aliases: ['oh']
3737
},
38-
{ name: 'stats-json', type: Boolean, default: false },
3938
{
4039
name: 'poll',
4140
type: Number,
@@ -55,7 +54,8 @@ const BuildCommand = Command.extend({
5554
aliases: ['b'],
5655

5756
availableOptions: baseBuildCommandOptions.concat([
58-
{ name: 'watch', type: Boolean, default: false, aliases: ['w'] }
57+
{ name: 'watch', type: Boolean, default: false, aliases: ['w'] },
58+
{ name: 'stats-json', type: Boolean, default: false }
5959
]),
6060

6161
run: function (commandOptions: BuildTaskOptions) {
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
import { BuildOptions } from '../models/build-options';
2+
import { Version } from '../upgrade/version';
3+
import {baseBuildCommandOptions} from './build';
4+
5+
const Command = require('../ember-cli/lib/models/command');
6+
7+
// defaults for BuildOptions
8+
export const baseEjectCommandOptions: any = [
9+
...baseBuildCommandOptions,
10+
{ name: 'force', 'type': Boolean }
11+
];
12+
13+
export interface EjectTaskOptions extends BuildOptions {
14+
force?: boolean;
15+
}
16+
17+
18+
const EjectCommand = Command.extend({
19+
name: 'eject',
20+
description: 'Ejects your app and output the proper webpack configuration and scripts.',
21+
22+
availableOptions: baseEjectCommandOptions,
23+
24+
run: function (commandOptions: EjectTaskOptions) {
25+
const project = this.project;
26+
const EjectTask = require('../tasks/eject').default;
27+
const ejectTask = new EjectTask({
28+
cliProject: project,
29+
ui: this.ui,
30+
});
31+
32+
return ejectTask.run(commandOptions);
33+
}
34+
});
35+
36+
37+
export default EjectCommand;

0 commit comments

Comments
 (0)