_id stringlengths 21 254 | text stringlengths 1 93.7k | metadata dict |
|---|---|---|
angular-cli/packages/angular_devkit/architect/node/node-modules-architect-host.ts_10669_11819 | async function getBuilder(builderPath: string): Promise<any> {
switch (path.extname(builderPath)) {
case '.mjs':
// Load the ESM configuration file using the TypeScript dynamic import workaround.
// Once TypeScript provides support for keeping the dynamic import this workaround can be
// changed... | {
"end_byte": 11819,
"start_byte": 10669,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/architect/node/node-modules-architect-host.ts"
} |
angular-cli/packages/angular_devkit/architect/node/jobs/job-registry_spec.ts_0_788 | /**
* @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 { jobs } from '@angular-devkit/architect';
import * as path from 'path';
import { lastValueFrom } from 'rxjs'... | {
"end_byte": 788,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/architect/node/jobs/job-registry_spec.ts"
} |
angular-cli/packages/angular_devkit/architect/node/jobs/job-registry.ts_0_2086 | /**
* @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 { jobs } from '@angular-devkit/architect';
import { JsonValue, schema } from '@angular-devkit/core';
import {... | {
"end_byte": 2086,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/architect/node/jobs/job-registry.ts"
} |
angular-cli/packages/angular_devkit/architect/src/api_spec.ts_0_1867 | /**
* @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 { Target, targetFromTargetString, targetStringFromTarget } from './api';
describe('Architect API', () => {
... | {
"end_byte": 1867,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/architect/src/api_spec.ts"
} |
angular-cli/packages/angular_devkit/architect/src/options_spec.ts_0_1361 | /**
* @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 { mergeOptions } from './options';
describe('mergeOptions', () => {
it('overwrites literal values', () => ... | {
"end_byte": 1361,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/architect/src/options_spec.ts"
} |
angular-cli/packages/angular_devkit/architect/src/create-builder.ts_0_8636 | /**
* @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 { json, logging } from '@angular-devkit/core';
import {
Observable,
Subscription,
defaultIfEmpty,
fir... | {
"end_byte": 8636,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/architect/src/create-builder.ts"
} |
angular-cli/packages/angular_devkit/architect/src/api.ts_0_4532 | /**
* @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 { json, logging } from '@angular-devkit/core';
import { Observable, ObservableInput, Subscriber, from, switch... | {
"end_byte": 4532,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/architect/src/api.ts"
} |
angular-cli/packages/angular_devkit/architect/src/api.ts_4533_13061 | export interface BuilderContext {
/**
* Unique amongst contexts. Contexts instances are not guaranteed to be the same (but it could
* be the same context), and all the fields in a context could be the same, yet the builder's
* context could be different. This is the same ID as the corresponding run.
*/
... | {
"end_byte": 13061,
"start_byte": 4533,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/architect/src/api.ts"
} |
angular-cli/packages/angular_devkit/architect/src/api.ts_13063_14609 | /**
* Schedule a target, and forget about its run. This will return an observable of outputs, that
* as a teardown will stop the target from running. This means that the Run object this returns
* should not be shared.
*
* The reason this is not part of the Context interface is to keep the Context as normal form as... | {
"end_byte": 14609,
"start_byte": 13063,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/architect/src/api.ts"
} |
angular-cli/packages/angular_devkit/architect/src/architect.ts_0_8625 | /**
* @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 { json, logging } from '@angular-devkit/core';
import {
Observable,
concatMap,
first,
from,
ignoreE... | {
"end_byte": 8625,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/architect/src/architect.ts"
} |
angular-cli/packages/angular_devkit/architect/src/architect.ts_8627_12375 | function _getBuilderNameForTargetFactory(host: ArchitectHost) {
return createJobHandler<Target, never, string>(
async (target) => {
const builderName = await host.getBuilderNameForTarget(target);
if (!builderName) {
throw new Error(`No builder were found for target ${targetStringFromTarget(tar... | {
"end_byte": 12375,
"start_byte": 8627,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/architect/src/architect.ts"
} |
angular-cli/packages/angular_devkit/architect/src/index.ts_0_391 | /**
* @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 jobs from './jobs';
export * from './api';
export { Architect, type ScheduleOptions } from './architect... | {
"end_byte": 391,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/architect/src/index.ts"
} |
angular-cli/packages/angular_devkit/architect/src/index_spec.ts_0_641 | /**
* @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 { json, logging, schema } from '@angular-devkit/core';
import { firstValueFrom, lastValueFrom, map, take, tap... | {
"end_byte": 641,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/architect/src/index_spec.ts"
} |
angular-cli/packages/angular_devkit/architect/src/index_spec.ts_643_8913 | describe('architect', () => {
let testArchitectHost: TestingArchitectHost;
let architect: Architect;
let called = 0;
let options: {} = {};
const target1 = {
project: 'test',
target: 'test',
};
const target2 = {
project: 'test',
target: 'abc',
};
beforeEach(async () => {
const regi... | {
"end_byte": 8913,
"start_byte": 643,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/architect/src/index_spec.ts"
} |
angular-cli/packages/angular_devkit/architect/src/index_spec.ts_8917_12547 | it('exposes getTargetOptions() properly', async () => {
const goldenOptions = {
value: 'value',
};
let options = {} as object;
const target = {
project: 'project',
target: 'target',
};
testArchitectHost.addTarget(target, 'package:target', goldenOptions);
testArchitectHost... | {
"end_byte": 12547,
"start_byte": 8917,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/architect/src/index_spec.ts"
} |
angular-cli/packages/angular_devkit/architect/src/internal.ts_0_3357 | /**
* @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 { json } from '@angular-devkit/core';
import { BuilderInfo, BuilderInput, BuilderOutput, Target } from './api... | {
"end_byte": 3357,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/architect/src/internal.ts"
} |
angular-cli/packages/angular_devkit/architect/src/schedule-by-name.ts_0_3738 | /**
* @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 { json, logging } from '@angular-devkit/core';
import {
EMPTY,
Subscription,
catchError,
first,
fir... | {
"end_byte": 3738,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/architect/src/schedule-by-name.ts"
} |
angular-cli/packages/angular_devkit/architect/src/options.ts_0_923 | /**
* @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 { json } from '@angular-devkit/core';
import { BuilderInput } from './api';
type OverrideOptions = BuilderI... | {
"end_byte": 923,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/architect/src/options.ts"
} |
angular-cli/packages/angular_devkit/architect/src/jobs/architecture.md_0_5936 | # Overview
Jobs is a high-order API that adds inputs, runtime type checking, sequencing, and other
functionality on top of RxJS' `Observable`s.
# Background
An `Observable` (at a higher level) is a function that receives a `Subscriber`, and outputs
multiple values, and finishes once it calls the `Subscriber.prototyp... | {
"end_byte": 5936,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/architect/src/jobs/architecture.md"
} |
angular-cli/packages/angular_devkit/architect/src/jobs/architecture.md_5936_9957 | # Higher Order Jobs
Because jobs are expected to be pure functions, they can be composed or transformed to create
more complex behaviour, similar to how RxJS operators can transform observables.
```javascript
// Runs a job on the hour, every hour, regardless of how long the job takes.
// This creates a job function t... | {
"end_byte": 9957,
"start_byte": 5936,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/architect/src/jobs/architecture.md"
} |
angular-cli/packages/angular_devkit/architect/src/jobs/simple-registry_spec.ts_0_909 | /**
* @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 { createJobHandler } from './create-job-handler';
import { SimpleJobReg... | {
"end_byte": 909,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/architect/src/jobs/simple-registry_spec.ts"
} |
angular-cli/packages/angular_devkit/architect/src/jobs/simple-registry.ts_0_4821 | /**
* @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, schema } from '@angular-devkit/core';
import { Observable, of } from 'rxjs';
import { JobDescrip... | {
"end_byte": 4821,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/architect/src/jobs/simple-registry.ts"
} |
angular-cli/packages/angular_devkit/architect/src/jobs/strategy_spec.ts_0_6059 | /**
* @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 { promisify } from 'util';
import { JobState } from './api';
import { createJobHandler } from './create-job-h... | {
"end_byte": 6059,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/architect/src/jobs/strategy_spec.ts"
} |
angular-cli/packages/angular_devkit/architect/src/jobs/strategy_spec.ts_6061_8764 | describe('strategy.memoize()', () => {
let registry: SimpleJobRegistry;
let scheduler: SimpleScheduler;
beforeEach(() => {
registry = new SimpleJobRegistry();
scheduler = new SimpleScheduler(registry);
});
it('works', async () => {
let started = 0;
let finished = 0;
registry.register(
... | {
"end_byte": 8764,
"start_byte": 6061,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/architect/src/jobs/strategy_spec.ts"
} |
angular-cli/packages/angular_devkit/architect/src/jobs/api.ts_0_8102 | /**
* @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, schema } from '@angular-devkit/core';
import { Observable, Observer } from 'rxjs';
i... | {
"end_byte": 8102,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/architect/src/jobs/api.ts"
} |
angular-cli/packages/angular_devkit/architect/src/jobs/api.ts_8103_12563 | export interface Job<
ArgumentT extends JsonValue = JsonValue,
InputT extends JsonValue = JsonValue,
OutputT extends JsonValue = JsonValue,
> {
/**
* Description of the job. Resolving the job's description can be done asynchronously, so this
* is an observable that will resolve when it's ready.
*/
re... | {
"end_byte": 12563,
"start_byte": 8103,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/architect/src/jobs/api.ts"
} |
angular-cli/packages/angular_devkit/architect/src/jobs/simple-scheduler_spec.ts_0_7243 | /**
* @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 { EMPTY, Observable, lastValueFrom, map, of, ta... | {
"end_byte": 7243,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/architect/src/jobs/simple-scheduler_spec.ts"
} |
angular-cli/packages/angular_devkit/architect/src/jobs/simple-scheduler_spec.ts_7247_14545 | it('can be paused', async () => {
let resume: (() => void) | null = null;
registry.register(
'job',
createJobHandler((argument, context) => {
return Promise.resolve()
.then(() => {
expect(resume).toBeNull();
resume = context.scheduler.pause();
})
... | {
"end_byte": 14545,
"start_byte": 7247,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/architect/src/jobs/simple-scheduler_spec.ts"
} |
angular-cli/packages/angular_devkit/architect/src/jobs/simple-scheduler_spec.ts_14549_20131 | describe('lifecycle messages', () => {
it('sequences double start once', async () => {
const fn = (_: never, { description }: JobHandlerContext) => {
return new Observable<JobOutboundMessage<never>>((observer) => {
observer.next({ kind: JobOutboundMessageKind.Start, description });
... | {
"end_byte": 20131,
"start_byte": 14549,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/architect/src/jobs/simple-scheduler_spec.ts"
} |
angular-cli/packages/angular_devkit/architect/src/jobs/README.md_0_5517 | # Description
Jobs is the Angular DevKit subsystem for scheduling and running generic functions with clearly
typed inputs and outputs. A `Job` instance is a function associated with metadata. You can
schedule a job, synchronize it with other jobs, and use it to schedule other jobs.
The whole API is serializable, allo... | {
"end_byte": 5517,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/architect/src/jobs/README.md"
} |
angular-cli/packages/angular_devkit/architect/src/jobs/README.md_5517_13076 | # Creating Jobs
A job is at its core a function with a description object attached to it. The description object
stores the JSON schemas used to validate the types of the argument passed in, the input and
output values. By default, a job accepts and can output any JSON object.
```typescript
import { Observable } from... | {
"end_byte": 13076,
"start_byte": 5517,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/architect/src/jobs/README.md"
} |
angular-cli/packages/angular_devkit/architect/src/jobs/README.md_13076_21254 | ## Execution Strategy
Jobs are always run in parallel and will always start, but many helper functions are provided
when creating a job to help you control the execution strategy;
1. `serialize()`. Multiple runs of this job will be queued with each others.
1. `memoize(replayMessages = false)` will create a job, or re... | {
"end_byte": 21254,
"start_byte": 13076,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/architect/src/jobs/README.md"
} |
angular-cli/packages/angular_devkit/architect/src/jobs/types.ts_0_649 | /**
* @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 type DeepReadonly<T> = T extends (infer R)[]
? DeepReadonlyArray<R>
: T extends Function
? T
: T ... | {
"end_byte": 649,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/architect/src/jobs/types.ts"
} |
angular-cli/packages/angular_devkit/architect/src/jobs/strategy.ts_0_4482 | /**
* @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 '@angular-devkit/core';
import {
Observable,
Subject,
conc... | {
"end_byte": 4482,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/architect/src/jobs/strategy.ts"
} |
angular-cli/packages/angular_devkit/architect/src/jobs/simple-scheduler.ts_0_8220 | /**
* @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, schema } from '@angular-devkit/core';
import {
EMPTY,
MonoTypeOperatorFunction,
Observable... | {
"end_byte": 8220,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/architect/src/jobs/simple-scheduler.ts"
} |
angular-cli/packages/angular_devkit/architect/src/jobs/simple-scheduler.ts_8223_16739 | private _createJob<A extends MinimumArgumentT, I extends MinimumInputT, O extends MinimumOutputT>(
name: JobName,
argument: A,
handler: Observable<JobHandlerWithExtra | null>,
inboundBus: Observer<JobInboundMessage<I>>,
outboundBus: Observable<JobOutboundMessage<O>>,
): Job<A, I, O> {
const sc... | {
"end_byte": 16739,
"start_byte": 8223,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/architect/src/jobs/simple-scheduler.ts"
} |
angular-cli/packages/angular_devkit/architect/src/jobs/create-job-handler.ts_0_7196 | /**
* @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, JsonValue, isPromise, logging } from '@angular-devkit/core';
import {
Observable,
Observ... | {
"end_byte": 7196,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/architect/src/jobs/create-job-handler.ts"
} |
angular-cli/packages/angular_devkit/architect/src/jobs/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 strategy from './strategy';
export * from './api';
export * from './create-job-handler';
export * from ... | {
"end_byte": 494,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/architect/src/jobs/index.ts"
} |
angular-cli/packages/angular_devkit/architect/src/jobs/fallback-registry.ts_0_1344 | /**
* @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 '@angular-devkit/core';
import { Observable, concatMap, first, from } from 'rxjs';
import ... | {
"end_byte": 1344,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/architect/src/jobs/fallback-registry.ts"
} |
angular-cli/packages/angular_devkit/architect/src/jobs/exception.ts_0_627 | /**
* @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 '@angular-devkit/core';
import { JobName } from './api';
export class JobNameAlreadyR... | {
"end_byte": 627,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/architect/src/jobs/exception.ts"
} |
angular-cli/packages/angular_devkit/architect/src/jobs/dispatcher_spec.ts_0_1401 | /**
* @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 '@angular-devkit/core';
import { lastValueFrom } from 'rxjs';
import { JobHandler } from '... | {
"end_byte": 1401,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/architect/src/jobs/dispatcher_spec.ts"
} |
angular-cli/packages/angular_devkit/architect/src/jobs/dispatcher.ts_0_2770 | /**
* @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 '@angular-devkit/core';
import { Job, JobDescription, JobHandler, JobHandlerContext, JobNa... | {
"end_byte": 2770,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/architect/src/jobs/dispatcher.ts"
} |
angular-cli/packages/angular_devkit/build_webpack/README.md_0_956 | # Webpack Builder for Architect
This package allows you to run Webpack and Webpack Dev Server using Architect.
To use it on your Angular CLI app, follow these steps:
- run `npm install @angular-devkit/build-webpack`.
- create a webpack configuration.
- add the following targets inside `angular.json`.
```
"project... | {
"end_byte": 956,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/build_webpack/README.md"
} |
angular-cli/packages/angular_devkit/build_webpack/BUILD.bazel_0_3516 | # 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": 3516,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/build_webpack/BUILD.bazel"
} |
angular-cli/packages/angular_devkit/build_webpack/test/basic-app/webpack.config.cjs_0_563 | const path = require('path');
module.exports = {
mode: 'development',
entry: path.resolve(__dirname, './src/main.js'),
module: {
rules: [
// rxjs 6 requires directory imports which are not support in ES modules.
// Disabling `fullySpecified` allows Webpack to ignore this but this is
// not ... | {
"end_byte": 563,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/build_webpack/test/basic-app/webpack.config.cjs"
} |
angular-cli/packages/angular_devkit/build_webpack/test/basic-app/webpack.config.mjs_0_634 | import { resolve } from 'path';
import { fileURLToPath } from 'url';
export default {
mode: 'development',
entry: resolve(fileURLToPath(import.meta.url), '../src/main.js'),
module: {
rules: [
// rxjs 6 requires directory imports which are not support in ES modules.
// Disabling `fullySpecified` a... | {
"end_byte": 634,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/build_webpack/test/basic-app/webpack.config.mjs"
} |
angular-cli/packages/angular_devkit/build_webpack/test/basic-app/src/main.js_0_28 | console.log('hello world');
| {
"end_byte": 28,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/build_webpack/test/basic-app/src/main.js"
} |
angular-cli/packages/angular_devkit/build_webpack/test/angular-app/webpack.config.js_0_1199 | const ngToolsWebpack = require('@ngtools/webpack');
const path = require('path');
const workspaceRoot = path.resolve(__dirname, './');
const projectRoot = path.resolve(__dirname, './');
module.exports = {
mode: 'development',
resolve: {
extensions: ['.ts', '.js'],
},
entry: {
main: path.resolve(projec... | {
"end_byte": 1199,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/build_webpack/test/angular-app/webpack.config.js"
} |
angular-cli/packages/angular_devkit/build_webpack/test/angular-app/src/main.ts_0_419 | /**
* @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 { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from './app/app.mod... | {
"end_byte": 419,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/build_webpack/test/angular-app/src/main.ts"
} |
angular-cli/packages/angular_devkit/build_webpack/test/angular-app/src/polyfills.ts_0_1647 | /**
* @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
*/
/**
* This file includes polyfills needed by Angular and is loaded before the app.
* You can add your own extra po... | {
"end_byte": 1647,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/build_webpack/test/angular-app/src/polyfills.ts"
} |
angular-cli/packages/angular_devkit/build_webpack/test/angular-app/src/app/app.component.html_0_1214 | <!--The content below is only a placeholder and can be replaced.-->
<div style="text-align: center">
<h1>Welcome to {{ title }}!</h1>
<img
width="300"
alt="Angular Logo"
src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNTAgMjUwIj4KICAgIDxwYXRoIGZpbGw... | {
"end_byte": 1214,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/build_webpack/test/angular-app/src/app/app.component.html"
} |
angular-cli/packages/angular_devkit/build_webpack/test/angular-app/src/app/app.component.spec.ts_0_1119 | /**
* @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 { TestBed } from '@angular/core/testing';
import { AppComponent } from './app.component';
describe('AppCompon... | {
"end_byte": 1119,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/build_webpack/test/angular-app/src/app/app.component.spec.ts"
} |
angular-cli/packages/angular_devkit/build_webpack/test/angular-app/src/app/app.module.ts_0_502 | /**
* @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 { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppCo... | {
"end_byte": 502,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/build_webpack/test/angular-app/src/app/app.module.ts"
} |
angular-cli/packages/angular_devkit/build_webpack/test/angular-app/src/app/app.component.ts_0_433 | /**
* @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 { Component } from '@angular/core';
@Component({
selector: 'app-root',
standalone: false,
templateUrl:... | {
"end_byte": 433,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/build_webpack/test/angular-app/src/app/app.component.ts"
} |
angular-cli/packages/angular_devkit/build_webpack/src/utils.ts_0_3546 | /**
* @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 { existsSync } from 'fs';
import * as path from 'path';
import { URL, pathToFileURL } from 'url';
import { Co... | {
"end_byte": 3546,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/build_webpack/src/utils.ts"
} |
angular-cli/packages/angular_devkit/build_webpack/src/index.ts_0_332 | /**
* @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 './builders/webpack';
export * from './builders/webpack-dev-server';
export type { EmittedFiles } from... | {
"end_byte": 332,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/build_webpack/src/index.ts"
} |
angular-cli/packages/angular_devkit/build_webpack/src/builders/webpack/index.ts_0_3972 | /**
* @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, BuilderOutput, createBuilder } from '@angular-devkit/architect';
import { resolve as pathRe... | {
"end_byte": 3972,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/build_webpack/src/builders/webpack/index.ts"
} |
angular-cli/packages/angular_devkit/build_webpack/src/builders/webpack/index_spec.ts_0_4445 | /**
* @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 { Architect } from '@angular-devkit/architect';
import { WorkspaceNodeModulesArchitectHost } from '@angular-d... | {
"end_byte": 4445,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/build_webpack/src/builders/webpack/index_spec.ts"
} |
angular-cli/packages/angular_devkit/build_webpack/src/builders/webpack-dev-server/index.ts_0_4363 | /**
* @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, createBuilder } from '@angular-devkit/architect';
import { resolve as pathResolve } from 'p... | {
"end_byte": 4363,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/build_webpack/src/builders/webpack-dev-server/index.ts"
} |
angular-cli/packages/angular_devkit/build_webpack/src/builders/webpack-dev-server/index_spec.ts_0_2981 | /**
* @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 { Architect } from '@angular-devkit/architect';
import { WorkspaceNodeModulesArchitectHost } from '@angular-d... | {
"end_byte": 2981,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/build_webpack/src/builders/webpack-dev-server/index_spec.ts"
} |
angular-cli/packages/angular_devkit/schematics_cli/README.md_0_1519 | # Schematics CLI
This package contains the executable for running a [Schematic](/packages/angular_devkit/schematics/README.md).
# Usage
```
$ schematics [CollectionName:]SchematicName [options, ...]
By default, if the collection name is not specified, use the internal collection provided
by the Schematics CLI.
Opt... | {
"end_byte": 1519,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/schematics_cli/README.md"
} |
angular-cli/packages/angular_devkit/schematics_cli/BUILD.bazel_0_2907 | load("@npm//@bazel/jasmine:index.bzl", "jasmine_node_test")
load("//tools:defaults.bzl", "pkg_npm", "ts_library")
load("//tools:ts_json_schema.bzl", "ts_json_schema")
# 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 ... | {
"end_byte": 2907,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/schematics_cli/BUILD.bazel"
} |
angular-cli/packages/angular_devkit/schematics_cli/schematic/factory.ts_0_1427 | /**
* @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 { strings } from '@angular-devkit/core';
import {
Rule,
apply,
applyTemplates,
mergeWith,
move,
p... | {
"end_byte": 1427,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/schematics_cli/schematic/factory.ts"
} |
angular-cli/packages/angular_devkit/schematics_cli/schematic/files/README.md_0_639 | # Getting Started With Schematics
This repository is a basic Schematic implementation that serves as a starting point to create and publish Schematics to NPM.
### Testing
To test locally, install `@angular-devkit/schematics-cli` globally and use the `schematics` command line tool. That tool acts the same as the `gen... | {
"end_byte": 639,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/schematics_cli/schematic/files/README.md"
} |
angular-cli/packages/angular_devkit/schematics_cli/schematic/files/src/my-other-schematic/index.ts_0_1335 | import { Rule, SchematicContext, Tree, chain, schematic } from '@angular-devkit/schematics';
// A factory is a RuleFactory. It takes the options that might have been coming from the command
// line or another schematic. These can be defined in a schema.json, which will validate
export default function (options: any): ... | {
"end_byte": 1335,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/schematics_cli/schematic/files/src/my-other-schematic/index.ts"
} |
angular-cli/packages/angular_devkit/schematics_cli/schematic/files/src/my-other-schematic/index_spec.ts_0_519 | import { Tree } from '@angular-devkit/schematics';
import { SchematicTestRunner } from '@angular-devkit/schematics/testing';
import * as path from 'path';
const collectionPath = path.join(__dirname, '../collection.json');
describe('my-other-schematic', () => {
it('works', async () => {
const runner = new Schema... | {
"end_byte": 519,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/schematics_cli/schematic/files/src/my-other-schematic/index_spec.ts"
} |
angular-cli/packages/angular_devkit/schematics_cli/schematic/files/src/my-full-schematic/index.ts_0_2477 | import {
Rule,
SchematicContext,
Tree,
apply,
chain,
mergeWith,
schematic,
template,
url,
} from '@angular-devkit/schematics';
// Instead of `any`, it would make sense here to get a schema-to-dts package and output the
// interfaces so you get type-safe options.
export default function (options: any)... | {
"end_byte": 2477,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/schematics_cli/schematic/files/src/my-full-schematic/index.ts"
} |
angular-cli/packages/angular_devkit/schematics_cli/schematic/files/src/my-full-schematic/index_spec.ts_0_902 | import { Tree } from '@angular-devkit/schematics';
import { SchematicTestRunner } from '@angular-devkit/schematics/testing';
import * as path from 'path';
// SchematicTestRunner needs an absolute path to the collection to test.
const collectionPath = path.join(__dirname, '../collection.json');
describe('my-full-schem... | {
"end_byte": 902,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/schematics_cli/schematic/files/src/my-full-schematic/index_spec.ts"
} |
angular-cli/packages/angular_devkit/schematics_cli/schematic/files/src/my-full-schematic/files/test__INDEX___0_29 |
This is test #<%= INDEX %>.
| {
"end_byte": 29,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/schematics_cli/schematic/files/src/my-full-schematic/files/test__INDEX__"
} |
angular-cli/packages/angular_devkit/schematics_cli/schematic/files/src/my-full-schematic/files/test2_0_127 |
<% if (name) { %>
Hello <%= name %>, I'm a schematic.
<% } else { %>
Why don't you give me your name with --name?
<% } %>
| {
"end_byte": 127,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/schematics_cli/schematic/files/src/my-full-schematic/files/test2"
} |
angular-cli/packages/angular_devkit/schematics_cli/schematic/files/src/my-schematic/index.ts_0_1457 | import { Rule, SchematicContext, Tree } from '@angular-devkit/schematics';
// You don't have to export the function as default. You can also have more than one rule factory
// per file.
export function mySchematic(options: any): Rule {
return (tree: Tree, context: SchematicContext) => {
// Show the options for t... | {
"end_byte": 1457,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/schematics_cli/schematic/files/src/my-schematic/index.ts"
} |
angular-cli/packages/angular_devkit/schematics_cli/schematic/files/src/my-schematic/index_spec.ts_0_492 | import { Tree } from '@angular-devkit/schematics';
import { SchematicTestRunner } from '@angular-devkit/schematics/testing';
import * as path from 'path';
const collectionPath = path.join(__dirname, '../collection.json');
describe('my-schematic', () => {
it('works', async () => {
const runner = new SchematicTes... | {
"end_byte": 492,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/schematics_cli/schematic/files/src/my-schematic/index_spec.ts"
} |
angular-cli/packages/angular_devkit/schematics_cli/bin/schematics.ts_0_6375 | #!/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
*/
// symbol polyfill must go first
import 'symbol-observable';
import { JsonValue, logging, schema... | {
"end_byte": 6375,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/schematics_cli/bin/schematics.ts"
} |
angular-cli/packages/angular_devkit/schematics_cli/bin/schematics.ts_6376_14123 | export async function main({
args,
stdout = process.stdout,
stderr = process.stderr,
}: MainOptions): Promise<0 | 1> {
const { cliOptions, schematicOptions, _ } = parseArgs(args);
// Create a separate instance to prevent unintended global changes to the color configuration
const colors = ansiColors.create(... | {
"end_byte": 14123,
"start_byte": 6376,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/schematics_cli/bin/schematics.ts"
} |
angular-cli/packages/angular_devkit/schematics_cli/bin/schematics.ts_14124_15969 | function parseArgs(args: string[]): Options {
const { _, ...options } = yargsParser(args, {
boolean: booleanArgs as unknown as string[],
default: {
'interactive': true,
'debug': null,
'dry-run': null,
},
configuration: {
'dot-notation': false,
'boolean-negation': true,
... | {
"end_byte": 15969,
"start_byte": 14124,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/schematics_cli/bin/schematics.ts"
} |
angular-cli/packages/angular_devkit/schematics_cli/bin/schematics_spec.ts_0_2561 | /**
* @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 { main } from './schematics';
// We only care about the write method in these mocks of NodeJS.WriteStream.
c... | {
"end_byte": 2561,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/schematics_cli/bin/schematics_spec.ts"
} |
angular-cli/packages/angular_devkit/schematics_cli/blank/factory.ts_0_3199 | /**
* @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, Path, isJsonObject, normalize, strings } from '@angular-devkit/core';
import {
Rule,
Schema... | {
"end_byte": 3199,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/schematics_cli/blank/factory.ts"
} |
angular-cli/packages/angular_devkit/schematics_cli/blank/project-files/README.md_0_639 | # Getting Started With Schematics
This repository is a basic Schematic implementation that serves as a starting point to create and publish Schematics to NPM.
### Testing
To test locally, install `@angular-devkit/schematics-cli` globally and use the `schematics` command line tool. That tool acts the same as the `gen... | {
"end_byte": 639,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/schematics_cli/blank/project-files/README.md"
} |
angular-cli/packages/angular_devkit/schematics_cli/blank/schematic-files/src/__name@dasherize__/index.ts.template_0_328 | import { Rule, SchematicContext, Tree } from '@angular-devkit/schematics';
// You don't have to export the function as default. You can also have more than one rule factory
// per file.
export function <%= camelize(name) %>(_options: any): Rule {
return (tree: Tree, _context: SchematicContext) => {
return tree;... | {
"end_byte": 328,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/schematics_cli/blank/schematic-files/src/__name@dasherize__/index.ts.template"
} |
angular-cli/packages/angular_devkit/schematics_cli/blank/schematic-files/src/__name@dasherize__/index_spec.ts.template_0_504 | import { Tree } from '@angular-devkit/schematics';
import { SchematicTestRunner } from '@angular-devkit/schematics/testing';
import * as path from 'path';
const collectionPath = path.join(__dirname, '../collection.json');
describe('<%= dasherize(name) %>', () => {
it('works', async () => {
const runner = new Sc... | {
"end_byte": 504,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/schematics_cli/blank/schematic-files/src/__name@dasherize__/index_spec.ts.template"
} |
angular-cli/packages/angular_devkit/schematics/README.md_0_12744 | # Schematics
> A scaffolding library for the modern web.
## Description
Schematics are generators that transform an existing filesystem. They can create files, refactor existing files, or move files around.
What distinguishes Schematics from other generators, such as Yeoman or Yarn Create, is that schematics are pu... | {
"end_byte": 12744,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/schematics/README.md"
} |
angular-cli/packages/angular_devkit/schematics/README.md_12744_14766 | # Examples
## Simple
An example of a simple Schematics which creates a "hello world" file, using an option to determine its path:
```typescript
import { Tree } from '@angular-devkit/schematics';
export default function MySchematic(options: any) {
return (tree: Tree) => {
tree.create(options.path + '/hi', 'Hel... | {
"end_byte": 14766,
"start_byte": 12744,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/schematics/README.md"
} |
angular-cli/packages/angular_devkit/schematics/BUILD.bazel_0_2642 | load("@npm//@angular/build-tooling/bazel/api-golden:index.bzl", "api_golden_test_npm_package")
load("@npm//@bazel/jasmine:index.bzl", "jasmine_node_test")
load("//tools:defaults.bzl", "pkg_npm", "ts_library")
# Copyright Google Inc. All Rights Reserved.
#
# Use of this source code is governed by an MIT-style license t... | {
"end_byte": 2642,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/schematics/BUILD.bazel"
} |
angular-cli/packages/angular_devkit/schematics/tasks/BUILD.bazel_0_849 | 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": 849,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/schematics/tasks/BUILD.bazel"
} |
angular-cli/packages/angular_devkit/schematics/tasks/index.ts_0_468 | /**
* @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 { NodePackageInstallTask } from './package-manager/install-task';
export { NodePackageLinkTask } from './pack... | {
"end_byte": 468,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/schematics/tasks/index.ts"
} |
angular-cli/packages/angular_devkit/schematics/tasks/package-manager/executor.ts_0_5033 | /**
* @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 '@angular-devkit/core';
import { SpawnOptions, spawn } from 'child_process';
import or... | {
"end_byte": 5033,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/schematics/tasks/package-manager/executor.ts"
} |
angular-cli/packages/angular_devkit/schematics/tasks/package-manager/install-task.ts_0_2114 | /**
* @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 { TaskConfiguration, TaskConfigurationGenerator } from '../../src';
import { NodePackageName, NodePackageTask... | {
"end_byte": 2114,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/schematics/tasks/package-manager/install-task.ts"
} |
angular-cli/packages/angular_devkit/schematics/tasks/package-manager/link-task.ts_0_918 | /**
* @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 { TaskConfiguration, TaskConfigurationGenerator } from '../../src';
import { NodePackageName, NodePackageTask... | {
"end_byte": 918,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/schematics/tasks/package-manager/link-task.ts"
} |
angular-cli/packages/angular_devkit/schematics/tasks/package-manager/options.ts_0_650 | /**
* @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 NodePackageName = 'node-package';
export interface NodePackageTaskFactoryOptions {
rootDirectory?: s... | {
"end_byte": 650,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/schematics/tasks/package-manager/options.ts"
} |
angular-cli/packages/angular_devkit/schematics/tasks/run-schematic/executor.ts_0_1184 | /**
* @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 { SchematicContext, TaskExecutor } from '../../src';
import { RunSchematicTaskOptions } from './options';
ex... | {
"end_byte": 1184,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/schematics/tasks/run-schematic/executor.ts"
} |
angular-cli/packages/angular_devkit/schematics/tasks/run-schematic/task.ts_0_1140 | /**
* @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 { TaskConfiguration, TaskConfigurationGenerator } from '../../src';
import { RunSchematicName, RunSchematicTa... | {
"end_byte": 1140,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/schematics/tasks/run-schematic/task.ts"
} |
angular-cli/packages/angular_devkit/schematics/tasks/run-schematic/options.ts_0_361 | /**
* @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 RunSchematicName = 'run-schematic';
export interface RunSchematicTaskOptions<T> {
collection: string... | {
"end_byte": 361,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/schematics/tasks/run-schematic/options.ts"
} |
angular-cli/packages/angular_devkit/schematics/tasks/node/BUILD.bazel_0_801 | 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": 801,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/schematics/tasks/node/BUILD.bazel"
} |
angular-cli/packages/angular_devkit/schematics/tasks/node/index.ts_0_1304 | /**
* @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 { TaskExecutor, TaskExecutorFactory } from '../../src';
import { NodePackageName, NodePackageTaskFactoryOptio... | {
"end_byte": 1304,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/schematics/tasks/node/index.ts"
} |
angular-cli/packages/angular_devkit/schematics/tasks/repo-init/executor.ts_0_2794 | /**
* @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 { SpawnOptions, spawn } from 'child_process';
import * as path f... | {
"end_byte": 2794,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/schematics/tasks/repo-init/executor.ts"
} |
angular-cli/packages/angular_devkit/schematics/tasks/repo-init/init-task.ts_0_1134 | /**
* @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 { TaskConfiguration, TaskConfigurationGenerator } from '../../src';
import { RepositoryInitializerName, Repos... | {
"end_byte": 1134,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/schematics/tasks/repo-init/init-task.ts"
} |
angular-cli/packages/angular_devkit/schematics/tasks/repo-init/options.ts_0_517 | /**
* @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 RepositoryInitializerName = 'repo-init';
export interface RepositoryInitializerTaskFactoryOptions {
... | {
"end_byte": 517,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/schematics/tasks/repo-init/options.ts"
} |
angular-cli/packages/angular_devkit/schematics/tools/export-ref_spec.ts_0_2090 | /**
* @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 { ExportStringRef } from './export-ref';
import { CollectionCannotBeResolvedExc... | {
"end_byte": 2090,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/schematics/tools/export-ref_spec.ts"
} |
angular-cli/packages/angular_devkit/schematics/tools/file-system-engine-host_spec.ts_0_604 | /**
* @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/no-extraneous-dependencies */
import { normalize, virtu... | {
"end_byte": 604,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/schematics/tools/file-system-engine-host_spec.ts"
} |
angular-cli/packages/angular_devkit/schematics/tools/file-system-engine-host_spec.ts_606_9373 | describe('FileSystemEngineHost', () => {
// We need to resolve a file that actually exists, and not just a folder.
const root = path.join(
path.dirname(require.resolve(__filename)),
'../../../../tests/angular_devkit/schematics/tools/file-system-engine-host',
);
it('works', () => {
const engineHost ... | {
"end_byte": 9373,
"start_byte": 606,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/schematics/tools/file-system-engine-host_spec.ts"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.