_id
stringlengths
21
254
text
stringlengths
1
93.7k
metadata
dict
angular-cli/packages/angular/build/src/builders/application/tests/options/output-mode.ts_0_1806
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { buildApplication } from '../../index'; import { OutputMode } from '../../schema'; import { APPLICATION_BUIL...
{ "end_byte": 1806, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/builders/application/tests/options/output-mode.ts" }
angular-cli/packages/angular/build/src/builders/application/tests/options/service-worker_spec.ts_0_2763
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { buildApplication } from '../../index'; import { APPLICATION_BUILDER_INFO, BASE_OPTIONS, describeBuilder } f...
{ "end_byte": 2763, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/builders/application/tests/options/service-worker_spec.ts" }
angular-cli/packages/angular/build/src/builders/application/tests/options/named-chunks_spec.ts_0_2167
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { buildApplication } from '../../index'; import { APPLICATION_BUILDER_INFO, BASE_OPTIONS, describeBuilder } f...
{ "end_byte": 2167, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/builders/application/tests/options/named-chunks_spec.ts" }
angular-cli/packages/angular/build/src/builders/application/tests/options/delete-output-path_spec.ts_0_2786
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { buildApplication } from '../../index'; import { APPLICATION_BUILDER_INFO, BASE_OPTIONS, describeBuilder } f...
{ "end_byte": 2786, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/builders/application/tests/options/delete-output-path_spec.ts" }
angular-cli/packages/angular/build/src/builders/application/tests/options/styles_spec.ts_0_5056
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { buildApplication } from '../../index'; import { APPLICATION_BUILDER_INFO, BASE_OPTIONS, describeBuilder } f...
{ "end_byte": 5056, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/builders/application/tests/options/styles_spec.ts" }
angular-cli/packages/angular/build/src/builders/application/tests/options/styles_spec.ts_5062_12748
describe('longhand syntax', () => { it('processes a single style into a single output', async () => { await harness.writeFile('src/test-style-a.css', '.test-a {color: red}'); harness.useTarget('build', { ...BASE_OPTIONS, styles: [{ input: 'src/test-style-a.css' }], });...
{ "end_byte": 12748, "start_byte": 5062, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/builders/application/tests/options/styles_spec.ts" }
angular-cli/packages/angular/build/src/builders/application/tests/options/styles_spec.ts_12756_16119
it('adds link element to index when inject is true', async () => { await harness.writeFile('src/test-style-a.css', '.test-a {color: red}'); harness.useTarget('build', { ...BASE_OPTIONS, styles: [{ input: 'src/test-style-a.css', inject: true }], }); const { result } ...
{ "end_byte": 16119, "start_byte": 12756, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/builders/application/tests/options/styles_spec.ts" }
angular-cli/packages/angular/build/src/builders/application/tests/options/optimization-remove-special-comments_spec.ts_0_2337
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { buildApplication } from '../../index'; import { APPLICATION_BUILDER_INFO, BASE_OPTIONS, describeBuilder } f...
{ "end_byte": 2337, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/builders/application/tests/options/optimization-remove-special-comments_spec.ts" }
angular-cli/packages/angular/build/src/builders/application/tests/options/style-preprocessor-options-sass_spec.ts_0_2901
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { buildApplication } from '../../index'; import { APPLICATION_BUILDER_INFO, BASE_OPTIONS, describeBuilder } f...
{ "end_byte": 2901, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/builders/application/tests/options/style-preprocessor-options-sass_spec.ts" }
angular-cli/packages/angular/build/src/builders/application/tests/options/define_spec.ts_0_2420
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { buildApplication } from '../../index'; import { APPLICATION_BUILDER_INFO, BASE_OPTIONS, describeBuilder } f...
{ "end_byte": 2420, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/builders/application/tests/options/define_spec.ts" }
angular-cli/packages/angular/build/src/builders/application/tests/options/index_spec.ts_0_8284
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { buildApplication } from '../../index'; import { APPLICATION_BUILDER_INFO, BASE_OPTIONS, describeBuilder } f...
{ "end_byte": 8284, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/builders/application/tests/options/index_spec.ts" }
angular-cli/packages/angular/build/src/builders/application/tests/options/cross-origin_spec.ts_0_3796
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { buildApplication } from '../../index'; import { CrossOrigin } from '../../schema'; import { APPLICATION_BUI...
{ "end_byte": 3796, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/builders/application/tests/options/cross-origin_spec.ts" }
angular-cli/packages/angular/build/src/builders/application/tests/options/polyfills_spec.ts_0_2751
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { buildApplication } from '../../index'; import { APPLICATION_BUILDER_INFO, BASE_OPTIONS, describeBuilder } f...
{ "end_byte": 2751, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/builders/application/tests/options/polyfills_spec.ts" }
angular-cli/packages/angular/build/src/builders/application/tests/options/browser_spec.ts_0_2847
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { buildApplication } from '../../index'; import { APPLICATION_BUILDER_INFO, BASE_OPTIONS, describeBuilder } f...
{ "end_byte": 2847, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/builders/application/tests/options/browser_spec.ts" }
angular-cli/packages/angular/build/src/builders/application/tests/options/extract-licenses_spec.ts_0_2065
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { buildApplication } from '../../index'; import { APPLICATION_BUILDER_INFO, BASE_OPTIONS, describeBuilder } f...
{ "end_byte": 2065, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/builders/application/tests/options/extract-licenses_spec.ts" }
angular-cli/packages/angular/build/src/utils/format-bytes_spec.ts_0_684
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { formatSize } from './format-bytes'; describe('formatSize', () => { it('1000 bytes to be 1kB', () => { ...
{ "end_byte": 684, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/utils/format-bytes_spec.ts" }
angular-cli/packages/angular/build/src/utils/format-bytes.ts_0_624
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ export function formatSize(size: number): string { if (size <= 0) { return '0 bytes'; } const abbreviatio...
{ "end_byte": 624, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/utils/format-bytes.ts" }
angular-cli/packages/angular/build/src/utils/stats-table.ts_0_8291
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { stripVTControlCharacters } from 'node:util'; import { BudgetCalculatorResult } from './bundle-calculator'; ...
{ "end_byte": 8291, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/utils/stats-table.ts" }
angular-cli/packages/angular/build/src/utils/bundle-calculator.ts_0_7637
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { Budget as BudgetEntry, Type as BudgetType } from '../builders/application/schema'; import { formatSize } fr...
{ "end_byte": 7637, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/utils/bundle-calculator.ts" }
angular-cli/packages/angular/build/src/utils/bundle-calculator.ts_7639_9554
export function* checkBudgets( budgets: BudgetEntry[], stats: BudgetStats, checkComponentStyles?: boolean, ): IterableIterator<BudgetCalculatorResult> { // Ignore AnyComponentStyle budgets as these are handled in `AnyComponentStyleBudgetChecker` unless requested const computableBudgets = checkComponentStyles ...
{ "end_byte": 9554, "start_byte": 7639, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/utils/bundle-calculator.ts" }
angular-cli/packages/angular/build/src/utils/environment-options.ts_0_3688
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { availableParallelism } from 'node:os'; function isDisabled(variable: string): boolean { return variable ...
{ "end_byte": 3688, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/utils/environment-options.ts" }
angular-cli/packages/angular/build/src/utils/postcss-configuration.ts_0_3210
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { readFile, readdir } from 'node:fs/promises'; import { join } from 'node:path'; export interface PostcssCon...
{ "end_byte": 3210, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/utils/postcss-configuration.ts" }
angular-cli/packages/angular/build/src/utils/purge-cache.ts_0_1364
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { BuilderContext } from '@angular-devkit/architect'; import { readdir, rm } from 'node:fs/promises'; import {...
{ "end_byte": 1364, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/utils/purge-cache.ts" }
angular-cli/packages/angular/build/src/utils/normalize-source-maps.ts_0_753
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { SourceMapClass, SourceMapUnion } from '../builders/application/schema'; export function normalizeSourceMap...
{ "end_byte": 753, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/utils/normalize-source-maps.ts" }
angular-cli/packages/angular/build/src/utils/service-worker.ts_0_8094
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import type { Config, Filesystem } from '@angular/service-worker/config'; import * as crypto from 'crypto'; import {...
{ "end_byte": 8094, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/utils/service-worker.ts" }
angular-cli/packages/angular/build/src/utils/i18n-options.ts_0_6613
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import path from 'node:path'; import type { TranslationLoader } from './load-translations'; export interface Locale...
{ "end_byte": 6613, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/utils/i18n-options.ts" }
angular-cli/packages/angular/build/src/utils/supported-browsers.ts_0_1487
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import browserslist from 'browserslist'; export function getSupportedBrowsers( projectRoot: string, logger: { w...
{ "end_byte": 1487, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/utils/supported-browsers.ts" }
angular-cli/packages/angular/build/src/utils/url.ts_0_485
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ export function urlJoin(...parts: string[]): string { const [p, ...rest] = parts; // Remove trailing slash from...
{ "end_byte": 485, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/utils/url.ts" }
angular-cli/packages/angular/build/src/utils/bundle-calculator_spec.ts_0_7972
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { BudgetEntry, BudgetType, ThresholdSeverity, checkBudgets } from './bundle-calculator'; const kB = 1000; d...
{ "end_byte": 7972, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/utils/bundle-calculator_spec.ts" }
angular-cli/packages/angular/build/src/utils/normalize-optimization.ts_0_1410
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { FontsClass, OptimizationClass, OptimizationUnion, StylesClass, } from '../builders/application/sche...
{ "end_byte": 1410, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/utils/normalize-optimization.ts" }
angular-cli/packages/angular/build/src/utils/resolve-assets.ts_0_1224
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import glob from 'fast-glob'; import path from 'node:path'; export async function resolveAssets( entries: { g...
{ "end_byte": 1224, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/utils/resolve-assets.ts" }
angular-cli/packages/angular/build/src/utils/worker-pool.ts_0_1574
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { getCompileCacheDir } from 'node:module'; import { Piscina } from 'piscina'; export type WorkerPoolOptions ...
{ "end_byte": 1574, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/utils/worker-pool.ts" }
angular-cli/packages/angular/build/src/utils/normalize-cache.ts_0_1959
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { join, resolve } from 'node:path'; /** Version placeholder is replaced during the build process with actual...
{ "end_byte": 1959, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/utils/normalize-cache.ts" }
angular-cli/packages/angular/build/src/utils/index.ts_0_368
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ export * from './normalize-asset-patterns'; export * from './normalize-optimization'; export * from './normalize-sou...
{ "end_byte": 368, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/utils/index.ts" }
angular-cli/packages/angular/build/src/utils/load-proxy-config.ts_0_6206
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { isDynamicPattern } from 'fast-glob'; import { existsSync } from 'node:fs'; import { readFile } from 'node:f...
{ "end_byte": 6206, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/utils/load-proxy-config.ts" }
angular-cli/packages/angular/build/src/utils/check-port.ts_0_1940
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import assert from 'node:assert'; import { createServer } from 'node:net'; import { isTTY } from './tty'; function ...
{ "end_byte": 1940, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/utils/check-port.ts" }
angular-cli/packages/angular/build/src/utils/version.ts_0_2688
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ /* eslint-disable no-console */ import { createRequire } from 'node:module'; import { SemVer, satisfies } from 'sem...
{ "end_byte": 2688, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/utils/version.ts" }
angular-cli/packages/angular/build/src/utils/error.ts_0_597
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import assert from 'assert'; export function assertIsError(value: unknown): asserts value is Error & { code?: strin...
{ "end_byte": 597, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/utils/error.ts" }
angular-cli/packages/angular/build/src/utils/color.ts_0_718
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { WriteStream } from 'node:tty'; export { color as colors, figures } from 'listr2'; export function support...
{ "end_byte": 718, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/utils/color.ts" }
angular-cli/packages/angular/build/src/utils/tty.ts_0_674
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ function _isTruthy(value: undefined | string): boolean { // Returns true if value is a string that is anything but...
{ "end_byte": 674, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/utils/tty.ts" }
angular-cli/packages/angular/build/src/utils/delete-output-dir.ts_0_1594
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { readdir, rm } from 'node:fs/promises'; import { join, resolve } from 'node:path'; /** * Delete an output ...
{ "end_byte": 1594, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/utils/delete-output-dir.ts" }
angular-cli/packages/angular/build/src/utils/load-esm.ts_0_1203
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ /** * Lazily compiled dynamic import loader function. */ let load: (<T>(modulePath: string | URL) => Promise<T>) |...
{ "end_byte": 1203, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/utils/load-esm.ts" }
angular-cli/packages/angular/build/src/utils/load-translations.ts_0_2903
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import type { Diagnostics } from '@angular/localize/tools'; import { createHash } from 'crypto'; import * as fs from...
{ "end_byte": 2903, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/utils/load-translations.ts" }
angular-cli/packages/angular/build/src/utils/normalize-asset-patterns.ts_0_2660
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { statSync } from 'fs'; import assert from 'node:assert'; import * as path from 'path'; import { AssetPattern...
{ "end_byte": 2660, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/utils/normalize-asset-patterns.ts" }
angular-cli/packages/angular/build/src/utils/index-file/add-event-dispatch-contract_spec.ts_0_709
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { addEventDispatchContract } from './add-event-dispatch-contract'; describe('addEventDispatchContract', () =...
{ "end_byte": 709, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/utils/index-file/add-event-dispatch-contract_spec.ts" }
angular-cli/packages/angular/build/src/utils/index-file/ngcm-attribute.ts_0_1383
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { htmlRewritingStream } from './html-rewriting-stream'; /** * Defines a name of an attribute that is added ...
{ "end_byte": 1383, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/utils/index-file/ngcm-attribute.ts" }
angular-cli/packages/angular/build/src/utils/index-file/html-rewriting-stream.ts_0_1279
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { Readable } from 'node:stream'; import { pipeline } from 'node:stream/promises'; import type { RewritingStre...
{ "end_byte": 1279, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/utils/index-file/html-rewriting-stream.ts" }
angular-cli/packages/angular/build/src/utils/index-file/nonce.ts_0_1833
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { htmlRewritingStream } from './html-rewriting-stream'; /** * Pattern matching the name of the Angular nonc...
{ "end_byte": 1833, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/utils/index-file/nonce.ts" }
angular-cli/packages/angular/build/src/utils/index-file/augment-index-html.ts_0_1849
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { createHash } from 'node:crypto'; import { extname } from 'node:path'; import { loadEsmModule } from '../loa...
{ "end_byte": 1849, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/utils/index-file/augment-index-html.ts" }
angular-cli/packages/angular/build/src/utils/index-file/augment-index-html.ts_1850_9787
export async function augmentIndexHtml( params: AugmentIndexHtmlOptions, ): Promise<{ content: string; warnings: string[]; errors: string[] }> { const { loadOutputFile, files, entrypoints, sri, deployUrl = '', lang, baseHref, html, imageDomains, } = params; const warnings: s...
{ "end_byte": 9787, "start_byte": 1850, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/utils/index-file/augment-index-html.ts" }
angular-cli/packages/angular/build/src/utils/index-file/augment-index-html.ts_9789_10463
async function getLanguageDirectionFromLocales(locale: string): Promise<string | undefined> { try { const localeData = ( await loadEsmModule<typeof import('@angular/common/locales/en')>( `@angular/common/locales/${locale}`, ) ).default; const dir = localeData[localeData.length - 2]; ...
{ "end_byte": 10463, "start_byte": 9789, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/utils/index-file/augment-index-html.ts" }
angular-cli/packages/angular/build/src/utils/index-file/inline-critical-css_spec.ts_0_5012
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { tags } from '@angular-devkit/core'; import { InlineCriticalCssProcessor } from './inline-critical-css'; de...
{ "end_byte": 5012, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/utils/index-file/inline-critical-css_spec.ts" }
angular-cli/packages/angular/build/src/utils/index-file/nonce_spec.ts_0_2820
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { addNonce } from './nonce'; describe('addNonce', () => { it('should add the nonce expression to all inlin...
{ "end_byte": 2820, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/utils/index-file/nonce_spec.ts" }
angular-cli/packages/angular/build/src/utils/index-file/auto-csp.ts_0_7490
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import * as crypto from 'node:crypto'; import { StartTag, htmlRewritingStream } from './html-rewriting-stream'; /**...
{ "end_byte": 7490, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/utils/index-file/auto-csp.ts" }
angular-cli/packages/angular/build/src/utils/index-file/auto-csp.ts_7491_11172
function getStrictCsp( hashes?: string[], // default CSP options cspOptions: { enableBrowserFallbacks?: boolean; enableTrustedTypes?: boolean; enableUnsafeEval?: boolean; } = { enableBrowserFallbacks: true, enableTrustedTypes: false, enableUnsafeEval: false, }, ): string { hashes = h...
{ "end_byte": 11172, "start_byte": 7491, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/utils/index-file/auto-csp.ts" }
angular-cli/packages/angular/build/src/utils/index-file/inline-critical-css.ts_0_8235
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import Beasties from 'beasties'; import { readFile } from 'node:fs/promises'; /** * Pattern used to extract the me...
{ "end_byte": 8235, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/utils/index-file/inline-critical-css.ts" }
angular-cli/packages/angular/build/src/utils/index-file/inline-critical-css.ts_8237_8992
export class InlineCriticalCssProcessor { constructor(protected readonly options: InlineCriticalCssProcessorOptions) {} async process( html: string, options: InlineCriticalCssProcessOptions, ): Promise<{ content: string; warnings: string[]; errors: string[] }> { const beasties = new BeastiesExtended(...
{ "end_byte": 8992, "start_byte": 8237, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/utils/index-file/inline-critical-css.ts" }
angular-cli/packages/angular/build/src/utils/index-file/augment-index-html_spec.ts_0_7762
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { tags } from '@angular-devkit/core'; import { AugmentIndexHtmlOptions, augmentIndexHtml } from './augment-in...
{ "end_byte": 7762, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/utils/index-file/augment-index-html_spec.ts" }
angular-cli/packages/angular/build/src/utils/index-file/augment-index-html_spec.ts_7766_15178
it(`should add preconnect and dns-prefetch hints when provided with no cross origin`, async () => { const { content, warnings } = await augmentIndexHtml({ ...indexGeneratorOptions, hints: [ { mode: 'preconnect', url: 'http://example.com' }, { mode: 'dns-prefetch', url: 'http://example.co...
{ "end_byte": 15178, "start_byte": 7766, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/utils/index-file/augment-index-html_spec.ts" }
angular-cli/packages/angular/build/src/utils/index-file/augment-index-html_spec.ts_15182_16071
describe('self-closing tags', () => { it('should return an error when used on a not supported element', async () => { const { errors } = await augmentIndexHtml({ ...indexGeneratorOptions, html: ` <html> <body> <app-root /> </body> </htm...
{ "end_byte": 16071, "start_byte": 15182, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/utils/index-file/augment-index-html_spec.ts" }
angular-cli/packages/angular/build/src/utils/index-file/index-html-generator.ts_0_7012
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { readFile } from 'node:fs/promises'; import { join } from 'node:path'; import { NormalizedCachedOptions } fr...
{ "end_byte": 7012, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/utils/index-file/index-html-generator.ts" }
angular-cli/packages/angular/build/src/utils/index-file/inline-fonts.ts_0_1137
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { HttpsProxyAgent } from 'https-proxy-agent'; import { createHash } from 'node:crypto'; import { readFile, rm...
{ "end_byte": 1137, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/utils/index-file/inline-fonts.ts" }
angular-cli/packages/angular/build/src/utils/index-file/inline-fonts.ts_1139_9127
export class InlineFontsProcessor { private readonly cachePath: string | undefined; constructor(private options: InlineFontsOptions) { const { path: cacheDirectory, enabled } = this.options.cache || {}; if (cacheDirectory && enabled) { this.cachePath = join(cacheDirectory, 'angular-build-fonts'); ...
{ "end_byte": 9127, "start_byte": 1139, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/utils/index-file/inline-fonts.ts" }
angular-cli/packages/angular/build/src/utils/index-file/ngcm-attribute_spec.ts_0_899
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { addNgcmAttribute } from './ngcm-attribute'; describe('addNgcmAttribute', () => { it('should add the ngcm...
{ "end_byte": 899, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/utils/index-file/ngcm-attribute_spec.ts" }
angular-cli/packages/angular/build/src/utils/index-file/inline-fonts_spec.ts_0_4018
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { InlineFontsProcessor } from './inline-fonts'; describe('InlineFontsProcessor', () => { describe('Google ...
{ "end_byte": 4018, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/utils/index-file/inline-fonts_spec.ts" }
angular-cli/packages/angular/build/src/utils/index-file/valid-self-closing-tags.ts_0_1346
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ /** A list of valid self closing HTML elements */ export const VALID_SELF_CLOSING_TAGS = new Set([ 'area', 'base...
{ "end_byte": 1346, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/utils/index-file/valid-self-closing-tags.ts" }
angular-cli/packages/angular/build/src/utils/index-file/add-event-dispatch-contract.ts_0_921
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { readFile } from 'node:fs/promises'; import { htmlRewritingStream } from './html-rewriting-stream'; let jsA...
{ "end_byte": 921, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/utils/index-file/add-event-dispatch-contract.ts" }
angular-cli/packages/angular/build/src/utils/index-file/auto-csp_spec.ts_0_5921
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { autoCsp, hashTextContent } from './auto-csp'; // Utility function to grab the meta tag CSPs from the HTML ...
{ "end_byte": 5921, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/utils/index-file/auto-csp_spec.ts" }
angular-cli/packages/angular/build/src/utils/server-rendering/load-esm-from-memory.ts_0_1866
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import type { ApplicationRef, Type } from '@angular/core'; import type { ɵextractRoutesAndCreateRouteTree, ɵgetOrCre...
{ "end_byte": 1866, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/utils/server-rendering/load-esm-from-memory.ts" }
angular-cli/packages/angular/build/src/utils/server-rendering/utils.ts_0_715
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import type { createRequestHandler } from '@angular/ssr'; import type { createNodeRequestHandler } from '@angular/ss...
{ "end_byte": 715, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/utils/server-rendering/utils.ts" }
angular-cli/packages/angular/build/src/utils/server-rendering/routes-extractor-worker.ts_0_1827
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { workerData } from 'worker_threads'; import { OutputMode } from '../../builders/application/schema'; import ...
{ "end_byte": 1827, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/utils/server-rendering/routes-extractor-worker.ts" }
angular-cli/packages/angular/build/src/utils/server-rendering/prerender.ts_0_8417
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { readFile } from 'node:fs/promises'; import { extname, join, posix } from 'node:path'; import { pathToFileUR...
{ "end_byte": 8417, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/utils/server-rendering/prerender.ts" }
angular-cli/packages/angular/build/src/utils/server-rendering/prerender.ts_8419_11436
async function getAllRoutes( workspaceRoot: string, baseHref: string, outputFilesForWorker: Record<string, string>, assetFilesForWorker: Record<string, string>, appShellOptions: AppShellOptions | undefined, prerenderOptions: PrerenderOptions | undefined, sourcemap: boolean, outputMode: OutputMode | unde...
{ "end_byte": 11436, "start_byte": 8419, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/utils/server-rendering/prerender.ts" }
angular-cli/packages/angular/build/src/utils/server-rendering/launch-server.ts_0_2075
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import assert from 'node:assert'; import { createServer } from 'node:http'; import { loadEsmModule } from '../load-e...
{ "end_byte": 2075, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/utils/server-rendering/launch-server.ts" }
angular-cli/packages/angular/build/src/utils/server-rendering/manifest.ts_0_5915
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { INDEX_HTML_CSR, INDEX_HTML_SERVER, NormalizedApplicationBuildOptions, getLocaleBaseHref, } from '.....
{ "end_byte": 5915, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/utils/server-rendering/manifest.ts" }
angular-cli/packages/angular/build/src/utils/server-rendering/fetch-patch.ts_0_2047
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { lookup as lookupMimeType } from 'mrmime'; import { readFile } from 'node:fs/promises'; import { extname } f...
{ "end_byte": 2047, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/utils/server-rendering/fetch-patch.ts" }
angular-cli/packages/angular/build/src/utils/server-rendering/models.ts_0_1368
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import type { RenderMode, ɵextractRoutesAndCreateRouteTree } from '@angular/ssr'; import { ESMInMemoryFileLoaderWork...
{ "end_byte": 1368, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/utils/server-rendering/models.ts" }
angular-cli/packages/angular/build/src/utils/server-rendering/render-worker.ts_0_1854
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { workerData } from 'worker_threads'; import type { OutputMode } from '../../builders/application/schema'; im...
{ "end_byte": 1854, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/utils/server-rendering/render-worker.ts" }
angular-cli/packages/angular/build/src/utils/server-rendering/esm-in-memory-loader/register-hooks.ts_0_428
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { register } from 'node:module'; import { pathToFileURL } from 'node:url'; import { workerData } from 'node:w...
{ "end_byte": 428, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/utils/server-rendering/esm-in-memory-loader/register-hooks.ts" }
angular-cli/packages/angular/build/src/utils/server-rendering/esm-in-memory-loader/loader-hooks.ts_0_5137
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import assert from 'node:assert'; import { randomUUID } from 'node:crypto'; import { join } from 'node:path'; import...
{ "end_byte": 5137, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/utils/server-rendering/esm-in-memory-loader/loader-hooks.ts" }
angular-cli/packages/angular/create/README.md_0_515
# `@angular/create` ## Create an Angular CLI workspace Scaffold an Angular CLI workspace without needing to install the Angular CLI globally. All of the [ng new](https://angular.dev/cli/new) options and features are supported. ## Usage ### npm ``` npm init @angular@latest [project-name] -- [...options] ``` ### ya...
{ "end_byte": 515, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/create/README.md" }
angular-cli/packages/angular/create/BUILD.bazel_0_846
# Copyright Google Inc. All Rights Reserved. # # Use of this source code is governed by an MIT-style license that can be # found in the LICENSE file at https://angular.dev/license load("//tools:defaults.bzl", "pkg_npm", "ts_library") licenses(["notice"]) ts_library( name = "create", package_name = "@angular/...
{ "end_byte": 846, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/create/BUILD.bazel" }
angular-cli/packages/angular/create/src/index.ts_0_1060
#!/usr/bin/env node /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { spawnSync } from 'child_process'; import { join } from 'path'; const binPath = join(re...
{ "end_byte": 1060, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/create/src/index.ts" }
angular-cli/packages/ngtools/webpack/README.md_0_3452
# Angular Compiler Webpack Plugin Webpack 5.x plugin for the Angular Ahead-of-Time compiler. The plugin also supports Angular JIT mode. When this plugin is used outside of the Angular CLI, the Ivy linker will also be needed to support the usage of Angular libraries. An example configuration of the Babel-based Ivy link...
{ "end_byte": 3452, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/ngtools/webpack/README.md" }
angular-cli/packages/ngtools/webpack/BUILD.bazel_0_2088
# Copyright Google Inc. All Rights Reserved. # # Use of this source code is governed by an MIT-style license that can be # found in the LICENSE file at https://angular.dev/license load("@npm//@angular/build-tooling/bazel/api-golden:index.bzl", "api_golden_test_npm_package") load("@npm//@bazel/jasmine:index.bzl", "jasm...
{ "end_byte": 2088, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/ngtools/webpack/BUILD.bazel" }
angular-cli/packages/ngtools/webpack/src/paths-plugin.ts_0_8642
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import * as path from 'path'; import { CompilerOptions } from 'typescript'; import type { Resolver } from 'webpack';...
{ "end_byte": 8642, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/ngtools/webpack/src/paths-plugin.ts" }
angular-cli/packages/ngtools/webpack/src/resource_loader.ts_0_802
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import assert from 'node:assert'; import { Buffer } from 'node:buffer'; import * as path from 'node:path'; import * ...
{ "end_byte": 802, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/ngtools/webpack/src/resource_loader.ts" }
angular-cli/packages/ngtools/webpack/src/resource_loader.ts_804_10653
export class WebpackResourceLoader { private _parentCompilation?: Compilation; private _fileDependencies = new Map<string, Set<string>>(); private _reverseDependencies = new Map<string, Set<string>>(); private fileCache?: Map<string, CompilationOutput>; private assetCache?: Map<string, Asset>; private mod...
{ "end_byte": 10653, "start_byte": 804, "url": "https://github.com/angular/angular-cli/blob/main/packages/ngtools/webpack/src/resource_loader.ts" }
angular-cli/packages/ngtools/webpack/src/resource_loader.ts_10657_12425
private _evaluate(filename: string, source: string): string | null { // Evaluate code // css-loader requires the btoa function to exist to correctly generate inline sourcemaps const context: { btoa: (input: string) => string; resource?: string | { default?: string } } = { btoa(input) { return...
{ "end_byte": 12425, "start_byte": 10657, "url": "https://github.com/angular/angular-cli/blob/main/packages/ngtools/webpack/src/resource_loader.ts" }
angular-cli/packages/ngtools/webpack/src/index.ts_0_344
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ export { AngularWebpackLoaderPath, AngularWebpackPlugin, type AngularWebpackPluginOptions, imageDomains, d...
{ "end_byte": 344, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/ngtools/webpack/src/index.ts" }
angular-cli/packages/ngtools/webpack/src/benchmark.ts_0_581
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ // Internal benchmark reporting flag. // Use with CLI --no-progress flag for best results. // This should be false f...
{ "end_byte": 581, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/ngtools/webpack/src/benchmark.ts" }
angular-cli/packages/ngtools/webpack/src/ivy/plugin.ts_0_2413
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import type { CompilerHost, CompilerOptions, NgtscProgram } from '@angular/compiler-cli'; import { strict as assert ...
{ "end_byte": 2413, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/ngtools/webpack/src/ivy/plugin.ts" }
angular-cli/packages/ngtools/webpack/src/ivy/plugin.ts_2415_11741
export class AngularWebpackPlugin { private readonly pluginOptions: AngularWebpackPluginOptions; private compilerCliModule?: typeof import('@angular/compiler-cli'); private compilerCliToolingModule?: typeof import('@angular/compiler-cli/private/tooling'); private watchMode?: boolean; private ngtscNextProgram?...
{ "end_byte": 11741, "start_byte": 2415, "url": "https://github.com/angular/angular-cli/blob/main/packages/ngtools/webpack/src/ivy/plugin.ts" }
angular-cli/packages/ngtools/webpack/src/ivy/plugin.ts_11745_15362
private registerWithCompilation(compilation: Compilation) { let fileEmitters = compilationFileEmitters.get(compilation); if (!fileEmitters) { fileEmitters = new FileEmitterCollection(); compilationFileEmitters.set(compilation, fileEmitters); compilation.compiler.webpack.NormalModule.getCompila...
{ "end_byte": 15362, "start_byte": 11745, "url": "https://github.com/angular/angular-cli/blob/main/packages/ngtools/webpack/src/ivy/plugin.ts" }
angular-cli/packages/ngtools/webpack/src/ivy/plugin.ts_15366_24190
private updateAotProgram( compilerOptions: CompilerOptions, rootNames: string[], host: CompilerHost, diagnosticsReporter: DiagnosticsReporter, resourceLoader: WebpackResourceLoader, ) { // Create the Angular specific program that contains the Angular compiler const angularProgram = new thi...
{ "end_byte": 24190, "start_byte": 15366, "url": "https://github.com/angular/angular-cli/blob/main/packages/ngtools/webpack/src/ivy/plugin.ts" }
angular-cli/packages/ngtools/webpack/src/ivy/plugin.ts_24194_27571
private createFileEmitter( program: ts.BuilderProgram, transformers: ts.CustomTransformers = {}, getExtraDependencies: (sourceFile: ts.SourceFile) => Iterable<string>, onAfterEmit?: (sourceFile: ts.SourceFile) => void, ): FileEmitter { return async (file: string) => { const filePath = normal...
{ "end_byte": 27571, "start_byte": 24194, "url": "https://github.com/angular/angular-cli/blob/main/packages/ngtools/webpack/src/ivy/plugin.ts" }
angular-cli/packages/ngtools/webpack/src/ivy/loader.ts_0_2552
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import * as path from 'path'; import type { LoaderContext } from 'webpack'; import { AngularPluginSymbol, FileEmitte...
{ "end_byte": 2552, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/ngtools/webpack/src/ivy/loader.ts" }
angular-cli/packages/ngtools/webpack/src/ivy/symbol.ts_0_1468
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ export const AngularPluginSymbol = Symbol.for('@ngtools/webpack[angular-compiler]'); export interface EmitFileResul...
{ "end_byte": 1468, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/ngtools/webpack/src/ivy/symbol.ts" }
angular-cli/packages/ngtools/webpack/src/ivy/cache.ts_0_971
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import * as ts from 'typescript'; export class SourceFileCache extends Map<string, ts.SourceFile> { private reado...
{ "end_byte": 971, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/ngtools/webpack/src/ivy/cache.ts" }
angular-cli/packages/ngtools/webpack/src/ivy/diagnostics.ts_0_1152
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { Diagnostic, DiagnosticCategory } from 'typescript'; import type { Compilation } from 'webpack'; export typ...
{ "end_byte": 1152, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/ngtools/webpack/src/ivy/diagnostics.ts" }