parent
b971bc6f70
commit
cf02cf1e18
|
@ -107,7 +107,7 @@ echo "export CI_SECRET_PAYLOAD_FIREBASE_TOKEN=\"${CI_SECRET_PAYLOAD_FIREBASE_TOK
|
||||||
####################################################################################################
|
####################################################################################################
|
||||||
####################################################################################################
|
####################################################################################################
|
||||||
## Source `$BASH_ENV` to make the variables available immediately. ##
|
## Source `$BASH_ENV` to make the variables available immediately. ##
|
||||||
## ***NOTE: This must remain the the last action in this script*** ##
|
## ***NOTE: This must remain the last action in this script*** ##
|
||||||
####################################################################################################
|
####################################################################################################
|
||||||
####################################################################################################
|
####################################################################################################
|
||||||
source $BASH_ENV;
|
source $BASH_ENV;
|
||||||
|
|
|
@ -205,7 +205,7 @@ function validateCommonConfig(config) {
|
||||||
*/
|
*/
|
||||||
function readConfigFile(configPath, returnEmptyObjectOnError) {
|
function readConfigFile(configPath, returnEmptyObjectOnError) {
|
||||||
if (returnEmptyObjectOnError === void 0) { returnEmptyObjectOnError = false; }
|
if (returnEmptyObjectOnError === void 0) { returnEmptyObjectOnError = false; }
|
||||||
// If the the `.ts` extension has not been set up already, and a TypeScript based
|
// If the `.ts` extension has not been set up already, and a TypeScript based
|
||||||
// version of the given configuration seems to exist, set up `ts-node` if available.
|
// version of the given configuration seems to exist, set up `ts-node` if available.
|
||||||
if (require.extensions['.ts'] === undefined && fs.existsSync(configPath + ".ts") &&
|
if (require.extensions['.ts'] === undefined && fs.existsSync(configPath + ".ts") &&
|
||||||
isTsNodeAvailable()) {
|
isTsNodeAvailable()) {
|
||||||
|
|
|
@ -121,7 +121,7 @@ function validateCommonConfig(config) {
|
||||||
*/
|
*/
|
||||||
function readConfigFile(configPath, returnEmptyObjectOnError) {
|
function readConfigFile(configPath, returnEmptyObjectOnError) {
|
||||||
if (returnEmptyObjectOnError === void 0) { returnEmptyObjectOnError = false; }
|
if (returnEmptyObjectOnError === void 0) { returnEmptyObjectOnError = false; }
|
||||||
// If the the `.ts` extension has not been set up already, and a TypeScript based
|
// If the `.ts` extension has not been set up already, and a TypeScript based
|
||||||
// version of the given configuration seems to exist, set up `ts-node` if available.
|
// version of the given configuration seems to exist, set up `ts-node` if available.
|
||||||
if (require.extensions['.ts'] === undefined && fs.existsSync(configPath + ".ts") &&
|
if (require.extensions['.ts'] === undefined && fs.existsSync(configPath + ".ts") &&
|
||||||
isTsNodeAvailable()) {
|
isTsNodeAvailable()) {
|
||||||
|
|
|
@ -100,7 +100,7 @@ function validateCommonConfig(config: Partial<NgDevConfig>) {
|
||||||
* configuration file cannot be read.
|
* configuration file cannot be read.
|
||||||
*/
|
*/
|
||||||
function readConfigFile(configPath: string, returnEmptyObjectOnError = false): object {
|
function readConfigFile(configPath: string, returnEmptyObjectOnError = false): object {
|
||||||
// If the the `.ts` extension has not been set up already, and a TypeScript based
|
// If the `.ts` extension has not been set up already, and a TypeScript based
|
||||||
// version of the given configuration seems to exist, set up `ts-node` if available.
|
// version of the given configuration seems to exist, set up `ts-node` if available.
|
||||||
if (require.extensions['.ts'] === undefined && existsSync(`${configPath}.ts`) &&
|
if (require.extensions['.ts'] === undefined && existsSync(`${configPath}.ts`) &&
|
||||||
isTsNodeAvailable()) {
|
isTsNodeAvailable()) {
|
||||||
|
|
|
@ -4,7 +4,7 @@ load(":angular_integration_test.bzl", "angular_integration_test")
|
||||||
# cases the tests are able to select a random free port.
|
# cases the tests are able to select a random free port.
|
||||||
#
|
#
|
||||||
# Where `ng e2e` is used we pass `ng e2e --port 0` which prompts the cli
|
# Where `ng e2e` is used we pass `ng e2e --port 0` which prompts the cli
|
||||||
# to select a random free port for the the e2e test. The protractor.conf is
|
# to select a random free port for the e2e test. The protractor.conf is
|
||||||
# automatically updated to use this port.
|
# automatically updated to use this port.
|
||||||
#
|
#
|
||||||
# Karma automatically finds a free port so no effort is needed there.
|
# Karma automatically finds a free port so no effort is needed there.
|
||||||
|
@ -61,7 +61,7 @@ INTEGRATION_TESTS = {
|
||||||
},
|
},
|
||||||
"hello_world__systemjs_umd": {
|
"hello_world__systemjs_umd": {
|
||||||
# Special case for `hello_world__systemjs_umd` test as we want to pin
|
# Special case for `hello_world__systemjs_umd` test as we want to pin
|
||||||
# `systems` at version 0.20.2 and not link to the the root @npm//systemjs
|
# `systems` at version 0.20.2 and not link to the root @npm//systemjs
|
||||||
# which is stuck at 0.18.10 and can't be updated to 0.20.2 without
|
# which is stuck at 0.18.10 and can't be updated to 0.20.2 without
|
||||||
# breaking the legacy saucelabs job.
|
# breaking the legacy saucelabs job.
|
||||||
"pinned_npm_packages": ["systemjs"],
|
"pinned_npm_packages": ["systemjs"],
|
||||||
|
|
|
@ -331,7 +331,7 @@ def _filter_out_generated_files(files, extension, package_path = None):
|
||||||
files_list = files.to_list() if type(files) == _DEPSET_TYPE else files
|
files_list = files.to_list() if type(files) == _DEPSET_TYPE else files
|
||||||
for file in files_list:
|
for file in files_list:
|
||||||
# If the "package_path" parameter has been specified, filter out files
|
# If the "package_path" parameter has been specified, filter out files
|
||||||
# that do not start with the the specified package path.
|
# that do not start with the specified package path.
|
||||||
if package_path and not file.short_path.startswith(package_path):
|
if package_path and not file.short_path.startswith(package_path):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
|
@ -1773,7 +1773,7 @@ export class HttpClient {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a `PATCH` request that interprets the body as an `ArrayBuffer` and
|
* Constructs a `PATCH` request that interprets the body as an `ArrayBuffer` and
|
||||||
* returns the the full event stream.
|
* returns the full event stream.
|
||||||
*
|
*
|
||||||
* @param url The endpoint URL.
|
* @param url The endpoint URL.
|
||||||
* @param body The resources to edit.
|
* @param body The resources to edit.
|
||||||
|
|
|
@ -90,7 +90,7 @@ import {Directive, EmbeddedViewRef, Input, TemplateRef, ViewContainerRef, ɵstri
|
||||||
* You might want to show a set of properties from the same object. If you are waiting
|
* You might want to show a set of properties from the same object. If you are waiting
|
||||||
* for asynchronous data, the object can be undefined.
|
* for asynchronous data, the object can be undefined.
|
||||||
* In this case, you can use `ngIf` and store the result of the condition in a local
|
* In this case, you can use `ngIf` and store the result of the condition in a local
|
||||||
* variable as shown in the the following example.
|
* variable as shown in the following example.
|
||||||
*
|
*
|
||||||
* {@example common/ngIf/ts/module.ts region='NgIfAs'}
|
* {@example common/ngIf/ts/module.ts region='NgIfAs'}
|
||||||
*
|
*
|
||||||
|
|
|
@ -46,7 +46,7 @@ export class UmdReflectionHost extends Esm5ReflectionHost {
|
||||||
}
|
}
|
||||||
|
|
||||||
getDeclarationOfIdentifier(id: ts.Identifier): Declaration|null {
|
getDeclarationOfIdentifier(id: ts.Identifier): Declaration|null {
|
||||||
// First we try one of the the following:
|
// First we try one of the following:
|
||||||
// 1. The `exports` identifier - referring to the current file/module.
|
// 1. The `exports` identifier - referring to the current file/module.
|
||||||
// 2. An identifier (e.g. `foo`) that refers to an imported UMD module.
|
// 2. An identifier (e.g. `foo`) that refers to an imported UMD module.
|
||||||
// 3. A UMD style export identifier (e.g. the `foo` of `exports.foo`).
|
// 3. A UMD style export identifier (e.g. the `foo` of `exports.foo`).
|
||||||
|
|
|
@ -173,7 +173,7 @@ export class EsmRenderingFormatter implements RenderingFormatter {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Rewrite the the IVY switch markers to indicate we are in IVY mode.
|
* Rewrite the IVY switch markers to indicate we are in IVY mode.
|
||||||
*/
|
*/
|
||||||
rewriteSwitchableDeclarations(
|
rewriteSwitchableDeclarations(
|
||||||
outputText: MagicString, sourceFile: ts.SourceFile,
|
outputText: MagicString, sourceFile: ts.SourceFile,
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
/**
|
/**
|
||||||
* A marker that indicates the start of a segment in a mapping.
|
* A marker that indicates the start of a segment in a mapping.
|
||||||
*
|
*
|
||||||
* The end of a segment is indicated by the the first segment-marker of another mapping whose start
|
* The end of a segment is indicated by the first segment-marker of another mapping whose start
|
||||||
* is greater or equal to this one.
|
* is greater or equal to this one.
|
||||||
*/
|
*/
|
||||||
export interface SegmentMarker {
|
export interface SegmentMarker {
|
||||||
|
|
|
@ -64,7 +64,7 @@ interface EmitResolver {
|
||||||
* solves it conceptually the same way, but obviously doesn't need to access an `@internal` API.
|
* solves it conceptually the same way, but obviously doesn't need to access an `@internal` API.
|
||||||
*
|
*
|
||||||
* The set that is returned by this function is meant to be filled with import declaration nodes
|
* The set that is returned by this function is meant to be filled with import declaration nodes
|
||||||
* that have been referenced in a value-position by the transform, such the the installed patch can
|
* that have been referenced in a value-position by the transform, such the installed patch can
|
||||||
* ensure that those import declarations are not elided.
|
* ensure that those import declarations are not elided.
|
||||||
*
|
*
|
||||||
* See below. Note that this uses sourcegraph as the TypeScript checker file doesn't display on
|
* See below. Note that this uses sourcegraph as the TypeScript checker file doesn't display on
|
||||||
|
|
|
@ -448,7 +448,7 @@ describe('aot summaries for jit', () => {
|
||||||
expect(lib3ModuleNgSummarySource)
|
expect(lib3ModuleNgSummarySource)
|
||||||
.toMatch(/export function Lib3ModuleNgSummary\(\).*reference:i3\.ReexportModule,/s);
|
.toMatch(/export function Lib3ModuleNgSummary\(\).*reference:i3\.ReexportModule,/s);
|
||||||
// ngsummaries should re-export all used summaries directly. With external symbol re-exports
|
// ngsummaries should re-export all used summaries directly. With external symbol re-exports
|
||||||
// enabled, the the "lib1" summaries would be re-exported through "lib2" in order to avoid
|
// enabled, the "lib1" summaries would be re-exported through "lib2" in order to avoid
|
||||||
// a *direct* dependency on "lib1".
|
// a *direct* dependency on "lib1".
|
||||||
expect(lib3ModuleNgSummarySource)
|
expect(lib3ModuleNgSummarySource)
|
||||||
.toContain(
|
.toContain(
|
||||||
|
|
|
@ -178,7 +178,7 @@ export function createRootComponentView(
|
||||||
ngDevMode && assertIndexInRange(rootView, index);
|
ngDevMode && assertIndexInRange(rootView, index);
|
||||||
rootView[index] = rNode;
|
rootView[index] = rNode;
|
||||||
// '#host' is added here as we don't know the real host DOM name (we don't want to read it) and at
|
// '#host' is added here as we don't know the real host DOM name (we don't want to read it) and at
|
||||||
// the same time we want to communicate the the debug `TNode` that this is a special `TNode`
|
// the same time we want to communicate the debug `TNode` that this is a special `TNode`
|
||||||
// representing a host element.
|
// representing a host element.
|
||||||
const tNode: TElementNode = getOrCreateTNode(tView, index, TNodeType.Element, '#host', null);
|
const tNode: TElementNode = getOrCreateTNode(tView, index, TNodeType.Element, '#host', null);
|
||||||
const mergedAttrs = tNode.mergedAttrs = def.hostAttrs;
|
const mergedAttrs = tNode.mergedAttrs = def.hostAttrs;
|
||||||
|
|
|
@ -365,7 +365,7 @@ export class MinLengthValidator implements Validator, OnChanges {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @description
|
* @description
|
||||||
* Tracks changes to the the minimum length bound to this directive.
|
* Tracks changes to the minimum length bound to this directive.
|
||||||
*/
|
*/
|
||||||
@Input()
|
@Input()
|
||||||
minlength!: string|number; // This input is always defined, since the name matches selector.
|
minlength!: string|number; // This input is always defined, since the name matches selector.
|
||||||
|
@ -443,7 +443,7 @@ export class MaxLengthValidator implements Validator, OnChanges {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @description
|
* @description
|
||||||
* Tracks changes to the the maximum length bound to this directive.
|
* Tracks changes to the maximum length bound to this directive.
|
||||||
*/
|
*/
|
||||||
@Input()
|
@Input()
|
||||||
maxlength!: string|number; // This input is always defined, since the name matches selector.
|
maxlength!: string|number; // This input is always defined, since the name matches selector.
|
||||||
|
@ -537,7 +537,7 @@ export class PatternValidator implements Validator, OnChanges {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method that validates whether the value matches the the pattern requirement.
|
* Method that validates whether the value matches the pattern requirement.
|
||||||
* @nodoc
|
* @nodoc
|
||||||
*/
|
*/
|
||||||
validate(control: AbstractControl): ValidationErrors|null {
|
validate(control: AbstractControl): ValidationErrors|null {
|
||||||
|
|
|
@ -130,7 +130,7 @@ describe('language-service/compiler integration', () => {
|
||||||
// when invoked via the Language Service. Testing this via the LS is important as only the LS
|
// when invoked via the Language Service. Testing this via the LS is important as only the LS
|
||||||
// requests Angular analysis in the presence of TypeScript-level errors. In the case of broken
|
// requests Angular analysis in the presence of TypeScript-level errors. In the case of broken
|
||||||
// imports this distinction is especially important: Angular's incremental analysis is
|
// imports this distinction is especially important: Angular's incremental analysis is
|
||||||
// built on the the compiler's dependency graph, and this graph must be able to function even
|
// built on the compiler's dependency graph, and this graph must be able to function even
|
||||||
// with broken imports.
|
// with broken imports.
|
||||||
//
|
//
|
||||||
// The test works by creating a component/module pair where the module imports and declares a
|
// The test works by creating a component/module pair where the module imports and declares a
|
||||||
|
|
|
@ -516,7 +516,7 @@ export function getStatusText(code: number) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns true if the the Http Status Code is 200-299 (success)
|
* Returns true if the Http Status Code is 200-299 (success)
|
||||||
*/
|
*/
|
||||||
export function isSuccess(status: number): boolean {
|
export function isSuccess(status: number): boolean {
|
||||||
return status >= 200 && status < 300;
|
return status >= 200 && status < 300;
|
||||||
|
|
|
@ -167,7 +167,7 @@ class ApplyRedirects {
|
||||||
.pipe(
|
.pipe(
|
||||||
concatMap(childOutlet => {
|
concatMap(childOutlet => {
|
||||||
const child = segmentGroup.children[childOutlet];
|
const child = segmentGroup.children[childOutlet];
|
||||||
// Sort the routes so routes with outlets that match the the segment appear
|
// Sort the routes so routes with outlets that match the segment appear
|
||||||
// first, followed by routes for other outlets, which might match if they have an
|
// first, followed by routes for other outlets, which might match if they have an
|
||||||
// empty path.
|
// empty path.
|
||||||
const sortedRoutes = sortByMatchingOutlets(routes, childOutlet);
|
const sortedRoutes = sortByMatchingOutlets(routes, childOutlet);
|
||||||
|
|
|
@ -25,7 +25,7 @@ import {RouterLink, RouterLinkWithHref} from './router_link';
|
||||||
* is active.
|
* is active.
|
||||||
*
|
*
|
||||||
* Use this directive to create a visual distinction for elements associated with an active route.
|
* Use this directive to create a visual distinction for elements associated with an active route.
|
||||||
* For example, the following code highlights the word "Bob" when the the router
|
* For example, the following code highlights the word "Bob" when the router
|
||||||
* activates the associated route:
|
* activates the associated route:
|
||||||
*
|
*
|
||||||
* ```
|
* ```
|
||||||
|
|
|
@ -266,7 +266,7 @@ export class GuardsCheckEnd extends RouterEvent {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An event triggered at the the start of the Resolve phase of routing.
|
* An event triggered at the start of the Resolve phase of routing.
|
||||||
*
|
*
|
||||||
* Runs in the "resolve" phase whether or not there is anything to resolve.
|
* Runs in the "resolve" phase whether or not there is anything to resolve.
|
||||||
* In future, may change to only run when there are things to be resolved.
|
* In future, may change to only run when there are things to be resolved.
|
||||||
|
|
Loading…
Reference in New Issue