@angular-devkit/build-angular 14.0.0-next.3 → 14.0.0-next.6
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/README.md +10 -10
- package/package.json +23 -23
- package/src/babel/plugins/pure-toplevel-functions.js +5 -1
- package/src/babel/presets/application.js +5 -1
- package/src/builders/app-shell/index.js +8 -3
- package/src/builders/app-shell/schema.d.ts +2 -2
- package/src/builders/app-shell/schema.json +2 -2
- package/src/builders/browser/index.d.ts +2 -3
- package/src/builders/browser/index.js +11 -7
- package/src/builders/browser/schema.d.ts +0 -1
- package/src/builders/browser/schema.json +2 -3
- package/src/builders/dev-server/index.d.ts +1 -1
- package/src/builders/dev-server/index.js +5 -1
- package/src/builders/dev-server/schema.d.ts +1 -1
- package/src/builders/dev-server/schema.json +1 -1
- package/src/builders/extract-i18n/index.d.ts +1 -1
- package/src/builders/extract-i18n/index.js +5 -1
- package/src/builders/extract-i18n/ivy-extract-loader.js +5 -1
- package/src/builders/karma/find-tests.js +5 -1
- package/src/builders/karma/index.js +5 -1
- package/src/builders/ng-packagr/index.js +5 -1
- package/src/builders/protractor/index.d.ts +2 -1
- package/src/builders/protractor/index.js +5 -1
- package/src/builders/server/index.d.ts +2 -3
- package/src/builders/server/index.js +5 -1
- package/src/builders/server/schema.json +1 -2
- package/src/index.js +5 -1
- package/src/utils/check-port.js +5 -1
- package/src/utils/color.js +5 -1
- package/src/utils/copy-assets.js +5 -1
- package/src/utils/delete-output-dir.js +6 -9
- package/src/utils/environment-options.d.ts +0 -1
- package/src/utils/environment-options.js +1 -13
- package/src/utils/i18n-inlining.js +5 -1
- package/src/utils/i18n-options.js +1 -8
- package/src/utils/index-file/html-rewriting-stream.js +5 -1
- package/src/utils/index-file/index-html-generator.js +5 -1
- package/src/utils/index-file/inline-critical-css.js +5 -1
- package/src/utils/index-file/inline-fonts.js +5 -1
- package/src/utils/index.js +5 -1
- package/src/utils/load-translations.js +5 -1
- package/src/utils/normalize-builder-schema.d.ts +2 -2
- package/src/utils/normalize-builder-schema.js +5 -5
- package/src/utils/normalize-cache.js +0 -4
- package/src/utils/process-bundle.js +5 -1
- package/src/utils/purge-cache.js +1 -5
- package/src/utils/read-tsconfig.js +5 -1
- package/src/utils/service-worker.js +5 -1
- package/src/utils/webpack-browser-config.js +14 -12
- package/src/webpack/configs/common.js +5 -1
- package/src/webpack/configs/dev-server.js +5 -1
- package/src/webpack/configs/index.js +5 -1
- package/src/webpack/configs/styles.js +5 -1
- package/src/webpack/plugins/any-component-style-budget-checker.js +5 -1
- package/src/webpack/plugins/common-js-usage-warn-plugin.js +2 -2
- package/src/webpack/plugins/esbuild-executor.js +5 -1
- package/src/webpack/plugins/json-stats-plugin.js +5 -1
- package/src/webpack/plugins/karma/karma.js +5 -1
- package/src/webpack/plugins/named-chunks-plugin.js +5 -0
- package/src/webpack/plugins/postcss-cli-resources.js +5 -1
- package/src/webpack/plugins/scripts-webpack-plugin.js +5 -1
- package/src/webpack/utils/helpers.js +5 -1
- package/src/webpack/utils/stats.js +5 -1
package/README.md
CHANGED
|
@@ -4,16 +4,16 @@ This package contains [Architect builders](/packages/angular_devkit/architect/RE
|
|
|
4
4
|
|
|
5
5
|
## Builders
|
|
6
6
|
|
|
7
|
-
| Name | Description
|
|
8
|
-
| ------------ |
|
|
9
|
-
| app-shell | Build an Angular [App shell](https://angular.io/guide/app-shell).
|
|
10
|
-
| browser | Build an Angular application targeting a browser environment.
|
|
11
|
-
| dev-server | A development server that provides live reloading.
|
|
12
|
-
| extract-i18n | Extract i18n messages from an Angular application.
|
|
13
|
-
| karma | Execute unit tests using [Karma](https://github.com/karma-runner/karma) test runner.
|
|
14
|
-
| ng-packagr | Build and package an Angular library in [Angular Package Format (APF)](https://
|
|
15
|
-
| server | Build an Angular application targeting a [Node.js](https://nodejs.org) environment.
|
|
16
|
-
| protractor | **Deprecated** - Run end-to-end tests using [Protractor](https://www.protractortest.org/) framework.
|
|
7
|
+
| Name | Description |
|
|
8
|
+
| ------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
9
|
+
| app-shell | Build an Angular [App shell](https://angular.io/guide/app-shell). |
|
|
10
|
+
| browser | Build an Angular application targeting a browser environment. |
|
|
11
|
+
| dev-server | A development server that provides live reloading. |
|
|
12
|
+
| extract-i18n | Extract i18n messages from an Angular application. |
|
|
13
|
+
| karma | Execute unit tests using [Karma](https://github.com/karma-runner/karma) test runner. |
|
|
14
|
+
| ng-packagr | Build and package an Angular library in [Angular Package Format (APF)](https://angular.io/guide/angular-package-format) format using [ng-packagr](https://github.com/ng-packagr/ng-packagr). |
|
|
15
|
+
| server | Build an Angular application targeting a [Node.js](https://nodejs.org) environment. |
|
|
16
|
+
| protractor | **Deprecated** - Run end-to-end tests using [Protractor](https://www.protractortest.org/) framework. |
|
|
17
17
|
|
|
18
18
|
## Disclaimer
|
|
19
19
|
|
package/package.json
CHANGED
|
@@ -1,77 +1,77 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular-devkit/build-angular",
|
|
3
|
-
"version": "14.0.0-next.
|
|
3
|
+
"version": "14.0.0-next.6",
|
|
4
4
|
"description": "Angular Webpack Build Facade",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"typings": "src/index.d.ts",
|
|
7
7
|
"builders": "builders.json",
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@ampproject/remapping": "2.1.2",
|
|
10
|
-
"@angular-devkit/architect": "0.1400.0-next.
|
|
11
|
-
"@angular-devkit/build-webpack": "0.1400.0-next.
|
|
12
|
-
"@angular-devkit/core": "14.0.0-next.
|
|
13
|
-
"@babel/core": "7.17.
|
|
14
|
-
"@babel/generator": "7.17.
|
|
10
|
+
"@angular-devkit/architect": "0.1400.0-next.6",
|
|
11
|
+
"@angular-devkit/build-webpack": "0.1400.0-next.6",
|
|
12
|
+
"@angular-devkit/core": "14.0.0-next.6",
|
|
13
|
+
"@babel/core": "7.17.7",
|
|
14
|
+
"@babel/generator": "7.17.7",
|
|
15
15
|
"@babel/helper-annotate-as-pure": "7.16.7",
|
|
16
16
|
"@babel/plugin-proposal-async-generator-functions": "7.16.8",
|
|
17
17
|
"@babel/plugin-transform-async-to-generator": "7.16.8",
|
|
18
18
|
"@babel/plugin-transform-runtime": "7.17.0",
|
|
19
19
|
"@babel/preset-env": "7.16.11",
|
|
20
|
-
"@babel/runtime": "7.17.
|
|
20
|
+
"@babel/runtime": "7.17.7",
|
|
21
21
|
"@babel/template": "7.16.7",
|
|
22
|
-
"@discoveryjs/json-ext": "0.5.
|
|
23
|
-
"@ngtools/webpack": "14.0.0-next.
|
|
22
|
+
"@discoveryjs/json-ext": "0.5.7",
|
|
23
|
+
"@ngtools/webpack": "14.0.0-next.6",
|
|
24
24
|
"ansi-colors": "4.1.1",
|
|
25
25
|
"babel-loader": "8.2.3",
|
|
26
26
|
"babel-plugin-istanbul": "6.1.1",
|
|
27
27
|
"browserslist": "^4.9.1",
|
|
28
|
-
"cacache": "
|
|
28
|
+
"cacache": "16.0.1",
|
|
29
29
|
"copy-webpack-plugin": "10.2.4",
|
|
30
30
|
"core-js": "3.21.1",
|
|
31
31
|
"critters": "0.0.16",
|
|
32
|
-
"css-loader": "6.
|
|
33
|
-
"esbuild-wasm": "0.14.
|
|
32
|
+
"css-loader": "6.7.1",
|
|
33
|
+
"esbuild-wasm": "0.14.27",
|
|
34
34
|
"glob": "7.2.0",
|
|
35
35
|
"https-proxy-agent": "5.0.0",
|
|
36
|
-
"inquirer": "8.2.
|
|
36
|
+
"inquirer": "8.2.1",
|
|
37
37
|
"jsonc-parser": "3.0.0",
|
|
38
38
|
"karma-source-map-support": "1.4.0",
|
|
39
39
|
"less": "4.1.2",
|
|
40
40
|
"less-loader": "10.2.0",
|
|
41
41
|
"license-webpack-plugin": "4.0.2",
|
|
42
42
|
"loader-utils": "3.2.0",
|
|
43
|
-
"mini-css-extract-plugin": "2.
|
|
44
|
-
"minimatch": "5.0.
|
|
43
|
+
"mini-css-extract-plugin": "2.6.0",
|
|
44
|
+
"minimatch": "5.0.1",
|
|
45
45
|
"open": "8.4.0",
|
|
46
46
|
"ora": "5.4.1",
|
|
47
47
|
"parse5-html-rewriting-stream": "6.0.1",
|
|
48
48
|
"piscina": "3.2.0",
|
|
49
|
-
"postcss": "8.4.
|
|
49
|
+
"postcss": "8.4.12",
|
|
50
50
|
"postcss-import": "14.0.2",
|
|
51
51
|
"postcss-loader": "6.2.1",
|
|
52
|
-
"postcss-preset-env": "7.4.
|
|
52
|
+
"postcss-preset-env": "7.4.2",
|
|
53
53
|
"regenerator-runtime": "0.13.9",
|
|
54
54
|
"resolve-url-loader": "5.0.0",
|
|
55
55
|
"rxjs": "6.6.7",
|
|
56
|
-
"sass": "1.49.
|
|
56
|
+
"sass": "1.49.9",
|
|
57
57
|
"sass-loader": "12.6.0",
|
|
58
58
|
"semver": "7.3.5",
|
|
59
59
|
"source-map-loader": "3.0.1",
|
|
60
60
|
"source-map-support": "0.5.21",
|
|
61
61
|
"stylus": "0.56.0",
|
|
62
62
|
"stylus-loader": "6.2.0",
|
|
63
|
-
"terser": "5.
|
|
63
|
+
"terser": "5.12.1",
|
|
64
64
|
"text-table": "0.2.0",
|
|
65
65
|
"tree-kill": "1.2.2",
|
|
66
66
|
"tslib": "2.3.1",
|
|
67
|
-
"webpack": "5.
|
|
67
|
+
"webpack": "5.70.0",
|
|
68
68
|
"webpack-dev-middleware": "5.3.1",
|
|
69
69
|
"webpack-dev-server": "4.7.4",
|
|
70
70
|
"webpack-merge": "5.8.0",
|
|
71
71
|
"webpack-subresource-integrity": "5.1.0"
|
|
72
72
|
},
|
|
73
73
|
"optionalDependencies": {
|
|
74
|
-
"esbuild": "0.14.
|
|
74
|
+
"esbuild": "0.14.27"
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
77
77
|
"@angular/compiler-cli": "^14.0.0 || ^14.0.0-next",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"ng-packagr": "^14.0.0 || ^14.0.0-next",
|
|
82
82
|
"protractor": "^7.0.0",
|
|
83
83
|
"tailwindcss": "^2.0.0 || ^3.0.0",
|
|
84
|
-
"typescript": "
|
|
84
|
+
"typescript": "^4.6.2"
|
|
85
85
|
},
|
|
86
86
|
"peerDependenciesMeta": {
|
|
87
87
|
"@angular/localize": {
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
"url": "https://github.com/angular/angular-cli.git"
|
|
116
116
|
},
|
|
117
117
|
"engines": {
|
|
118
|
-
"node": "^
|
|
118
|
+
"node": "^14.15.0 || >=16.10.0",
|
|
119
119
|
"npm": "^6.11.0 || ^7.5.6 || >=8.0.0",
|
|
120
120
|
"yarn": ">= 1.13.0"
|
|
121
121
|
},
|
|
@@ -8,7 +8,11 @@
|
|
|
8
8
|
*/
|
|
9
9
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10
10
|
if (k2 === undefined) k2 = k;
|
|
11
|
-
Object.
|
|
11
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
12
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
13
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
14
|
+
}
|
|
15
|
+
Object.defineProperty(o, k2, desc);
|
|
12
16
|
}) : (function(o, m, k, k2) {
|
|
13
17
|
if (k2 === undefined) k2 = k;
|
|
14
18
|
o[k2] = m[k];
|
|
@@ -8,7 +8,11 @@
|
|
|
8
8
|
*/
|
|
9
9
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10
10
|
if (k2 === undefined) k2 = k;
|
|
11
|
-
Object.
|
|
11
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
12
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
13
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
14
|
+
}
|
|
15
|
+
Object.defineProperty(o, k2, desc);
|
|
12
16
|
}) : (function(o, m, k, k2) {
|
|
13
17
|
if (k2 === undefined) k2 = k;
|
|
14
18
|
o[k2] = m[k];
|
|
@@ -8,7 +8,11 @@
|
|
|
8
8
|
*/
|
|
9
9
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10
10
|
if (k2 === undefined) k2 = k;
|
|
11
|
-
Object.
|
|
11
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
12
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
13
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
14
|
+
}
|
|
15
|
+
Object.defineProperty(o, k2, desc);
|
|
12
16
|
}) : (function(o, m, k, k2) {
|
|
13
17
|
if (k2 === undefined) k2 = k;
|
|
14
18
|
o[k2] = m[k];
|
|
@@ -35,6 +39,7 @@ const inline_critical_css_1 = require("../../utils/index-file/inline-critical-cs
|
|
|
35
39
|
const service_worker_1 = require("../../utils/service-worker");
|
|
36
40
|
const spinner_1 = require("../../utils/spinner");
|
|
37
41
|
async function _renderUniversal(options, context, browserResult, serverResult, spinner) {
|
|
42
|
+
var _a;
|
|
38
43
|
// Get browser target options.
|
|
39
44
|
const browserTarget = (0, architect_1.targetFromTargetString)(options.browserTarget);
|
|
40
45
|
const rawBrowserOptions = (await context.getTargetOptions(browserTarget));
|
|
@@ -49,7 +54,7 @@ async function _renderUniversal(options, context, browserResult, serverResult, s
|
|
|
49
54
|
throw new Error('The builder requires a target.');
|
|
50
55
|
}
|
|
51
56
|
const projectMetadata = await context.getProjectMetadata(projectName);
|
|
52
|
-
const projectRoot = (
|
|
57
|
+
const projectRoot = path.join(root, (_a = projectMetadata.root) !== null && _a !== void 0 ? _a : '');
|
|
53
58
|
const { styles } = (0, utils_1.normalizeOptimization)(browserOptions.optimization);
|
|
54
59
|
const inlineCriticalCssProcessor = styles.inlineCritical
|
|
55
60
|
? new inline_critical_css_1.InlineCriticalCssProcessor({
|
|
@@ -91,7 +96,7 @@ async function _renderUniversal(options, context, browserResult, serverResult, s
|
|
|
91
96
|
}
|
|
92
97
|
await fs.promises.writeFile(outputIndexPath, html);
|
|
93
98
|
if (browserOptions.serviceWorker) {
|
|
94
|
-
await (0, service_worker_1.augmentAppWithServiceWorker)(projectRoot, (0, core_1.normalize)(outputPath), browserOptions.baseHref || '/', browserOptions.ngswConfigPath);
|
|
99
|
+
await (0, service_worker_1.augmentAppWithServiceWorker)((0, core_1.normalize)(projectRoot), (0, core_1.normalize)(outputPath), browserOptions.baseHref || '/', browserOptions.ngswConfigPath);
|
|
95
100
|
}
|
|
96
101
|
}
|
|
97
102
|
return browserResult;
|
|
@@ -9,7 +9,7 @@ export interface Schema {
|
|
|
9
9
|
*/
|
|
10
10
|
appModuleBundle?: string;
|
|
11
11
|
/**
|
|
12
|
-
* A browser builder target use for rendering the
|
|
12
|
+
* A browser builder target use for rendering the application shell in the format of
|
|
13
13
|
* `project:target[:configuration]`. You can also pass in more than one configuration name
|
|
14
14
|
* as a comma-separated list. Example: `project:target:production,staging`.
|
|
15
15
|
*/
|
|
@@ -28,7 +28,7 @@ export interface Schema {
|
|
|
28
28
|
*/
|
|
29
29
|
route?: string;
|
|
30
30
|
/**
|
|
31
|
-
* A server builder target use for rendering the
|
|
31
|
+
* A server builder target use for rendering the application shell in the format of
|
|
32
32
|
* `project:target[:configuration]`. You can also pass in more than one configuration name
|
|
33
33
|
* as a comma-separated list. Example: `project:target:production,staging`.
|
|
34
34
|
*/
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
"properties": {
|
|
7
7
|
"browserTarget": {
|
|
8
8
|
"type": "string",
|
|
9
|
-
"description": "A browser builder target use for rendering the
|
|
9
|
+
"description": "A browser builder target use for rendering the application shell in the format of `project:target[:configuration]`. You can also pass in more than one configuration name as a comma-separated list. Example: `project:target:production,staging`.",
|
|
10
10
|
"pattern": "^[^:\\s]+:[^:\\s]+(:[^\\s]+)?$"
|
|
11
11
|
},
|
|
12
12
|
"serverTarget": {
|
|
13
13
|
"type": "string",
|
|
14
|
-
"description": "A server builder target use for rendering the
|
|
14
|
+
"description": "A server builder target use for rendering the application shell in the format of `project:target[:configuration]`. You can also pass in more than one configuration name as a comma-separated list. Example: `project:target:production,staging`.",
|
|
15
15
|
"pattern": "^[^:\\s]+:[^:\\s]+(:[^\\s]+)?$"
|
|
16
16
|
},
|
|
17
17
|
"appModuleBundle": {
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { BuilderContext, BuilderOutput } from '@angular-devkit/architect';
|
|
9
9
|
import { WebpackLoggingCallback } from '@angular-devkit/build-webpack';
|
|
10
|
-
import { json } from '@angular-devkit/core';
|
|
11
10
|
import { Observable } from 'rxjs';
|
|
12
11
|
import webpack from 'webpack';
|
|
13
12
|
import { ExecutionTransformer } from '../../transforms';
|
|
@@ -16,7 +15,7 @@ import { Schema as BrowserBuilderSchema } from './schema';
|
|
|
16
15
|
/**
|
|
17
16
|
* @experimental Direct usage of this type is considered experimental.
|
|
18
17
|
*/
|
|
19
|
-
export declare type BrowserBuilderOutput =
|
|
18
|
+
export declare type BrowserBuilderOutput = BuilderOutput & {
|
|
20
19
|
baseOutputPath: string;
|
|
21
20
|
outputPaths: string[];
|
|
22
21
|
/**
|
|
@@ -37,5 +36,5 @@ export declare function buildWebpackBrowser(options: BrowserBuilderSchema, conte
|
|
|
37
36
|
logging?: WebpackLoggingCallback;
|
|
38
37
|
indexHtml?: IndexHtmlTransform;
|
|
39
38
|
}): Observable<BrowserBuilderOutput>;
|
|
40
|
-
declare const _default: import("@angular-devkit/architect/src/internal").Builder<
|
|
39
|
+
declare const _default: import("@angular-devkit/architect/src/internal").Builder<BrowserBuilderSchema & import("@angular-devkit/core").JsonObject>;
|
|
41
40
|
export default _default;
|
|
@@ -8,7 +8,11 @@
|
|
|
8
8
|
*/
|
|
9
9
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10
10
|
if (k2 === undefined) k2 = k;
|
|
11
|
-
Object.
|
|
11
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
12
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
13
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
14
|
+
}
|
|
15
|
+
Object.defineProperty(o, k2, desc);
|
|
12
16
|
}) : (function(o, m, k, k2) {
|
|
13
17
|
if (k2 === undefined) k2 = k;
|
|
14
18
|
o[k2] = m[k];
|
|
@@ -92,7 +96,6 @@ async function initialize(options, context, webpackConfigurationTransform) {
|
|
|
92
96
|
// eslint-disable-next-line max-lines-per-function
|
|
93
97
|
function buildWebpackBrowser(options, context, transforms = {}) {
|
|
94
98
|
var _a;
|
|
95
|
-
const root = (0, core_1.normalize)(context.workspaceRoot);
|
|
96
99
|
const projectName = (_a = context.target) === null || _a === void 0 ? void 0 : _a.project;
|
|
97
100
|
if (!projectName) {
|
|
98
101
|
throw new Error('The builder requires a target.');
|
|
@@ -102,13 +105,14 @@ function buildWebpackBrowser(options, context, transforms = {}) {
|
|
|
102
105
|
// Check Angular version.
|
|
103
106
|
(0, version_1.assertCompatibleAngularVersion)(context.workspaceRoot);
|
|
104
107
|
return (0, rxjs_1.from)(context.getProjectMetadata(projectName)).pipe((0, operators_1.switchMap)(async (projectMetadata) => {
|
|
105
|
-
var _a;
|
|
106
|
-
const sysProjectRoot = (0, core_1.getSystemPath)((0, core_1.resolve)((0, core_1.normalize)(context.workspaceRoot), (0, core_1.normalize)((_a = projectMetadata.root) !== null && _a !== void 0 ? _a : '')));
|
|
107
108
|
// Purge old build disk cache.
|
|
108
109
|
await (0, purge_cache_1.purgeStaleBuildCache)(context);
|
|
109
|
-
|
|
110
|
+
// Initialize builder
|
|
111
|
+
const initialization = await initialize(options, context, transforms.webpackConfiguration);
|
|
112
|
+
// Check and warn about IE browser support
|
|
113
|
+
checkInternetExplorerSupport(initialization.projectRoot, context.logger);
|
|
110
114
|
return {
|
|
111
|
-
...
|
|
115
|
+
...initialization,
|
|
112
116
|
cacheOptions: (0, normalize_cache_1.normalizeCacheOptions)(projectMetadata, context.workspaceRoot),
|
|
113
117
|
};
|
|
114
118
|
}), (0, operators_1.switchMap)(
|
|
@@ -185,7 +189,7 @@ function buildWebpackBrowser(options, context, transforms = {}) {
|
|
|
185
189
|
if (!options.watch && ((_c = options.assets) === null || _c === void 0 ? void 0 : _c.length)) {
|
|
186
190
|
spinner.start('Copying assets...');
|
|
187
191
|
try {
|
|
188
|
-
await (0, copy_assets_1.copyAssets)((0, utils_1.normalizeAssetPatterns)(options.assets,
|
|
192
|
+
await (0, copy_assets_1.copyAssets)((0, utils_1.normalizeAssetPatterns)(options.assets, (0, core_1.normalize)(context.workspaceRoot), (0, core_1.normalize)(projectRoot), projectSourceRoot === undefined ? undefined : (0, core_1.normalize)(projectSourceRoot)), Array.from(outputPaths.values()), context.workspaceRoot);
|
|
189
193
|
spinner.succeed('Copying assets complete.');
|
|
190
194
|
}
|
|
191
195
|
catch (err) {
|
|
@@ -98,7 +98,6 @@ export interface Schema {
|
|
|
98
98
|
outputHashing?: OutputHashing;
|
|
99
99
|
/**
|
|
100
100
|
* The full path for the new output directory, relative to the current workspace.
|
|
101
|
-
*
|
|
102
101
|
* By default, writes output to a folder named dist/ in the current project.
|
|
103
102
|
*/
|
|
104
103
|
outputPath: string;
|
|
@@ -193,12 +193,11 @@
|
|
|
193
193
|
},
|
|
194
194
|
"outputPath": {
|
|
195
195
|
"type": "string",
|
|
196
|
-
"description": "The full path for the new output directory, relative to the current workspace.\
|
|
196
|
+
"description": "The full path for the new output directory, relative to the current workspace.\nBy default, writes output to a folder named dist/ in the current project."
|
|
197
197
|
},
|
|
198
198
|
"resourcesOutputPath": {
|
|
199
199
|
"type": "string",
|
|
200
|
-
"description": "The path where style resources will be placed, relative to outputPath."
|
|
201
|
-
"default": ""
|
|
200
|
+
"description": "The path where style resources will be placed, relative to outputPath."
|
|
202
201
|
},
|
|
203
202
|
"aot": {
|
|
204
203
|
"type": "boolean",
|
|
@@ -13,7 +13,7 @@ import webpack from 'webpack';
|
|
|
13
13
|
import { ExecutionTransformer } from '../../transforms';
|
|
14
14
|
import { IndexHtmlTransform } from '../../utils/index-file/index-html-generator';
|
|
15
15
|
import { Schema } from './schema';
|
|
16
|
-
export declare type DevServerBuilderOptions = Schema
|
|
16
|
+
export declare type DevServerBuilderOptions = Schema;
|
|
17
17
|
/**
|
|
18
18
|
* @experimental Direct usage of this type is considered experimental.
|
|
19
19
|
*/
|
|
@@ -8,7 +8,11 @@
|
|
|
8
8
|
*/
|
|
9
9
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10
10
|
if (k2 === undefined) k2 = k;
|
|
11
|
-
Object.
|
|
11
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
12
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
13
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
14
|
+
}
|
|
15
|
+
Object.defineProperty(o, k2, desc);
|
|
12
16
|
}) : (function(o, m, k, k2) {
|
|
13
17
|
if (k2 === undefined) k2 = k;
|
|
14
18
|
o[k2] = m[k];
|
|
@@ -11,7 +11,7 @@ import { JsonObject } from '@angular-devkit/core';
|
|
|
11
11
|
import webpack from 'webpack';
|
|
12
12
|
import { ExecutionTransformer } from '../../transforms';
|
|
13
13
|
import { Schema } from './schema';
|
|
14
|
-
export declare type ExtractI18nBuilderOptions = Schema
|
|
14
|
+
export declare type ExtractI18nBuilderOptions = Schema;
|
|
15
15
|
/**
|
|
16
16
|
* @experimental Direct usage of this function is considered experimental.
|
|
17
17
|
*/
|
|
@@ -8,7 +8,11 @@
|
|
|
8
8
|
*/
|
|
9
9
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10
10
|
if (k2 === undefined) k2 = k;
|
|
11
|
-
Object.
|
|
11
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
12
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
13
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
14
|
+
}
|
|
15
|
+
Object.defineProperty(o, k2, desc);
|
|
12
16
|
}) : (function(o, m, k, k2) {
|
|
13
17
|
if (k2 === undefined) k2 = k;
|
|
14
18
|
o[k2] = m[k];
|
|
@@ -8,7 +8,11 @@
|
|
|
8
8
|
*/
|
|
9
9
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10
10
|
if (k2 === undefined) k2 = k;
|
|
11
|
-
Object.
|
|
11
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
12
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
13
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
14
|
+
}
|
|
15
|
+
Object.defineProperty(o, k2, desc);
|
|
12
16
|
}) : (function(o, m, k, k2) {
|
|
13
17
|
if (k2 === undefined) k2 = k;
|
|
14
18
|
o[k2] = m[k];
|
|
@@ -8,7 +8,11 @@
|
|
|
8
8
|
*/
|
|
9
9
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10
10
|
if (k2 === undefined) k2 = k;
|
|
11
|
-
Object.
|
|
11
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
12
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
13
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
14
|
+
}
|
|
15
|
+
Object.defineProperty(o, k2, desc);
|
|
12
16
|
}) : (function(o, m, k, k2) {
|
|
13
17
|
if (k2 === undefined) k2 = k;
|
|
14
18
|
o[k2] = m[k];
|
|
@@ -8,7 +8,11 @@
|
|
|
8
8
|
*/
|
|
9
9
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10
10
|
if (k2 === undefined) k2 = k;
|
|
11
|
-
Object.
|
|
11
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
12
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
13
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
14
|
+
}
|
|
15
|
+
Object.defineProperty(o, k2, desc);
|
|
12
16
|
}) : (function(o, m, k, k2) {
|
|
13
17
|
if (k2 === undefined) k2 = k;
|
|
14
18
|
o[k2] = m[k];
|
|
@@ -8,7 +8,11 @@
|
|
|
8
8
|
*/
|
|
9
9
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10
10
|
if (k2 === undefined) k2 = k;
|
|
11
|
-
Object.
|
|
11
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
12
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
13
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
14
|
+
}
|
|
15
|
+
Object.defineProperty(o, k2, desc);
|
|
12
16
|
}) : (function(o, m, k, k2) {
|
|
13
17
|
if (k2 === undefined) k2 = k;
|
|
14
18
|
o[k2] = m[k];
|
|
@@ -6,11 +6,12 @@
|
|
|
6
6
|
* found in the LICENSE file at https://angular.io/license
|
|
7
7
|
*/
|
|
8
8
|
import { BuilderContext, BuilderOutput } from '@angular-devkit/architect';
|
|
9
|
+
import { json } from '@angular-devkit/core';
|
|
9
10
|
import { Schema as ProtractorBuilderOptions } from './schema';
|
|
10
11
|
export { ProtractorBuilderOptions };
|
|
11
12
|
/**
|
|
12
13
|
* @experimental Direct usage of this function is considered experimental.
|
|
13
14
|
*/
|
|
14
15
|
export declare function execute(options: ProtractorBuilderOptions, context: BuilderContext): Promise<BuilderOutput>;
|
|
15
|
-
declare const _default: import("@angular-devkit/architect/src/internal").Builder<ProtractorBuilderOptions &
|
|
16
|
+
declare const _default: import("@angular-devkit/architect/src/internal").Builder<ProtractorBuilderOptions & json.JsonObject>;
|
|
16
17
|
export default _default;
|
|
@@ -8,7 +8,11 @@
|
|
|
8
8
|
*/
|
|
9
9
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10
10
|
if (k2 === undefined) k2 = k;
|
|
11
|
-
Object.
|
|
11
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
12
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
13
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
14
|
+
}
|
|
15
|
+
Object.defineProperty(o, k2, desc);
|
|
12
16
|
}) : (function(o, m, k, k2) {
|
|
13
17
|
if (k2 === undefined) k2 = k;
|
|
14
18
|
o[k2] = m[k];
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
* found in the LICENSE file at https://angular.io/license
|
|
7
7
|
*/
|
|
8
8
|
import { BuilderContext, BuilderOutput } from '@angular-devkit/architect';
|
|
9
|
-
import { json } from '@angular-devkit/core';
|
|
10
9
|
import { Observable } from 'rxjs';
|
|
11
10
|
import webpack from 'webpack';
|
|
12
11
|
import { ExecutionTransformer } from '../../transforms';
|
|
@@ -14,7 +13,7 @@ import { Schema as ServerBuilderOptions } from './schema';
|
|
|
14
13
|
/**
|
|
15
14
|
* @experimental Direct usage of this type is considered experimental.
|
|
16
15
|
*/
|
|
17
|
-
export declare type ServerBuilderOutput =
|
|
16
|
+
export declare type ServerBuilderOutput = BuilderOutput & {
|
|
18
17
|
baseOutputPath: string;
|
|
19
18
|
outputPaths: string[];
|
|
20
19
|
/**
|
|
@@ -29,5 +28,5 @@ export { ServerBuilderOptions };
|
|
|
29
28
|
export declare function execute(options: ServerBuilderOptions, context: BuilderContext, transforms?: {
|
|
30
29
|
webpackConfiguration?: ExecutionTransformer<webpack.Configuration>;
|
|
31
30
|
}): Observable<ServerBuilderOutput>;
|
|
32
|
-
declare const _default: import("@angular-devkit/architect/src/internal").Builder<ServerBuilderOptions &
|
|
31
|
+
declare const _default: import("@angular-devkit/architect/src/internal").Builder<ServerBuilderOptions & import("@angular-devkit/core").JsonObject>;
|
|
33
32
|
export default _default;
|
|
@@ -8,7 +8,11 @@
|
|
|
8
8
|
*/
|
|
9
9
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10
10
|
if (k2 === undefined) k2 = k;
|
|
11
|
-
Object.
|
|
11
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
12
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
13
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
14
|
+
}
|
|
15
|
+
Object.defineProperty(o, k2, desc);
|
|
12
16
|
}) : (function(o, m, k, k2) {
|
|
13
17
|
if (k2 === undefined) k2 = k;
|
|
14
18
|
o[k2] = m[k];
|
|
@@ -74,8 +74,7 @@
|
|
|
74
74
|
},
|
|
75
75
|
"resourcesOutputPath": {
|
|
76
76
|
"type": "string",
|
|
77
|
-
"description": "The path where style resources will be placed, relative to outputPath."
|
|
78
|
-
"default": ""
|
|
77
|
+
"description": "The path where style resources will be placed, relative to outputPath."
|
|
79
78
|
},
|
|
80
79
|
"sourceMap": {
|
|
81
80
|
"description": "Output source maps for scripts and styles. For more information, see https://angular.io/guide/workspace-config#source-map-configuration.",
|
package/src/index.js
CHANGED
|
@@ -8,7 +8,11 @@
|
|
|
8
8
|
*/
|
|
9
9
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10
10
|
if (k2 === undefined) k2 = k;
|
|
11
|
-
Object.
|
|
11
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
12
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
13
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
14
|
+
}
|
|
15
|
+
Object.defineProperty(o, k2, desc);
|
|
12
16
|
}) : (function(o, m, k, k2) {
|
|
13
17
|
if (k2 === undefined) k2 = k;
|
|
14
18
|
o[k2] = m[k];
|
package/src/utils/check-port.js
CHANGED
|
@@ -8,7 +8,11 @@
|
|
|
8
8
|
*/
|
|
9
9
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10
10
|
if (k2 === undefined) k2 = k;
|
|
11
|
-
Object.
|
|
11
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
12
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
13
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
14
|
+
}
|
|
15
|
+
Object.defineProperty(o, k2, desc);
|
|
12
16
|
}) : (function(o, m, k, k2) {
|
|
13
17
|
if (k2 === undefined) k2 = k;
|
|
14
18
|
o[k2] = m[k];
|
package/src/utils/color.js
CHANGED
|
@@ -8,7 +8,11 @@
|
|
|
8
8
|
*/
|
|
9
9
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10
10
|
if (k2 === undefined) k2 = k;
|
|
11
|
-
Object.
|
|
11
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
12
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
13
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
14
|
+
}
|
|
15
|
+
Object.defineProperty(o, k2, desc);
|
|
12
16
|
}) : (function(o, m, k, k2) {
|
|
13
17
|
if (k2 === undefined) k2 = k;
|
|
14
18
|
o[k2] = m[k];
|
package/src/utils/copy-assets.js
CHANGED
|
@@ -8,7 +8,11 @@
|
|
|
8
8
|
*/
|
|
9
9
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10
10
|
if (k2 === undefined) k2 = k;
|
|
11
|
-
Object.
|
|
11
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
12
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
13
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
14
|
+
}
|
|
15
|
+
Object.defineProperty(o, k2, desc);
|
|
12
16
|
}) : (function(o, m, k, k2) {
|
|
13
17
|
if (k2 === undefined) k2 = k;
|
|
14
18
|
o[k2] = m[k];
|