Skip to content

Commit 6a76031

Browse files
Merge pull request #70 from angular/master
Update upstream
2 parents 010d557 + da3d34c commit 6a76031

File tree

9 files changed

+1360
-671
lines changed

9 files changed

+1360
-671
lines changed

package-lock.json

Lines changed: 1342 additions & 654 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@angular/cli",
3-
"version": "1.3.0-rc.5",
3+
"version": "1.4.0-beta.0",
44
"description": "CLI tool for Angular",
55
"main": "packages/@angular/cli/lib/cli/index.js",
66
"trackingCode": "UA-8594346-19",
@@ -40,7 +40,7 @@
4040
},
4141
"homepage": "https://github.com/angular/angular-cli",
4242
"dependencies": {
43-
"@angular-devkit/build-optimizer": "0.0.10",
43+
"@angular-devkit/build-optimizer": "0.0.13",
4444
"autoprefixer": "^6.5.3",
4545
"chalk": "^2.0.1",
4646
"circular-dependency-plugin": "^3.0.0",

packages/@angular/cli/lib/ast-tools/node.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {RemoveChange, Change} from './change';
99
* @param max The maximum number of items to return.
1010
* @return all nodes of kind, or [] if none is found
1111
*/
12-
export function findNodes(node: ts.Node, kind: ts.SyntaxKind, max: number = Infinity): ts.Node[] {
12+
export function findNodes(node: ts.Node, kind: ts.SyntaxKind, max = Infinity): ts.Node[] {
1313
if (!node || max == 0) {
1414
return [];
1515
}

packages/@angular/cli/models/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export class CliConfig extends CliConfigBase<ConfigInterface> {
3232
const projectConfig = CliConfig.fromProject();
3333
if (projectConfig) {
3434
value = projectConfig.get(jsonPath);
35-
} else if (CliConfig.globalConfigFilePath() !== CliConfig.configFilePath()) {
35+
} else {
3636
const globalConfig = CliConfig.fromGlobal();
3737
if (globalConfig) {
3838
value = globalConfig.get(jsonPath);

packages/@angular/cli/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@angular/cli",
3-
"version": "1.3.0-rc.5",
3+
"version": "1.4.0-beta.0",
44
"description": "CLI tool for Angular",
55
"main": "lib/cli/index.js",
66
"trackingCode": "UA-8594346-19",
@@ -27,9 +27,9 @@
2727
},
2828
"homepage": "https://github.com/angular/angular-cli",
2929
"dependencies": {
30-
"@angular-devkit/build-optimizer": "0.0.10",
30+
"@angular-devkit/build-optimizer": "0.0.13",
3131
"@ngtools/json-schema": "1.1.0",
32-
"@ngtools/webpack": "1.6.0-rc.5",
32+
"@ngtools/webpack": "1.7.0-beta.0",
3333
"autoprefixer": "^6.5.3",
3434
"chalk": "^2.0.1",
3535
"circular-dependency-plugin": "^3.0.0",

packages/@angular/cli/plugins/named-lazy-chunks-webpack-plugin.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ const ImportDependency = require('webpack/lib/dependencies/ImportDependency');
88
export class NamedLazyChunksWebpackPlugin extends webpack.NamedChunksPlugin {
99
constructor() {
1010
// Append a dot and number if the name already exists.
11-
const nameMap = new Map<string, boolean>();
12-
function getUniqueName(baseName: string) {
11+
const nameMap = new Map<string, string>();
12+
function getUniqueName(baseName: string, request: string) {
1313
let name = baseName;
1414
let num = 0;
15-
while (nameMap.has(name)) {
15+
while (nameMap.has(name) && nameMap.get(name) !== request) {
1616
name = `${baseName}.${num++}`;
1717
}
18-
nameMap.set(name, true);
18+
nameMap.set(name, request);
1919
return name;
2020
}
2121

@@ -34,13 +34,13 @@ export class NamedLazyChunksWebpackPlugin extends webpack.NamedChunksPlugin {
3434
|| chunk.blocks[0].dependencies[0] instanceof ImportDependency)
3535
) {
3636
// Create chunkname from file request, stripping ngfactory and extension.
37-
const req = chunk.blocks[0].dependencies[0].request;
38-
const chunkName = basename(req).replace(/(\.ngfactory)?\.(js|ts)$/, '');
37+
const request = chunk.blocks[0].dependencies[0].request;
38+
const chunkName = basename(request).replace(/(\.ngfactory)?\.(js|ts)$/, '');
3939
if (!chunkName || chunkName === '') {
4040
// Bail out if something went wrong with the name.
4141
return null;
4242
}
43-
return getUniqueName(chunkName);
43+
return getUniqueName(chunkName, request);
4444
}
4545

4646
return null;

packages/@ngtools/webpack/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ngtools/webpack",
3-
"version": "1.6.0-rc.5",
3+
"version": "1.7.0-beta.0",
44
"description": "Webpack plugin that AoT compiles your Angular components and modules.",
55
"main": "./src/index.js",
66
"typings": "src/index.d.ts",

packages/@ngtools/webpack/src/refactor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export class TypeScriptFileRefactor {
8787
findAstNodes(node: ts.Node | null,
8888
kind: ts.SyntaxKind,
8989
recursive = false,
90-
max: number = Infinity): ts.Node[] {
90+
max = Infinity): ts.Node[] {
9191
if (max == 0) {
9292
return [];
9393
}

scripts/test-licenses.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,12 @@ const ignoredPackages = [
7474
'[email protected]', // Looks like MIT
7575
'[email protected]', // BSD, but doesn't list it in package.json
7676
'[email protected]', // MIT, but doesn't list it in package.json
77-
'jschardet@1.4.2', // LGPL-2.1, listed as LGPL-2.1+.
77+
'jschardet@1.5.1', // LGPL-2.1, listed as LGPL-2.1+.
7878
'[email protected]', // MIT, license but it's not listed in package.json.
7979
'[email protected]', // MIT, but doesn't list it in package.json
8080
'[email protected]', // MIT, but doesn't list it in package.json
8181
'[email protected]', // MIT AND Apache-2.0, but broken license field in package.json lists.
82+
'[email protected]', // MIT, but doesn't list it in package.json
8283
'[email protected]', // MIT, but doesn't list it in package.json
8384
'[email protected]', // BSD, but doesn't list it in package.json
8485
'[email protected]', // MIT, but doesn't list it in package.json

0 commit comments

Comments
 (0)