@angular-devkit/build-angular 0.801.0-beta.3 → 0.801.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +12 -13
- package/plugins/webpack/analytics.d.ts +2 -0
- package/plugins/webpack/analytics.js +25 -3
- package/src/angular-cli-files/models/es5-polyfills.js +1 -0
- package/src/angular-cli-files/models/webpack-configs/common.js +24 -29
- package/src/angular-cli-files/models/webpack-configs/styles.js +22 -16
- package/src/angular-cli-files/models/webpack-configs/utils.d.ts +3 -3
- package/src/angular-cli-files/models/webpack-configs/utils.js +21 -7
- package/src/angular-cli-files/plugins/index-html-webpack-plugin.d.ts +3 -0
- package/src/angular-cli-files/plugins/index-html-webpack-plugin.js +9 -4
- package/src/angular-cli-files/plugins/karma.js +0 -1
- package/src/angular-cli-files/plugins/single-test-transform.d.ts +28 -0
- package/src/angular-cli-files/plugins/single-test-transform.js +40 -0
- package/src/angular-cli-files/utilities/find-tests.d.ts +1 -0
- package/src/angular-cli-files/utilities/find-tests.js +55 -0
- package/src/angular-cli-files/utilities/index-file/augment-index-html.d.ts +3 -0
- package/src/angular-cli-files/utilities/index-file/augment-index-html.js +13 -6
- package/src/angular-cli-files/utilities/index-file/write-index-html.d.ts +3 -1
- package/src/angular-cli-files/utilities/index-file/write-index-html.js +6 -5
- package/src/angular-cli-files/utilities/package-chunk-sort.js +4 -2
- package/src/browser/index.js +20 -14
- package/src/browser/schema.d.ts +16 -0
- package/src/browser/schema.js +9 -0
- package/src/browser/schema.json +17 -1
- package/src/dev-server/index.js +46 -22
- package/src/karma/index.js +30 -2
- package/src/karma/schema.d.ts +13 -0
- package/src/karma/schema.json +14 -1
- package/src/utils/webpack-browser-config.js +1 -1
- package/test/utils.d.ts +2 -1
- package/test/utils.js +7 -2
package/test/utils.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
3
|
/**
|
|
3
4
|
* @license
|
|
4
5
|
* Copyright Google Inc. All Rights Reserved.
|
|
@@ -6,13 +7,17 @@
|
|
|
6
7
|
* Use of this source code is governed by an MIT-style license that can be
|
|
7
8
|
* found in the LICENSE file at https://angular.io/license
|
|
8
9
|
*/
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
const architect_1 = require("@angular-devkit/architect");
|
|
11
11
|
const node_1 = require("@angular-devkit/architect/node");
|
|
12
12
|
const testing_1 = require("@angular-devkit/architect/testing");
|
|
13
13
|
const core_1 = require("@angular-devkit/core");
|
|
14
|
+
exports.ivyEnabled = process.argv.includes('--ivy');
|
|
15
|
+
if (exports.ivyEnabled) {
|
|
16
|
+
// tslint:disable-next-line:no-console
|
|
17
|
+
console.warn('********* IVY Enabled ***********');
|
|
18
|
+
}
|
|
14
19
|
const devkitRoot = core_1.normalize(global._DevKitRoot); // tslint:disable-line:no-any
|
|
15
|
-
exports.workspaceRoot = core_1.join(devkitRoot,
|
|
20
|
+
exports.workspaceRoot = core_1.join(devkitRoot, `tests/angular_devkit/build_angular/hello-world-app${exports.ivyEnabled ? '-ivy' : ''}/`);
|
|
16
21
|
exports.host = new testing_1.TestProjectHost(exports.workspaceRoot);
|
|
17
22
|
exports.outputPath = core_1.normalize('dist');
|
|
18
23
|
exports.browserTargetSpec = { project: 'app', target: 'build' };
|