_id
stringlengths
21
254
text
stringlengths
1
93.7k
metadata
dict
angular-cli/scripts/templates/contributing.ejs_0_4255
# Contributing to Angular DevKit We would love for you to contribute to DevKit and help make it even better than it is today! As a contributor, here are the guidelines we would like you to follow: - [Code of Conduct](#coc) - [Question or Problem?](#question) - [Issues and Bugs](#issue) - [Feature Requests](#featu...
{ "end_byte": 4255, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/scripts/templates/contributing.ejs" }
angular-cli/scripts/templates/contributing.ejs_4258_12446
### <a name="submit-pr"></a> Submitting a Pull Request (PR) Before you submit your Pull Request (PR) consider the following guidelines: * Search [GitHub](https://github.com/angular/angular-cli/pulls) for an open or closed PR that relates to your submission. You don't want to duplicate effort. * Please sign our [Cont...
{ "end_byte": 12446, "start_byte": 4258, "url": "https://github.com/angular/angular-cli/blob/main/scripts/templates/contributing.ejs" }
angular-cli/scripts/templates/user-analytics-table.ejs_0_162
<% %>| Name | Parameter | Type | |:---:|:---|:---| <% for (const { parameter, name, type } of data) {%>| <%= name %> | `<%= parameter %>` | `<%= type %>` | <%}%>
{ "end_byte": 162, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/scripts/templates/user-analytics-table.ejs" }
angular-cli/scripts/templates/readme.ejs_0_6744
<!-- BEFORE UPDATING THIS FILE, READ THIS. This file is automatically generated during release. It is important for you to not update README directly. - If you need to change the content, update `scripts/templates/readme.ejs` - If you need to add/remove a package or a link, update the .monorepo.json file in...
{ "end_byte": 6744, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/scripts/templates/readme.ejs" }
angular-cli/packages/README.md_0_309
# `/packages` Folder This folder is the root of all defined packages in this repository. Packages that are marked as `private: true` will not be published to NPM. This folder includes a directory for every scope in NPM, without the `@` sign. Then one folder per package, which contains the `package.json`.
{ "end_byte": 309, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/README.md" }
angular-cli/packages/angular/cli/README.md_0_314
# Angular CLI - The CLI tool for Angular. The sources for this package are in the [Angular CLI](https://github.com/angular/angular-cli) repository. Please file issues and pull requests against that repository. Usage information and reference details can be found in repository [README](../../../README.md) file.
{ "end_byte": 314, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/README.md" }
angular-cli/packages/angular/cli/BUILD.bazel_0_6468
# 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", "pkg_npm", "ts_library") load("//tools:ng_cli_sche...
{ "end_byte": 6468, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/BUILD.bazel" }
angular-cli/packages/angular/cli/bin/bootstrap.js_0_1280
/** * @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 */ /** * @fileoverview * * This file is used to bootstrap the CLI process by dynamically importing the main initiali...
{ "end_byte": 1280, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/bin/bootstrap.js" }
angular-cli/packages/angular/cli/bin/ng.js_0_2527
#!/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 */ /* eslint-disable no-console */ /* eslint-disable import/no-unassigned-import */ 'use strict'; ...
{ "end_byte": 2527, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/bin/ng.js" }
angular-cli/packages/angular/cli/lib/init.ts_0_5473
/** * @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 'symbol-observable'; // symbol polyfill must go first import { promises as fs } from 'fs'; import { createReq...
{ "end_byte": 5473, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/lib/init.ts" }
angular-cli/packages/angular/cli/lib/cli/index.ts_0_3624
/** * @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 { logging } from '@angular-devkit/core'; import { format, stripVTControlCharacters } from 'node:util'; import...
{ "end_byte": 3624, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/lib/cli/index.ts" }
angular-cli/packages/angular/cli/src/typings.ts_0_446
/** * @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 */ declare module 'npm-pick-manifest' { function pickManifest( metadata: import('./utilities/package-metadata').P...
{ "end_byte": 446, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/typings.ts" }
angular-cli/packages/angular/cli/src/utilities/eol.ts_0_555
/** * @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 { EOL } from 'node:os'; const CRLF = '\r\n'; const LF = '\n'; export function getEOL(content: string): stri...
{ "end_byte": 555, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/utilities/eol.ts" }
angular-cli/packages/angular/cli/src/utilities/log-file.ts_0_876
/** * @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 { appendFileSync, mkdtempSync, realpathSync } from 'fs'; import { tmpdir } from 'os'; import { normalize } fr...
{ "end_byte": 876, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/utilities/log-file.ts" }
angular-cli/packages/angular/cli/src/utilities/project.ts_0_1559
/** * @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 '@angular-devkit/core'; import * as fs from 'fs'; import * as os from 'os'; import * as pa...
{ "end_byte": 1559, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/utilities/project.ts" }
angular-cli/packages/angular/cli/src/utilities/find-up.ts_0_701
/** * @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'; export function findUp(names: string | string[], fro...
{ "end_byte": 701, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/utilities/find-up.ts" }
angular-cli/packages/angular/cli/src/utilities/memoize_spec.ts_0_4470
/** * @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 { memoize } from './memoize'; describe('memoize', () => { class Dummy { @memoize get random(): num...
{ "end_byte": 4470, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/utilities/memoize_spec.ts" }
angular-cli/packages/angular/cli/src/utilities/prompt.ts_0_1495
/** * @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 { isTTY } from './tty'; export async function askConfirmation( message: string, defaultResponse: boolean...
{ "end_byte": 1495, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/utilities/prompt.ts" }
angular-cli/packages/angular/cli/src/utilities/environment-options.ts_0_1158
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ function isPresent(variable: string | undefined): variable is string { return typeof variable === 'string' && vari...
{ "end_byte": 1158, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/utilities/environment-options.ts" }
angular-cli/packages/angular/cli/src/utilities/package-tree.ts_0_2394
/** * @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 { dirname, join } from 'path'; import * as resolve from 'resolve'; import { NgAddSa...
{ "end_byte": 2394, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/utilities/package-tree.ts" }
angular-cli/packages/angular/cli/src/utilities/package-metadata.ts_0_7234
/** * @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 { logging } from '@angular-devkit/core'; import * as lockfile from '@yarnpkg/lockfile'; import { existsSync, ...
{ "end_byte": 7234, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/utilities/package-metadata.ts" }
angular-cli/packages/angular/cli/src/utilities/package-metadata.ts_7236_9865
export async function fetchPackageMetadata( name: string, logger: logging.LoggerApi, options?: { registry?: string; usingYarn?: boolean; verbose?: boolean; }, ): Promise<PackageMetadata> { const { usingYarn, verbose, registry } = { registry: undefined, usingYarn: false, verbose: false,...
{ "end_byte": 9865, "start_byte": 7236, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/utilities/package-metadata.ts" }
angular-cli/packages/angular/cli/src/utilities/json-file.ts_0_3514
/** * @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 { readFileSync, writeFileSync } from 'fs'; import { Node,...
{ "end_byte": 3514, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/utilities/json-file.ts" }
angular-cli/packages/angular/cli/src/utilities/completion.ts_0_6667
/** * @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 { execFile } from 'child_process'; import { promises as...
{ "end_byte": 6667, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/utilities/completion.ts" }
angular-cli/packages/angular/cli/src/utilities/completion.ts_6668_10970
export async function initializeAutocomplete(): Promise<string> { // Get the currently active `$SHELL` and `$HOME` environment variables. const shell = env['SHELL']; if (!shell) { throw new Error( '`$SHELL` environment variable not set. Angular CLI autocompletion only supports Bash or' + " Zsh. ...
{ "end_byte": 10970, "start_byte": 6668, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/utilities/completion.ts" }
angular-cli/packages/angular/cli/src/utilities/version.ts_0_971
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { readFileSync } from 'fs'; import { resolve } from 'path'; // Same structure as used in framework packages ...
{ "end_byte": 971, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/utilities/version.ts" }
angular-cli/packages/angular/cli/src/utilities/config.ts_0_8113
/** * @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, workspaces } from '@angular-devkit/core'; import { existsSync, promises as fs } from 'fs'; import * a...
{ "end_byte": 8113, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/utilities/config.ts" }
angular-cli/packages/angular/cli/src/utilities/config.ts_8115_12866
function findProjectByPath(workspace: AngularWorkspace, location: string): string | null { const isInside = (base: string, potential: string): boolean => { const absoluteBase = path.resolve(workspace.basePath, base); const absolutePotential = path.resolve(workspace.basePath, potential); const relativePote...
{ "end_byte": 12866, "start_byte": 8115, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/utilities/config.ts" }
angular-cli/packages/angular/cli/src/utilities/error.ts_0_597
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import assert from 'assert'; export function assertIsError(value: unknown): asserts value is Error & { code?: strin...
{ "end_byte": 597, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/utilities/error.ts" }
angular-cli/packages/angular/cli/src/utilities/color.ts_0_718
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { WriteStream } from 'node:tty'; export { color as colors, figures } from 'listr2'; export function support...
{ "end_byte": 718, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/utilities/color.ts" }
angular-cli/packages/angular/cli/src/utilities/tty.ts_0_709
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ function _isTruthy(value: undefined | string): boolean { // Returns true if value is a string that is anything but...
{ "end_byte": 709, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/utilities/tty.ts" }
angular-cli/packages/angular/cli/src/utilities/package-manager.ts_0_883
/** * @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 { isJsonObject, json } from '@angular-devkit/core'; import { execSync, spawn } from 'child_process'; import {...
{ "end_byte": 883, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/utilities/package-manager.ts" }
angular-cli/packages/angular/cli/src/utilities/package-manager.ts_885_9228
export class PackageManagerUtils { constructor(private readonly context: PackageManagerUtilsContext) {} /** Get the package manager name. */ get name(): PackageManager { return this.getName(); } /** Get the package manager version. */ get version(): string | undefined { return this.getVersion(this...
{ "end_byte": 9228, "start_byte": 885, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/utilities/package-manager.ts" }
angular-cli/packages/angular/cli/src/utilities/package-manager.ts_9232_10164
private getConfiguredPackageManager(): PackageManager | undefined { const getPackageManager = (source: json.JsonValue | undefined): PackageManager | undefined => { if (source && isJsonObject(source)) { const value = source['packageManager']; if (typeof value === 'string') { return va...
{ "end_byte": 10164, "start_byte": 9232, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/utilities/package-manager.ts" }
angular-cli/packages/angular/cli/src/utilities/load-esm.ts_0_1203
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ /** * Lazily compiled dynamic import loader function. */ let load: (<T>(modulePath: string | URL) => Promise<T>) |...
{ "end_byte": 1203, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/utilities/load-esm.ts" }
angular-cli/packages/angular/cli/src/utilities/memoize.ts_0_2163
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ /** * A decorator that memoizes methods and getters. * * **Note**: Be cautious where and how to use this decorato...
{ "end_byte": 2163, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/utilities/memoize.ts" }
angular-cli/packages/angular/cli/src/command-builder/schematics-command-module.ts_0_1622
/** * @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, normalize as devkitNormalize, schema } from '@angular-devkit/core'; import { Collection, Unsucce...
{ "end_byte": 1622, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/command-builder/schematics-command-module.ts" }
angular-cli/packages/angular/cli/src/command-builder/schematics-command-module.ts_1624_11097
export abstract class SchematicsCommandModule extends CommandModule<SchematicsCommandArgs> implements CommandModuleImplementation<SchematicsCommandArgs> { override scope = CommandScope.In; protected readonly allowPrivateSchematics: boolean = false; async builder(argv: Argv): Promise<Argv<SchematicsCommandArg...
{ "end_byte": 11097, "start_byte": 1624, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/command-builder/schematics-command-module.ts" }
angular-cli/packages/angular/cli/src/command-builder/schematics-command-module.ts_11101_13343
protected async runSchematic(options: { executionOptions: SchematicsExecutionOptions; schematicOptions: OtherOptions; collectionName: string; schematicName: string; }): Promise<number> { const { logger } = this.context; const { schematicOptions, executionOptions, collectionName, schematicName ...
{ "end_byte": 13343, "start_byte": 11101, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/command-builder/schematics-command-module.ts" }
angular-cli/packages/angular/cli/src/command-builder/architect-command-module.ts_0_7158
/** * @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 } from '@angular-devkit/architect'; import { workspaces } from '@angular-devkit/core'; import { Argv...
{ "end_byte": 7158, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/command-builder/architect-command-module.ts" }
angular-cli/packages/angular/cli/src/command-builder/command-module.ts_0_2635
/** * @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 { logging, schema } from '@angular-devkit/core'; import { readFileSync } from 'fs'; import * as path from 'pa...
{ "end_byte": 2635, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/command-builder/command-module.ts" }
angular-cli/packages/angular/cli/src/command-builder/command-module.ts_2637_9788
export abstract class CommandModule<T extends {} = {}> implements CommandModuleImplementation<T> { abstract readonly command: string; abstract readonly describe: string | false; abstract readonly longDescriptionPath?: string; protected readonly shouldReportAnalytics: boolean = true; readonly scope: CommandSco...
{ "end_byte": 9788, "start_byte": 2637, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/command-builder/command-module.ts" }
angular-cli/packages/angular/cli/src/command-builder/architect-base-command-module.ts_0_8371
/** * @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, Target } from '@angular-devkit/architect'; import { NodeModulesBuilderInfo, WorkspaceNodeMod...
{ "end_byte": 8371, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/command-builder/architect-base-command-module.ts" }
angular-cli/packages/angular/cli/src/command-builder/command-runner.ts_0_5308
/** * @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 { logging } from '@angular-devkit/core'; import yargs from 'yargs'; import { Parser } from 'yargs/helpers'; i...
{ "end_byte": 5308, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/command-builder/command-runner.ts" }
angular-cli/packages/angular/cli/src/command-builder/utilities/json-schema_spec.ts_0_6394
/** * @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, schema } from '@angular-devkit/core'; import yargs, { positional } from 'yargs'; import { addSchemaO...
{ "end_byte": 6394, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/command-builder/utilities/json-schema_spec.ts" }
angular-cli/packages/angular/cli/src/command-builder/utilities/schematic-engine-host.ts_0_8171
/** * @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 { RuleFactory, SchematicsException, Tree } from '@angular-devkit/schematics'; import { FileSystemCollectionDe...
{ "end_byte": 8171, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/command-builder/utilities/schematic-engine-host.ts" }
angular-cli/packages/angular/cli/src/command-builder/utilities/json-schema.ts_0_7926
/** * @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, strings } from '@angular-devkit/core'; import yargs, { Arguments, Argv, PositionalOptions, Options as...
{ "end_byte": 7926, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/command-builder/utilities/json-schema.ts" }
angular-cli/packages/angular/cli/src/command-builder/utilities/json-schema.ts_7927_10189
xport function addSchemaOptionsToCommand<T>( localYargs: Argv<T>, options: Option[], includeDefaultValues: boolean, ): Map<string, string> { const booleanOptionsWithNoPrefix = new Set<string>(); const keyValuePairOptions = new Set<string>(); const optionsWithAnalytics = new Map<string, string>(); for (co...
{ "end_byte": 10189, "start_byte": 7927, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/command-builder/utilities/json-schema.ts" }
angular-cli/packages/angular/cli/src/command-builder/utilities/schematic-workflow.ts_0_2231
/** * @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 { logging } from '@angular-devkit/core'; import { NodeWorkflow } from '@angular-devkit/schematics/tools'; imp...
{ "end_byte": 2231, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/command-builder/utilities/schematic-workflow.ts" }
angular-cli/packages/angular/cli/src/command-builder/utilities/normalize-options-middleware.ts_0_1474
/** * @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 yargs from 'yargs'; /** * A Yargs middleware that normalizes non Array options when the argument has b...
{ "end_byte": 1474, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/command-builder/utilities/normalize-options-middleware.ts" }
angular-cli/packages/angular/cli/src/command-builder/utilities/json-help.ts_0_4438
/** * @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 yargs from 'yargs'; import { FullDescribe } from '../command-module'; interface JsonHelpOption { name: str...
{ "end_byte": 4438, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/command-builder/utilities/json-help.ts" }
angular-cli/packages/angular/cli/src/command-builder/utilities/command.ts_0_2147
/** * @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 { Argv } from 'yargs'; import { CommandContext, CommandModule, CommandModuleError, CommandModuleImple...
{ "end_byte": 2147, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/command-builder/utilities/command.ts" }
angular-cli/packages/angular/cli/src/commands/command-config.ts_0_2319
/** * @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 { CommandModuleConstructor } from '../command-builder/utilities/command'; export type CommandNames = | 'ad...
{ "end_byte": 2319, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/commands/command-config.ts" }
angular-cli/packages/angular/cli/src/commands/lint/cli.ts_0_964
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { join } from 'path'; import { MissingTargetChoice } from '../../command-builder/architect-base-command-modul...
{ "end_byte": 964, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/commands/lint/cli.ts" }
angular-cli/packages/angular/cli/src/commands/lint/long-description.md_0_644
The command takes an optional project name, as specified in the `projects` section of the `angular.json` workspace configuration file. When a project name is not supplied, executes the `lint` builder for all projects. To use the `ng lint` command, use `ng add` to add a package that implements linting capabilities. Add...
{ "end_byte": 644, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/commands/lint/long-description.md" }
angular-cli/packages/angular/cli/src/commands/cache/utilities.ts_0_1699
/** * @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 { isJsonObject } from '@angular-devkit/core'; import { resolve } from 'path'; import { Cache, Environment } f...
{ "end_byte": 1699, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/commands/cache/utilities.ts" }
angular-cli/packages/angular/cli/src/commands/cache/cli.ts_0_1423
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { join } from 'path'; import { Argv } from 'yargs'; import { CommandModule, CommandModuleImplementation, ...
{ "end_byte": 1423, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/commands/cache/cli.ts" }
angular-cli/packages/angular/cli/src/commands/cache/long-description.md_0_1722
Angular CLI saves a number of cachable operations on disk by default. When you re-run the same build, the build system restores the state of the previous build and re-uses previously performed operations, which decreases the time taken to build and test your applications and libraries. To amend the default cache sett...
{ "end_byte": 1722, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/commands/cache/long-description.md" }
angular-cli/packages/angular/cli/src/commands/cache/settings/cli.ts_0_1333
/** * @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 { Argv } from 'yargs'; import { CommandModule, CommandModuleImplementation, CommandScope, } from '../.....
{ "end_byte": 1333, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/commands/cache/settings/cli.ts" }
angular-cli/packages/angular/cli/src/commands/cache/info/cli.ts_0_2809
/** * @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 { promises as fs } from 'fs'; import { join } from 'path'; impor...
{ "end_byte": 2809, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/commands/cache/info/cli.ts" }
angular-cli/packages/angular/cli/src/commands/cache/clean/cli.ts_0_955
/** * @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 { promises as fs } from 'fs'; import { Argv } from 'yargs'; import { CommandModule, CommandModuleImplemen...
{ "end_byte": 955, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/commands/cache/clean/cli.ts" }
angular-cli/packages/angular/cli/src/commands/test/cli.ts_0_778
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { join } from 'path'; import { ArchitectCommandModule } from '../../command-builder/architect-command-module'...
{ "end_byte": 778, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/commands/test/cli.ts" }
angular-cli/packages/angular/cli/src/commands/test/long-description.md_0_193
Takes the name of the project, as specified in the `projects` section of the `angular.json` workspace configuration file. When a project name is not supplied, it will execute for all projects.
{ "end_byte": 193, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/commands/test/long-description.md" }
angular-cli/packages/angular/cli/src/commands/update/cli.ts_0_2658
/** * @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 { SchematicDescription, UnsuccessfulWorkflowExecution } from '@angular-devkit/schematics'; import { FileSys...
{ "end_byte": 2658, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/commands/update/cli.ts" }
angular-cli/packages/angular/cli/src/commands/update/cli.ts_2660_11854
export default class UpdateCommandModule extends CommandModule<UpdateCommandArgs> { override scope = CommandScope.In; protected override shouldReportAnalytics = false; private readonly resolvePaths = [__dirname, this.context.root]; command = 'update [packages..]'; describe = 'Updates your workspace and its d...
{ "end_byte": 11854, "start_byte": 2660, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/commands/update/cli.ts" }
angular-cli/packages/angular/cli/src/commands/update/cli.ts_11857_19257
private async executeMigrations( workflow: NodeWorkflow, packageName: string, collectionPath: string, from: string, to: string, commit?: boolean, ): Promise<number> { const collection = workflow.engine.createCollection(collectionPath); const migrationRange = new semver.Range( '>'...
{ "end_byte": 19257, "start_byte": 11857, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/commands/update/cli.ts" }
angular-cli/packages/angular/cli/src/commands/update/cli.ts_19260_29276
private async updatePackagesAndMigrate( workflow: NodeWorkflow, rootDependencies: Map<string, PackageTreeNode>, options: Options<UpdateCommandArgs>, packages: PackageIdentifier[], ): Promise<number> { const { logger } = this.context; const logVerbose = (message: string) => { if (options...
{ "end_byte": 29276, "start_byte": 19260, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/commands/update/cli.ts" }
angular-cli/packages/angular/cli/src/commands/update/cli.ts_29280_37851
/** * @return Whether or not the commit was successful. */ private commit(message: string): boolean { const { logger } = this.context; // Check if a commit is needed. let commitNeeded: boolean; try { commitNeeded = hasChangesToCommit(); } catch (err) { logger.error(` Failed to ...
{ "end_byte": 37851, "start_byte": 29280, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/commands/update/cli.ts" }
angular-cli/packages/angular/cli/src/commands/update/cli.ts_37852_40116
function hasChangesToCommit(): boolean { // List all modified files not covered by .gitignore. // If any files are returned, then there must be something to commit. return execSync('git ls-files -m -d -o --exclude-standard').toString() !== ''; } /** * Precondition: Must have pending changes to commit, they do ...
{ "end_byte": 40116, "start_byte": 37852, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/commands/update/cli.ts" }
angular-cli/packages/angular/cli/src/commands/update/long-description.md_0_806
Perform a basic update to the current stable release of the core framework and CLI by running the following command. ``` ng update @angular/cli @angular/core ``` To update to the next beta or pre-release version, use the `--next` option. To update from one major version to another, use the format ``` ng update @ang...
{ "end_byte": 806, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/commands/update/long-description.md" }
angular-cli/packages/angular/cli/src/commands/update/schematic/index.ts_0_8199
/** * @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 { logging } from '@angular-devkit/core'; import { Rule, SchematicContext, SchematicsException, Tree } from '@...
{ "end_byte": 8199, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/commands/update/schematic/index.ts" }
angular-cli/packages/angular/cli/src/commands/update/schematic/index.ts_8201_13745
function _performUpdate( tree: Tree, context: SchematicContext, infoMap: Map<string, PackageInfo>, logger: logging.LoggerApi, migrateOnly: boolean, ): void { const packageJsonContent = tree.read('/package.json')?.toString(); if (!packageJsonContent) { throw new SchematicsException('Could not find a pa...
{ "end_byte": 13745, "start_byte": 8201, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/commands/update/schematic/index.ts" }
angular-cli/packages/angular/cli/src/commands/update/schematic/index.ts_13747_21000
function _usageMessage( options: UpdateSchema, infoMap: Map<string, PackageInfo>, logger: logging.LoggerApi, ) { const packageGroups = new Map<string, string>(); const packagesToUpdate = [...infoMap.entries()] .map(([name, info]) => { let tag = options.next ? info.npmPackageJson['dist-tags']...
{ "end_byte": 21000, "start_byte": 13747, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/commands/update/schematic/index.ts" }
angular-cli/packages/angular/cli/src/commands/update/schematic/index.ts_21002_26585
function _buildPackageList( options: UpdateSchema, projectDeps: Map<string, VersionRange>, logger: logging.LoggerApi, ): Map<string, VersionRange> { // Parse the packages options to set the targeted version. const packages = new Map<string, VersionRange>(); const commandLinePackages = options.packages &...
{ "end_byte": 26585, "start_byte": 21002, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/commands/update/schematic/index.ts" }
angular-cli/packages/angular/cli/src/commands/update/schematic/index.ts_26587_30743
export default function (options: UpdateSchema): Rule { if (!options.packages) { // We cannot just return this because we need to fetch the packages from NPM still for the // help/guide to show. options.packages = []; } else { // We split every packages by commas to allow people to pass in multiple ...
{ "end_byte": 30743, "start_byte": 26587, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/commands/update/schematic/index.ts" }
angular-cli/packages/angular/cli/src/commands/update/schematic/index_spec.ts_0_884
/** * @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, virtualFs } from '@angular-devkit/core'; import { HostTree } from '@angular-devkit/schematics'; ...
{ "end_byte": 884, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/commands/update/schematic/index_spec.ts" }
angular-cli/packages/angular/cli/src/commands/update/schematic/index_spec.ts_886_8868
describe('@schematics/update', () => { const schematicRunner = new SchematicTestRunner( '@schematics/update', require.resolve('./collection.json'), ); let host: virtualFs.test.TestHost; let appTree: UnitTestTree = new UnitTestTree(new HostTree()); beforeEach(() => { host = new virtualFs.test.Test...
{ "end_byte": 8868, "start_byte": 886, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/commands/update/schematic/index_spec.ts" }
angular-cli/packages/angular/cli/src/commands/update/schematic/index_spec.ts_8872_11768
it('validates peer dependencies', async () => { const content = virtualFs.fileBufferToString(host.sync.read(normalize('/package.json'))); const packageJson = JSON.parse(content); const dependencies = packageJson['dependencies']; // TODO: when we start using a local npm registry for test packages, add a ...
{ "end_byte": 11768, "start_byte": 8872, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/commands/update/schematic/index_spec.ts" }
angular-cli/packages/angular/cli/src/commands/config/cli.ts_0_5488
/** * @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 { randomUUID } from 'crypto'; import { join } from 'path'; ...
{ "end_byte": 5488, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/commands/config/cli.ts" }
angular-cli/packages/angular/cli/src/commands/config/long-description.md_0_640
A workspace has a single CLI configuration file, `angular.json`, at the top level. The `projects` object contains a configuration object for each project in the workspace. You can edit the configuration directly in a code editor, or indirectly on the command line using this command. The configurable property names ma...
{ "end_byte": 640, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/commands/config/long-description.md" }
angular-cli/packages/angular/cli/src/commands/deploy/cli.ts_0_1325
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { join } from 'node:path'; import { MissingTargetChoice } from '../../command-builder/architect-base-command-...
{ "end_byte": 1325, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/commands/deploy/cli.ts" }
angular-cli/packages/angular/cli/src/commands/deploy/long-description.md_0_684
The command takes an optional project name, as specified in the `projects` section of the `angular.json` workspace configuration file. When a project name is not supplied, executes the `deploy` builder for the default project. To use the `ng deploy` command, use `ng add` to add a package that implements deployment cap...
{ "end_byte": 684, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/commands/deploy/long-description.md" }
angular-cli/packages/angular/cli/src/commands/completion/cli.ts_0_2412
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { join } from 'path'; import yargs, { Argv } from 'yargs'; import { CommandModule, CommandModuleImplementatio...
{ "end_byte": 2412, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/commands/completion/cli.ts" }
angular-cli/packages/angular/cli/src/commands/completion/long-description.md_0_3008
Setting up autocompletion configures your terminal, so pressing the `<TAB>` key while in the middle of typing will display various commands and options available to you. This makes it very easy to discover and use CLI commands without lots of memorization. ![A demo of Angular CLI autocompletion in a terminal. The user...
{ "end_byte": 3008, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/commands/completion/long-description.md" }
angular-cli/packages/angular/cli/src/commands/extract-i18n/cli.ts_0_2070
/** * @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 { workspaces } from '@angular-devkit/core'; import { createRequire } from 'node:module'; import { join } from...
{ "end_byte": 2070, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/commands/extract-i18n/cli.ts" }
angular-cli/packages/angular/cli/src/commands/add/cli.ts_0_4479
/** * @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 { NodePackageDoesNotSupportSchematics } from '@angular-devkit/schematics/tools'; import { Listr, color, figur...
{ "end_byte": 4479, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/commands/add/cli.ts" }
angular-cli/packages/angular/cli/src/commands/add/cli.ts_4482_14673
async run(options: Options<AddCommandArgs> & OtherOptions): Promise<number | void> { const { logger, packageManager } = this.context; const { verbose, registry, collection, skipConfirmation } = options; let packageIdentifier; try { packageIdentifier = npa(collection); } catch (e) { asse...
{ "end_byte": 14673, "start_byte": 4482, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/commands/add/cli.ts" }
angular-cli/packages/angular/cli/src/commands/add/cli.ts_14677_18448
private async getCollectionName(): Promise<string> { let [, collectionName] = this.context.args.positional; // The CLI argument may specify also a version, like `ng add @my/lib@13.0.0`, // but here we need only the name of the package, like `@my/lib` try { const packageIdentifier = npa(collection...
{ "end_byte": 18448, "start_byte": 14677, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/commands/add/cli.ts" }
angular-cli/packages/angular/cli/src/commands/add/long-description.md_0_295
Adds the npm package for a published library to your workspace, and configures the project in the current working directory to use that library, as specified by the library's schematic. For example, adding `@angular/pwa` configures your project for PWA support: ```bash ng add @angular/pwa ```
{ "end_byte": 295, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/commands/add/long-description.md" }
angular-cli/packages/angular/cli/src/commands/version/cli.ts_0_5744
/** * @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 nodeModule from 'node:module'; import { resolve } from 'node:path'; import { Argv } from 'yargs'; import { Co...
{ "end_byte": 5744, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/commands/version/cli.ts" }
angular-cli/packages/angular/cli/src/commands/new/cli.ts_0_3431
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { join } from 'node:path'; import { Argv } from 'yargs'; import { CommandModuleImplementation, CommandSco...
{ "end_byte": 3431, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/commands/new/cli.ts" }
angular-cli/packages/angular/cli/src/commands/new/long-description.md_0_1133
Creates and initializes a new Angular application that is the default project for a new workspace. Provides interactive prompts for optional configuration, such as adding routing support. All prompts can safely be allowed to default. - The new workspace folder is given the specified project name, and contains configu...
{ "end_byte": 1133, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/commands/new/long-description.md" }
angular-cli/packages/angular/cli/src/commands/make-this-awesome/cli.ts_0_1227
/** * @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 { Argv } from 'yargs'; import { CommandModule, CommandModuleImplementation } from '../../command-builder/comm...
{ "end_byte": 1227, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/commands/make-this-awesome/cli.ts" }
angular-cli/packages/angular/cli/src/commands/generate/cli.ts_0_1028
/** * @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 { Collection } from '@angular-devkit/schematics'; import { ...
{ "end_byte": 1028, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/commands/generate/cli.ts" }
angular-cli/packages/angular/cli/src/commands/generate/cli.ts_1030_9914
export default class GenerateCommandModule extends SchematicsCommandModule implements CommandModuleImplementation<GenerateCommandArgs> { command = 'generate'; aliases = RootCommands['generate'].aliases; describe = 'Generates and/or modifies files based on a schematic.'; longDescriptionPath?: string | undefi...
{ "end_byte": 9914, "start_byte": 1030, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/commands/generate/cli.ts" }
angular-cli/packages/angular/cli/src/commands/build/cli.ts_0_862
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { join } from 'path'; import { ArchitectCommandModule } from '../../command-builder/architect-command-module'...
{ "end_byte": 862, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/commands/build/cli.ts" }
angular-cli/packages/angular/cli/src/commands/build/long-description.md_0_1461
The command can be used to build a project of type "application" or "library". When used to build a library, a different builder is invoked, and only the `ts-config`, `configuration`, `poll` and `watch` options are applied. All other options apply only to building applications. The application builder uses the [esbuil...
{ "end_byte": 1461, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/commands/build/long-description.md" }
angular-cli/packages/angular/cli/src/commands/run/cli.ts_0_4005
/** * @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 } from '@angular-devkit/architect'; import { join } from 'path'; import { Argv } from 'yargs'; impor...
{ "end_byte": 4005, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/commands/run/cli.ts" }
angular-cli/packages/angular/cli/src/commands/run/long-description.md_0_683
Architect is the tool that the CLI uses to perform complex tasks such as compilation, according to provided configurations. The CLI commands run Architect targets such as `build`, `serve`, `test`, and `lint`. Each named target has a default configuration, specified by an `options` object, and an optional set of named a...
{ "end_byte": 683, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/commands/run/long-description.md" }
angular-cli/packages/angular/cli/src/commands/serve/cli.ts_0_767
/** * @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 { ArchitectCommandModule } from '../../command-builder/architect-command-module'; import { CommandModuleImple...
{ "end_byte": 767, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/packages/angular/cli/src/commands/serve/cli.ts" }