Skip to content

Commit 374aba7

Browse files
author
Angular Builds
committed
c2f00756e build: update github/codeql-action action to v2.2.9
1 parent debca5a commit 374aba7

13 files changed

+325
-75
lines changed

package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"name": "@angular-devkit/build-angular",
3-
"version": "16.0.0-next.5+sha-0ac5f27",
3+
"version": "16.0.0-next.5+sha-c2f0075",
44
"description": "Angular Webpack Build Facade",
55
"main": "src/index.js",
66
"typings": "src/index.d.ts",
77
"builders": "builders.json",
88
"dependencies": {
99
"@ampproject/remapping": "2.2.0",
10-
"@angular-devkit/architect": "github:angular/angular-devkit-architect-builds#0ac5f2714",
11-
"@angular-devkit/build-webpack": "github:angular/angular-devkit-build-webpack-builds#0ac5f2714",
12-
"@angular-devkit/core": "github:angular/angular-devkit-core-builds#0ac5f2714",
10+
"@angular-devkit/architect": "github:angular/angular-devkit-architect-builds#c2f00756e",
11+
"@angular-devkit/build-webpack": "github:angular/angular-devkit-build-webpack-builds#c2f00756e",
12+
"@angular-devkit/core": "github:angular/angular-devkit-core-builds#c2f00756e",
1313
"@babel/core": "7.21.3",
1414
"@babel/generator": "7.21.3",
1515
"@babel/helper-annotate-as-pure": "7.18.6",
@@ -21,7 +21,7 @@
2121
"@babel/runtime": "7.21.0",
2222
"@babel/template": "7.20.7",
2323
"@discoveryjs/json-ext": "0.5.7",
24-
"@ngtools/webpack": "github:angular/ngtools-webpack-builds#0ac5f2714",
24+
"@ngtools/webpack": "github:angular/ngtools-webpack-builds#c2f00756e",
2525
"ansi-colors": "4.1.3",
2626
"autoprefixer": "10.4.14",
2727
"babel-loader": "9.1.2",

src/builders/dev-server/builder.d.ts

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/**
2+
* @license
3+
* Copyright Google LLC All Rights Reserved.
4+
*
5+
* Use of this source code is governed by an MIT-style license that can be
6+
* found in the LICENSE file at https://angular.io/license
7+
*/
8+
import { BuilderContext } from '@angular-devkit/architect';
9+
import { Observable } from 'rxjs';
10+
import { ExecutionTransformer } from '../../transforms';
11+
import { IndexHtmlTransform } from '../../utils/index-file/index-html-generator';
12+
import { Schema as DevServerBuilderOptions } from './schema';
13+
import { DevServerBuilderOutput } from './webpack-server';
14+
/**
15+
* A Builder that executes a development server based on the provided browser target option.
16+
* @param options Dev Server options.
17+
* @param context The build context.
18+
* @param transforms A map of transforms that can be used to hook into some logic (such as
19+
* transforming webpack configuration before passing it to webpack).
20+
*
21+
* @experimental Direct usage of this function is considered experimental.
22+
*/
23+
export declare function execute(options: DevServerBuilderOptions, context: BuilderContext, transforms?: {
24+
webpackConfiguration?: ExecutionTransformer<import('webpack').Configuration>;
25+
logging?: import('@angular-devkit/build-webpack').WebpackLoggingCallback;
26+
indexHtml?: IndexHtmlTransform;
27+
}): Observable<DevServerBuilderOutput>;

src/builders/dev-server/builder.js

+68
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/builders/dev-server/index.d.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@
55
* Use of this source code is governed by an MIT-style license that can be
66
* found in the LICENSE file at https://angular.io/license
77
*/
8+
import { execute } from './builder';
89
import { Schema as DevServerBuilderOptions } from './schema';
9-
import { DevServerBuilderOutput, serveWebpackBrowser } from './webpack-server';
10-
export { DevServerBuilderOptions, DevServerBuilderOutput, serveWebpackBrowser };
10+
import { DevServerBuilderOutput } from './webpack-server';
11+
export { DevServerBuilderOptions, DevServerBuilderOutput, execute as executeDevServerBuilder };
1112
declare const _default: import("../../../../architect/src/internal").Builder<DevServerBuilderOptions & import("../../../../core/src").JsonObject>;
1213
export default _default;
14+
export { execute as serveWebpackBrowser };

src/builders/dev-server/index.js

+6-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/builders/dev-server/options.d.ts

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
/**
2+
* @license
3+
* Copyright Google LLC All Rights Reserved.
4+
*
5+
* Use of this source code is governed by an MIT-style license that can be
6+
* found in the LICENSE file at https://angular.io/license
7+
*/
8+
import { BuilderContext } from '@angular-devkit/architect';
9+
import { Schema as DevServerOptions } from './schema';
10+
export type NormalizedDevServerOptions = Awaited<ReturnType<typeof normalizeOptions>>;
11+
/**
12+
* Normalize the user provided options by creating full paths for all path based options
13+
* and converting multi-form options into a single form that can be directly used
14+
* by the build process.
15+
*
16+
* @param context The context for current builder execution.
17+
* @param projectName The name of the project for the current execution.
18+
* @param options An object containing the options to use for the build.
19+
* @returns An object containing normalized options required to perform the build.
20+
*/
21+
export declare function normalizeOptions(context: BuilderContext, projectName: string, options: DevServerOptions): Promise<{
22+
browserTarget: import("@angular-devkit/architect").Target;
23+
host: string;
24+
port: number;
25+
poll: number | undefined;
26+
open: boolean | undefined;
27+
verbose: boolean | undefined;
28+
watch: boolean | undefined;
29+
liveReload: boolean | undefined;
30+
hmr: boolean | undefined;
31+
headers: {
32+
[key: string]: string;
33+
} | undefined;
34+
workspaceRoot: string;
35+
projectRoot: string;
36+
cacheOptions: import("../../utils/normalize-cache").NormalizedCachedOptions;
37+
allowedHosts: string[] | undefined;
38+
disableHostCheck: boolean | undefined;
39+
proxyConfig: string | undefined;
40+
servePath: string | undefined;
41+
publicHost: string | undefined;
42+
ssl: boolean | undefined;
43+
sslCert: string | undefined;
44+
sslKey: string | undefined;
45+
}>;

0 commit comments

Comments
 (0)