_id stringlengths 21 254 | text stringlengths 1 93.7k | metadata dict |
|---|---|---|
angular-cli/packages/angular_devkit/core/node/host_spec.ts_0_4316 | /**
* @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 @typescript-eslint/no-non-null-assertion */
import * as fs from 'fs';
import { tmpdir } from 'os';... | {
"end_byte": 4316,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/node/host_spec.ts"
} |
angular-cli/packages/angular_devkit/core/node/cli-logger.ts_0_2634 | /**
* @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 { filter } from 'rxjs';
import { logging } from '../src';
export interface ProcessOutput {
write(buffer: s... | {
"end_byte": 2634,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/node/cli-logger.ts"
} |
angular-cli/packages/angular_devkit/core/node/BUILD.bazel_0_1226 | # 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//@bazel/jasmine:index.bzl", "jasmine_node_test")
load("//tools:defaults.bzl", "ts_library")
licenses(["notice"])
package(defau... | {
"end_byte": 1226,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/node/BUILD.bazel"
} |
angular-cli/packages/angular_devkit/core/node/host.ts_0_7530 | /**
* @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 {
PathLike,
Stats,
constants,
existsSync,
promises as fsPromises,
mkdirSync,
readFileSync,
re... | {
"end_byte": 7530,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/node/host.ts"
} |
angular-cli/packages/angular_devkit/core/node/index.ts_0_258 | /**
* @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 './cli-logger';
export * from './host';
| {
"end_byte": 258,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/node/index.ts"
} |
angular-cli/packages/angular_devkit/core/node/testing/BUILD.bazel_0_730 | load("//tools:defaults.bzl", "ts_library")
# 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
licenses(["notice"])
package(default_visibility = ["//visibility:public"])
ts_library(
nam... | {
"end_byte": 730,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/node/testing/BUILD.bazel"
} |
angular-cli/packages/angular_devkit/core/node/testing/index.ts_0_1502 | /**
* @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 fs from 'fs';
import * as os from 'os';
import * as path from 'path';
import { Path, getSystemPath, join... | {
"end_byte": 1502,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/node/testing/index.ts"
} |
angular-cli/packages/angular_devkit/core/src/index.ts_0_494 | /**
* @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 json from './json/index';
import * as logging from './logger/index';
import * as workspaces from './work... | {
"end_byte": 494,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/index.ts"
} |
angular-cli/packages/angular_devkit/core/src/exception.ts_0_995 | /**
* @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 class BaseException extends Error {
constructor(message = '') {
super(message);
}
}
export class Unk... | {
"end_byte": 995,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/exception.ts"
} |
angular-cli/packages/angular_devkit/core/src/logger/logger_spec.ts_0_2251 | /**
* @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 @typescript-eslint/no-explicit-any */
import { lastValueFrom, toArray } from 'rxjs';
import { Json... | {
"end_byte": 2251,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/logger/logger_spec.ts"
} |
angular-cli/packages/angular_devkit/core/src/logger/null-logger.ts_0_648 | /**
* @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 { EMPTY } from 'rxjs';
import { Logger, LoggerApi } from './logger';
export class NullLogger extends Logger ... | {
"end_byte": 648,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/logger/null-logger.ts"
} |
angular-cli/packages/angular_devkit/core/src/logger/level.ts_0_1735 | /**
* @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 { JsonObject } from '../json/utils';
import { LogLevel, Logger } from './logger';
export class LevelTransfor... | {
"end_byte": 1735,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/logger/level.ts"
} |
angular-cli/packages/angular_devkit/core/src/logger/indent.ts_0_1509 | /**
* @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 { map } from 'rxjs';
import { Logger } from './logger';
/**
* Keep an map of indentation => array of indent... | {
"end_byte": 1509,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/logger/indent.ts"
} |
angular-cli/packages/angular_devkit/core/src/logger/logger.ts_0_5295 | /**
* @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 { EMPTY, Observable, Operator, PartialObserver, Subject, Subscription } from 'rxjs';
import { JsonObject } fr... | {
"end_byte": 5295,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/logger/logger.ts"
} |
angular-cli/packages/angular_devkit/core/src/logger/indent_spec.ts_0_1514 | /**
* @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 @typescript-eslint/no-explicit-any */
import { lastValueFrom, toArray } from 'rxjs';
import { Inde... | {
"end_byte": 1514,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/logger/indent_spec.ts"
} |
angular-cli/packages/angular_devkit/core/src/logger/null-logger_spec.ts_0_1207 | /**
* @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 { lastValueFrom, toArray } from 'rxjs';
import { LogEntry, Logger } from './logger';
import { NullLogger } fr... | {
"end_byte": 1207,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/logger/null-logger_spec.ts"
} |
angular-cli/packages/angular_devkit/core/src/logger/index.ts_0_348 | /**
* @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 './indent';
export * from './level';
export * from './logger';
export * from './null-logger';
export *... | {
"end_byte": 348,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/logger/index.ts"
} |
angular-cli/packages/angular_devkit/core/src/logger/transform-logger.ts_0_558 | /**
* @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 { Observable } from 'rxjs';
import { LogEntry, Logger } from './logger';
export class TransformLogger extend... | {
"end_byte": 558,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/logger/transform-logger.ts"
} |
angular-cli/packages/angular_devkit/core/src/logger/transform-logger_spec.ts_0_1093 | /**
* @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 @typescript-eslint/no-explicit-any */
import { filter, lastValueFrom, map, toArray } from 'rxjs';
... | {
"end_byte": 1093,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/logger/transform-logger_spec.ts"
} |
angular-cli/packages/angular_devkit/core/src/workspace/core.ts_0_5015 | /**
* @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 { basename, getSystemPath, join, normalize } from '../virtual-fs';
import { WorkspaceDefinition } from './def... | {
"end_byte": 5015,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/workspace/core.ts"
} |
angular-cli/packages/angular_devkit/core/src/workspace/core_spec.ts_0_8638 | /**
* @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 @typescript-eslint/no-empty-function */
import { getSystemPath, join, normalize } from '../virtual... | {
"end_byte": 8638,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/workspace/core_spec.ts"
} |
angular-cli/packages/angular_devkit/core/src/workspace/host_spec.ts_0_1798 | /**
* @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 { test } from '../virtual-fs/host';
import { WorkspaceHost, createWorkspaceHost } from './host';
describe('c... | {
"end_byte": 1798,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/workspace/host_spec.ts"
} |
angular-cli/packages/angular_devkit/core/src/workspace/definitions_spec.ts_0_7786 | /**
* @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 {
ProjectDefinition,
ProjectDefinitionCollection,
TargetDefinition,
TargetDefinitionCollection,
} fro... | {
"end_byte": 7786,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/workspace/definitions_spec.ts"
} |
angular-cli/packages/angular_devkit/core/src/workspace/host.ts_0_1575 | /**
* @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 { lastValueFrom } from 'rxjs';
import { normalize, virtualFs } from '../virtual-fs';
export interface Worksp... | {
"end_byte": 1575,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/workspace/host.ts"
} |
angular-cli/packages/angular_devkit/core/src/workspace/index.ts_0_374 | /**
* @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 './definitions';
export { type WorkspaceHost, createWorkspaceHost } from './host';
export { WorkspaceF... | {
"end_byte": 374,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/workspace/index.ts"
} |
angular-cli/packages/angular_devkit/core/src/workspace/definitions.ts_0_5924 | /**
* @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 { JsonValue } from '../json';
export interface WorkspaceDefinition {
readonly extensions: Record<string, J... | {
"end_byte": 5924,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/workspace/definitions.ts"
} |
angular-cli/packages/angular_devkit/core/src/workspace/json/utilities.ts_0_4586 | /**
* @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 { JsonArray, JsonObject, JsonValue, isJsonObject } from '../../json';
export type ChangeListener = (path: st... | {
"end_byte": 4586,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/workspace/json/utilities.ts"
} |
angular-cli/packages/angular_devkit/core/src/workspace/json/writer.ts_0_5534 | /**
* @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 { applyEdits, modify } from 'jsonc-parser';
import { EOL } from 'node:os';
import { JsonObject, JsonValue } f... | {
"end_byte": 5534,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/workspace/json/writer.ts"
} |
angular-cli/packages/angular_devkit/core/src/workspace/json/reader_spec.ts_0_4641 | /**
* @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 @typescript-eslint/no-non-null-assertion */
import { readFileSync } from 'fs';
import { JsonObject... | {
"end_byte": 4641,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/workspace/json/reader_spec.ts"
} |
angular-cli/packages/angular_devkit/core/src/workspace/json/reader_spec.ts_4643_11758 | describe('JSON WorkspaceDefinition Tracks Workspace Changes', () => {
it('tracks basic extension additions', async () => {
const host = createTestHost(basicFile);
const workspace = await readJsonWorkspace('', host);
workspace.extensions['x-baz'] = 101;
expect(workspace.extensions['x-baz']).toBe(101)... | {
"end_byte": 11758,
"start_byte": 4643,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/workspace/json/reader_spec.ts"
} |
angular-cli/packages/angular_devkit/core/src/workspace/json/reader_spec.ts_11762_19370 | it('tracks add and remove of an existing extension object', async () => {
const host = createTestHost(basicFile);
const workspace = await readJsonWorkspace('basic', host);
workspace.extensions['schematics2'] = workspace.extensions['schematics'];
expect(workspace.extensions['schematics']).toEqual({
... | {
"end_byte": 19370,
"start_byte": 11762,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/workspace/json/reader_spec.ts"
} |
angular-cli/packages/angular_devkit/core/src/workspace/json/reader_spec.ts_19372_22800 | describe('JSON ProjectDefinition Tracks Project Changes', () => {
it('tracks property changes', async () => {
const host = createTestHost(representativeFile);
const workspace = await readJsonWorkspace('', host);
const project = workspace.projects.get('my-app');
expect(project).not.toBeUndefined();
... | {
"end_byte": 22800,
"start_byte": 19372,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/workspace/json/reader_spec.ts"
} |
angular-cli/packages/angular_devkit/core/src/workspace/json/reader.ts_0_5673 | /**
* @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 { Node, findNodeAtLocation, getNodeValue, parseTree } from 'jsonc-parser';
import { JsonValue, isJsonObject }... | {
"end_byte": 5673,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/workspace/json/reader.ts"
} |
angular-cli/packages/angular_devkit/core/src/workspace/json/reader.ts_5675_9984 | function parseProject(
projectName: string,
projectNode: Node,
context: ParserContext,
): ProjectDefinition {
const jsonMetadata = context.metadata;
let targets;
let hasTargets = false;
let extensions: Record<string, JsonValue> | undefined;
let properties: Record<'root' | 'sourceRoot' | 'prefix', string... | {
"end_byte": 9984,
"start_byte": 5675,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/workspace/json/reader.ts"
} |
angular-cli/packages/angular_devkit/core/src/workspace/json/metadata.ts_0_2446 | /**
* @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 { JSONPath, Node, findNodeAtLocation, getNodeValue } from 'jsonc-parser';
import { JsonValue } from '../../js... | {
"end_byte": 2446,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/workspace/json/metadata.ts"
} |
angular-cli/packages/angular_devkit/core/src/workspace/json/writer_spec.ts_0_1517 | /**
* @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 { readFileSync } from 'fs';
import { join } from 'path';
import { JsonArray, JsonObject } from '../../json';
... | {
"end_byte": 1517,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/workspace/json/writer_spec.ts"
} |
angular-cli/packages/angular_devkit/core/src/workspace/json/writer_spec.ts_1519_10480 | describe('writeJsonWorkpaceFile', () => {
it('does not modify a file without changes', async () => {
const host = {
async readFile() {
return representativeFile;
},
async writeFile() {
fail();
},
async isFile() {
return true;
},
async isDirectory()... | {
"end_byte": 10480,
"start_byte": 1519,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/workspace/json/writer_spec.ts"
} |
angular-cli/packages/angular_devkit/core/src/workspace/json/writer_spec.ts_10484_18418 | it('supports pushing to an existing array', async () => {
const host = createTestCaseHost(basicFile);
const workspace = await readJsonWorkspace('', host);
const array = (workspace.extensions['x-foo'] as JsonObject)['is'] as JsonArray;
array.push('value');
await writeJsonWorkspace(workspace, host, ... | {
"end_byte": 18418,
"start_byte": 10484,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/workspace/json/writer_spec.ts"
} |
angular-cli/packages/angular_devkit/core/src/utils/strings.ts_0_5264 | /**
* @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
*/
const STRING_DASHERIZE_REGEXP = /[ _]/g;
const STRING_DECAMELIZE_REGEXP = /([a-z\d])([A-Z])/g;
const STRING_CAMELIZE... | {
"end_byte": 5264,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/utils/strings.ts"
} |
angular-cli/packages/angular_devkit/core/src/utils/object_spec.ts_0_1691 | /**
* @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 @typescript-eslint/no-explicit-any */
import { deepCopy } from './object';
describe('object', () ... | {
"end_byte": 1691,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/utils/object_spec.ts"
} |
angular-cli/packages/angular_devkit/core/src/utils/template.ts_0_6449 | /**
* @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 { Position, SourceNode } from 'source-map';
// Matches <%= expr %>. This does not support structural JavaScr... | {
"end_byte": 6449,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/utils/template.ts"
} |
angular-cli/packages/angular_devkit/core/src/utils/template.ts_6450_12227 | function templateWithSourceMap(ast: TemplateAst, options?: TemplateOptions): string {
const sourceUrl = ast.fileName;
const module = options && options.module ? 'module.exports.default =' : '';
const reHtmlEscape = reUnescapedHtml.source.replace(/[']/g, "\\\\\\'");
const preamble = new SourceNode(1, 0, sourceU... | {
"end_byte": 12227,
"start_byte": 6450,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/utils/template.ts"
} |
angular-cli/packages/angular_devkit/core/src/utils/partially-ordered-set.ts_0_3839 | /**
* @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 { BaseException } from '../exception';
export class DependencyNotFoundException extends BaseException {
co... | {
"end_byte": 3839,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/utils/partially-ordered-set.ts"
} |
angular-cli/packages/angular_devkit/core/src/utils/priority-queue_spec.ts_0_479 | /**
* @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 { PriorityQueue } from './priority-queue';
describe('PriorityQueue', () => {
it('adds an item', () => {
... | {
"end_byte": 479,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/utils/priority-queue_spec.ts"
} |
angular-cli/packages/angular_devkit/core/src/utils/literals.ts_0_2183 | /**
* @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 interface TemplateTag<R = string> {
// Any is the only way here.
// eslint-disable-next-line @typescript-... | {
"end_byte": 2183,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/utils/literals.ts"
} |
angular-cli/packages/angular_devkit/core/src/utils/priority-queue.ts_0_1063 | /**
* @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
*/
/** Naive priority queue; not intended for large datasets */
export class PriorityQueue<T> {
private _items = new ... | {
"end_byte": 1063,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/utils/priority-queue.ts"
} |
angular-cli/packages/angular_devkit/core/src/utils/partially-ordered-set_spec.ts_0_1014 | /**
* @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 { PartiallyOrderedSet } from './partially-ordered-set';
describe('PartiallyOrderedSet', () => {
it('can ad... | {
"end_byte": 1014,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/utils/partially-ordered-set_spec.ts"
} |
angular-cli/packages/angular_devkit/core/src/utils/object.ts_0_1178 | /**
* @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
*/
const copySymbol = Symbol();
export function deepCopy<T>(value: T): T {
if (Array.isArray(value)) {
return va... | {
"end_byte": 1178,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/utils/object.ts"
} |
angular-cli/packages/angular_devkit/core/src/utils/index.ts_0_459 | /**
* @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 tags from './literals';
import * as strings from './strings';
export * from './object';
export * from '... | {
"end_byte": 459,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/utils/index.ts"
} |
angular-cli/packages/angular_devkit/core/src/utils/literals_spec.ts_0_1210 | /**
* @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 { oneLine, stripIndent, stripIndents, trimNewlines } from './literals';
describe('literals', () => {
descr... | {
"end_byte": 1210,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/utils/literals_spec.ts"
} |
angular-cli/packages/angular_devkit/core/src/utils/lang.ts_0_590 | /**
* @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
*/
// Borrowed from @angular/core
/**
* Determine if the argument is shaped like a Promise
*/
// eslint-disable-next... | {
"end_byte": 590,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/utils/lang.ts"
} |
angular-cli/packages/angular_devkit/core/src/json/utils.ts_0_724 | /**
* @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-next-line @typescript-eslint/no-empty-interface
export interface JsonArray extends Array<JsonValue... | {
"end_byte": 724,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/json/utils.ts"
} |
angular-cli/packages/angular_devkit/core/src/json/index.ts_0_291 | /**
* @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 schema from './schema/index';
export * from './utils';
export { schema };
| {
"end_byte": 291,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/json/index.ts"
} |
angular-cli/packages/angular_devkit/core/src/json/schema/schema.ts_0_1668 | /**
* @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 { JsonObject, JsonValue, isJsonObject } from '../utils';
/**
* A specialized interface for JsonSchema (to c... | {
"end_byte": 1668,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/json/schema/schema.ts"
} |
angular-cli/packages/angular_devkit/core/src/json/schema/pointer.ts_0_1003 | /**
* @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 { JsonPointer } from './interface';
export function buildJsonPointer(fragments: string[]): JsonPointer {
r... | {
"end_byte": 1003,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/json/schema/pointer.ts"
} |
angular-cli/packages/angular_devkit/core/src/json/schema/visitor.ts_0_7420 | /**
* @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 {
Observable,
concat,
concatMap,
from,
ignoreElements,
isObservable,
mergeMap,
of as observab... | {
"end_byte": 7420,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/json/schema/visitor.ts"
} |
angular-cli/packages/angular_devkit/core/src/json/schema/registry_spec.ts_0_432 | /**
* @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 @typescript-eslint/no-explicit-any */
import { SchemaFormat } from './interface';
import { CoreSch... | {
"end_byte": 432,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/json/schema/registry_spec.ts"
} |
angular-cli/packages/angular_devkit/core/src/json/schema/registry_spec.ts_434_8926 | describe('CoreSchemaRegistry', () => {
it('works asynchronously', async () => {
const registry = new CoreSchemaRegistry();
registry.addPostTransform(addUndefinedDefaults);
const data: any = {};
const validator = await registry.compile({
properties: {
bool: { type: 'boolean' },
s... | {
"end_byte": 8926,
"start_byte": 434,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/json/schema/registry_spec.ts"
} |
angular-cli/packages/angular_devkit/core/src/json/schema/registry_spec.ts_8930_9857 | it('adds deprecated options usage', async () => {
const registry = new CoreSchemaRegistry();
const deprecatedMessages: string[] = [];
registry.useXDeprecatedProvider((m) => deprecatedMessages.push(m));
const data = {
foo: true,
bar: true,
bat: true,
};
const validator = await... | {
"end_byte": 9857,
"start_byte": 8930,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/json/schema/registry_spec.ts"
} |
angular-cli/packages/angular_devkit/core/src/json/schema/interface.ts_0_3453 | /**
* @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 { ErrorObject, Format } from 'ajv';
import { Observable, ObservableInput } from 'rxjs';
import { JsonArray, J... | {
"end_byte": 3453,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/json/schema/interface.ts"
} |
angular-cli/packages/angular_devkit/core/src/json/schema/utility.ts_0_2568 | /**
* @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 { JsonObject, isJsonArray, isJsonObject } from '../utils';
import { JsonSchema } from './schema';
const allT... | {
"end_byte": 2568,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/json/schema/utility.ts"
} |
angular-cli/packages/angular_devkit/core/src/json/schema/registry.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 Ajv, { SchemaObjCxt, ValidateFunction } from 'ajv';
import ajvAddFormats from 'ajv-formats';
import * as http... | {
"end_byte": 8284,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/json/schema/registry.ts"
} |
angular-cli/packages/angular_devkit/core/src/json/schema/registry.ts_8288_17423 | rivate async _compile(
schema: JsonSchema,
): Promise<
(data: JsonValue, options?: SchemaValidatorOptions) => Promise<SchemaValidatorResult>
> {
if (typeof schema === 'boolean') {
return async (data) => ({ success: schema, data });
}
const schemaInfo: SchemaInfo = {
smartDefaultReco... | {
"end_byte": 17423,
"start_byte": 8288,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/json/schema/registry.ts"
} |
angular-cli/packages/angular_devkit/core/src/json/schema/registry.ts_17427_20219 | rivate async _applyPrompts(data: JsonValue, prompts: Array<PromptDefinition>): Promise<void> {
const provider = this._promptProvider;
if (!provider) {
return;
}
const answers = await lastValueFrom(from(provider(prompts)));
for (const path in answers) {
const pathFragments = path.split('... | {
"end_byte": 20219,
"start_byte": 17427,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/json/schema/registry.ts"
} |
angular-cli/packages/angular_devkit/core/src/json/schema/transforms_spec.ts_0_7132 | /**
* @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 { CoreSchemaRegistry } from './registry';
import { addUndefinedDefaults } from './transforms';
describe('add... | {
"end_byte": 7132,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/json/schema/transforms_spec.ts"
} |
angular-cli/packages/angular_devkit/core/src/json/schema/index.ts_0_437 | /**
* @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 transforms from './transforms';
export * from './interface';
export * from './pointer';
export * from '... | {
"end_byte": 437,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/json/schema/index.ts"
} |
angular-cli/packages/angular_devkit/core/src/json/schema/visitor_spec.ts_0_4095 | /**
* @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 { Observable, from } from 'rxjs';
import { JsonObject, JsonValue } from '..';
import { visitJson } from './vi... | {
"end_byte": 4095,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/json/schema/visitor_spec.ts"
} |
angular-cli/packages/angular_devkit/core/src/json/schema/transforms.ts_0_2988 | /**
* @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 { JsonObject, JsonValue, isJsonArray, isJsonObject } from '../utils';
import { JsonPointer } from './interfac... | {
"end_byte": 2988,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/json/schema/transforms.ts"
} |
angular-cli/packages/angular_devkit/core/src/json/schema/prompt_spec.ts_0_3989 | /**
* @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 @typescript-eslint/no-explicit-any */
import { CoreSchemaRegistry } from './registry';
describe('... | {
"end_byte": 3989,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/json/schema/prompt_spec.ts"
} |
angular-cli/packages/angular_devkit/core/src/json/schema/prompt_spec.ts_3993_11489 | describe('with longhand', () => {
it('supports message option', async () => {
const registry = new CoreSchemaRegistry();
const data: any = {};
registry.usePromptProvider(async (definitions) => {
expect(definitions.length).toBe(1);
expect(definitions[0].message).toBe('test-message'... | {
"end_byte": 11489,
"start_byte": 3993,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/json/schema/prompt_spec.ts"
} |
angular-cli/packages/angular_devkit/core/src/virtual-fs/path.ts_0_7763 | /**
* @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 { BaseException } from '../exception';
import { TemplateTag } from '../utils/literals';
export class Invalid... | {
"end_byte": 7763,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/virtual-fs/path.ts"
} |
angular-cli/packages/angular_devkit/core/src/virtual-fs/index.ts_0_294 | /**
* @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 virtualFs from './host/index';
export * from './path';
export { virtualFs };
| {
"end_byte": 294,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/virtual-fs/index.ts"
} |
angular-cli/packages/angular_devkit/core/src/virtual-fs/path_spec.ts_0_5475 | /**
* @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 {
InvalidPathException,
Path,
PathFragment,
asWindowsPath,
basename,
dirname,
join,
normalize... | {
"end_byte": 5475,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/virtual-fs/path_spec.ts"
} |
angular-cli/packages/angular_devkit/core/src/virtual-fs/host/memory_spec.ts_0_5543 | /**
* @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 @typescript-eslint/no-non-null-assertion */
import { fragment, normalize } from '../path';
import ... | {
"end_byte": 5543,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/virtual-fs/host/memory_spec.ts"
} |
angular-cli/packages/angular_devkit/core/src/virtual-fs/host/record.ts_0_8387 | /**
* @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 {
EMPTY,
Observable,
concat,
concatMap,
map,
from as observableFrom,
of,
reduce,
switchMap,... | {
"end_byte": 8387,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/virtual-fs/host/record.ts"
} |
angular-cli/packages/angular_devkit/core/src/virtual-fs/host/record.ts_8391_12425 | override rename(from: Path, to: Path): Observable<void> {
return concat(this.exists(to), this.exists(from)).pipe(
toArray(),
switchMap(([existTo, existFrom]) => {
if (!existFrom) {
return throwError(new FileDoesNotExistException(from));
}
if (from === to) {
re... | {
"end_byte": 12425,
"start_byte": 8391,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/virtual-fs/host/record.ts"
} |
angular-cli/packages/angular_devkit/core/src/virtual-fs/host/resolver.ts_0_2059 | /**
* @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 { Observable } from 'rxjs';
import { Path, PathFragment } from '../path';
import {
FileBuffer,
Host,
Ho... | {
"end_byte": 2059,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/virtual-fs/host/resolver.ts"
} |
angular-cli/packages/angular_devkit/core/src/virtual-fs/host/buffer.ts_0_671 | /**
* @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 { TextDecoder, TextEncoder } from 'node:util';
import { FileBuffer } from './interface';
export function str... | {
"end_byte": 671,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/virtual-fs/host/buffer.ts"
} |
angular-cli/packages/angular_devkit/core/src/virtual-fs/host/test.ts_0_4238 | /**
* @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 { Observable } from 'rxjs';
import { Path, PathFragment, join, normalize } from '../path';
import { fileBuffe... | {
"end_byte": 4238,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/virtual-fs/host/test.ts"
} |
angular-cli/packages/angular_devkit/core/src/virtual-fs/host/pattern.ts_0_1065 | /**
* @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 { parse as parseGlob } from 'picomatch';
import { Path } from '../path';
import { ResolverHost } from './reso... | {
"end_byte": 1065,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/virtual-fs/host/pattern.ts"
} |
angular-cli/packages/angular_devkit/core/src/virtual-fs/host/scoped.ts_0_602 | /**
* @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 { NormalizedRoot, Path, join } from '../path';
import { Host } from './interface';
import { ResolverHost } fr... | {
"end_byte": 602,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/virtual-fs/host/scoped.ts"
} |
angular-cli/packages/angular_devkit/core/src/virtual-fs/host/test_spec.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
*/
import * as test from './test';
// Yes, we realize the irony of testing a test host.
describe('TestHost', () => {
... | {
"end_byte": 581,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/virtual-fs/host/test_spec.ts"
} |
angular-cli/packages/angular_devkit/core/src/virtual-fs/host/empty.ts_0_1086 | /**
* @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 { Observable, of, throwError } from 'rxjs';
import { FileDoesNotExistException } from '../../exception';
impo... | {
"end_byte": 1086,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/virtual-fs/host/empty.ts"
} |
angular-cli/packages/angular_devkit/core/src/virtual-fs/host/interface.ts_0_1819 | /**
* @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 { Observable } from 'rxjs';
import { Path, PathFragment } from '../path';
export type FileBuffer = ArrayBuff... | {
"end_byte": 1819,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/virtual-fs/host/interface.ts"
} |
angular-cli/packages/angular_devkit/core/src/virtual-fs/host/pattern_spec.ts_0_1477 | /**
* @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 { normalize } from '..';
import { stringToFileBuffer } from './buffer';
import { SimpleMemoryHost } from './m... | {
"end_byte": 1477,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/virtual-fs/host/pattern_spec.ts"
} |
angular-cli/packages/angular_devkit/core/src/virtual-fs/host/alias_spec.ts_0_2073 | /**
* @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 { normalize } from '..';
import { AliasHost } from './alias';
import { stringToFileBuffer } from './buffer';
... | {
"end_byte": 2073,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/virtual-fs/host/alias_spec.ts"
} |
angular-cli/packages/angular_devkit/core/src/virtual-fs/host/memory.ts_0_757 | /**
* @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 { Observable, Subject } from 'rxjs';
import {
FileAlreadyExistException,
FileDoesNotExistException,
Pat... | {
"end_byte": 757,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/virtual-fs/host/memory.ts"
} |
angular-cli/packages/angular_devkit/core/src/virtual-fs/host/memory.ts_759_9115 | export class SimpleMemoryHost implements Host<{}> {
protected _cache = new Map<Path, Stats<SimpleMemoryHostStats>>();
private _watchers = new Map<Path, [HostWatchOptions, Subject<HostWatchEvent>][]>();
protected _newDirStats() {
return {
inspect() {
return '<Directory>';
},
isFile(... | {
"end_byte": 9115,
"start_byte": 759,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/virtual-fs/host/memory.ts"
} |
angular-cli/packages/angular_devkit/core/src/virtual-fs/host/memory.ts_9119_10383 | rename(from: Path, to: Path): Observable<void> {
return new Observable<void>((obs) => {
this._rename(from, to);
obs.next();
obs.complete();
});
}
list(path: Path): Observable<PathFragment[]> {
return new Observable<PathFragment[]>((obs) => {
obs.next(this._list(path));
obs... | {
"end_byte": 10383,
"start_byte": 9119,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/virtual-fs/host/memory.ts"
} |
angular-cli/packages/angular_devkit/core/src/virtual-fs/host/index.ts_0_566 | /**
* @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 test from './test';
export * from './alias';
export * from './buffer';
export * from './create';
export... | {
"end_byte": 566,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/virtual-fs/host/index.ts"
} |
angular-cli/packages/angular_devkit/core/src/virtual-fs/host/create.ts_0_2225 | /**
* @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 { Observable } from 'rxjs';
import { Path, PathFragment } from '../path';
import { FileBuffer, FileBufferLike... | {
"end_byte": 2225,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/virtual-fs/host/create.ts"
} |
angular-cli/packages/angular_devkit/core/src/virtual-fs/host/safe.ts_0_1593 | /**
* @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 { Observable, catchError, of } from 'rxjs';
import { Path, PathFragment } from '../path';
import { FileBuffer... | {
"end_byte": 1593,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/virtual-fs/host/safe.ts"
} |
angular-cli/packages/angular_devkit/core/src/virtual-fs/host/alias.ts_0_3264 | /**
* @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 { NormalizedRoot, Path, PathFragment, join, split } from '../path';
import { ResolverHost } from './resolver'... | {
"end_byte": 3264,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/virtual-fs/host/alias.ts"
} |
angular-cli/packages/angular_devkit/core/src/virtual-fs/host/record_spec.ts_0_407 | /**
* @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 @typescript-eslint/no-explicit-any */
import { path } from '../path';
import { stringToFileBuffer ... | {
"end_byte": 407,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/virtual-fs/host/record_spec.ts"
} |
angular-cli/packages/angular_devkit/core/src/virtual-fs/host/record_spec.ts_409_8375 | describe('CordHost', () => {
const TestHost = test.TestHost;
const mutatingTestRecord = ['write', 'delete', 'rename'];
it('works (create)', (done) => {
const base = new TestHost({
'/hello': 'world',
});
const host = new CordHost(base);
host.write(path`/blue`, stringToFileBuffer(`hi`)).subs... | {
"end_byte": 8375,
"start_byte": 409,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/virtual-fs/host/record_spec.ts"
} |
angular-cli/packages/angular_devkit/core/src/virtual-fs/host/record_spec.ts_8379_16185 | it('works (overwrite -> rename)', (done) => {
const base = new TestHost({
'/hello': 'world',
});
const host = new CordHost(base);
host.write(path`/hello`, stringToFileBuffer(`beautiful world`)).subscribe(undefined, done.fail);
host.rename(path`/hello`, path`/blue`).subscribe(undefined, done.f... | {
"end_byte": 16185,
"start_byte": 8379,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/virtual-fs/host/record_spec.ts"
} |
angular-cli/packages/angular_devkit/core/src/virtual-fs/host/sync.ts_0_3268 | /**
* @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 { Observable } from 'rxjs';
import { BaseException } from '../../exception';
import { Path, PathFragment } fr... | {
"end_byte": 3268,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/virtual-fs/host/sync.ts"
} |
angular-cli/packages/angular_devkit/build_angular/README.md_0_3551 | # @angular-devkit/build-angular
This package contains [Architect builders](/packages/angular_devkit/architect/README.md) used to build and test Angular applications and libraries.
## Builders
| Name | Description ... | {
"end_byte": 3551,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/build_angular/README.md"
} |
angular-cli/packages/angular_devkit/build_angular/BUILD.bazel_0_7920 | # 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": 7920,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/build_angular/BUILD.bazel"
} |
angular-cli/packages/angular_devkit/build_angular/BUILD.bazel_7922_12548 | ts_library(
name = "build_angular_test_utils",
testonly = True,
srcs = glob(
include = [
"src/testing/**/*.ts",
"src/**/tests/*.ts",
],
exclude = [
"src/**/*_spec.ts",
],
),
data = glob(["test/**/*"]),
tsconfig = "//:tsconfig-te... | {
"end_byte": 12548,
"start_byte": 7922,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/build_angular/BUILD.bazel"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.