_id stringlengths 21 254 | text stringlengths 1 93.7k | metadata dict |
|---|---|---|
angular-cli/packages/ngtools/webpack/src/ivy/host.ts_0_8869 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use 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/unbound-method */
import type { CompilerHost } from '@angular/compiler-cli';
im... | {
"end_byte": 8869,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/ngtools/webpack/src/ivy/host.ts"
} |
angular-cli/packages/ngtools/webpack/src/ivy/index.ts_0_414 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use 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 { angularWebpackLoader as default } from './loader';
export { type AngularWebpackPluginOptions, AngularWebpac... | {
"end_byte": 414,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/ngtools/webpack/src/ivy/index.ts"
} |
angular-cli/packages/ngtools/webpack/src/ivy/paths.ts_0_1031 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use 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 nodePath from 'path';
const normalizationCache = new Map<string, string>();
export function normalizeP... | {
"end_byte": 1031,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/ngtools/webpack/src/ivy/paths.ts"
} |
angular-cli/packages/ngtools/webpack/src/ivy/system.ts_0_2678 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import * as ts from 'typescript';
import { Compiler } from 'webpack';
import { externalizePath } from './paths';
ex... | {
"end_byte": 2678,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/ngtools/webpack/src/ivy/system.ts"
} |
angular-cli/packages/ngtools/webpack/src/ivy/transformation.ts_0_5392 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import * as ts from 'typescript';
import { elideImports } from '../transformers/elide_imports';
import { findImageDo... | {
"end_byte": 5392,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/ngtools/webpack/src/ivy/transformation.ts"
} |
angular-cli/packages/ngtools/webpack/src/transformers/remove-ivy-jit-support-calls.ts_0_3979 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import * as ts from 'typescript';
import { elideImports } from './elide_imports';
export function removeIvyJitSuppo... | {
"end_byte": 3979,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/ngtools/webpack/src/transformers/remove-ivy-jit-support-calls.ts"
} |
angular-cli/packages/ngtools/webpack/src/transformers/find_image_domains_spec.ts_0_8468 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use 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 * as ts from 'typescript';
import { findImageDomains } from './f... | {
"end_byte": 8468,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/ngtools/webpack/src/transformers/find_image_domains_spec.ts"
} |
angular-cli/packages/ngtools/webpack/src/transformers/replace_resources_spec.ts_0_899 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import { tags } from '@angular-devkit/core';
import * as ts from 'typescript';
import { replaceResources } from './r... | {
"end_byte": 899,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/ngtools/webpack/src/transformers/replace_resources_spec.ts"
} |
angular-cli/packages/ngtools/webpack/src/transformers/replace_resources_spec.ts_901_10209 | describe('@ngtools/webpack transformers', () => {
/* eslint-disable max-len */
describe('find_resources', () => {
it('should replace resources', () => {
const input = tags.stripIndent`
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templa... | {
"end_byte": 10209,
"start_byte": 901,
"url": "https://github.com/angular/angular-cli/blob/main/packages/ngtools/webpack/src/transformers/replace_resources_spec.ts"
} |
angular-cli/packages/ngtools/webpack/src/transformers/replace_resources_spec.ts_10215_15375 | it('should replace resources specified as string literals', () => {
const input = tags.stripIndent`
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styles: 'h2 {font-size: 10px}',
styleUrl: ... | {
"end_byte": 15375,
"start_byte": 10215,
"url": "https://github.com/angular/angular-cli/blob/main/packages/ngtools/webpack/src/transformers/replace_resources_spec.ts"
} |
angular-cli/packages/ngtools/webpack/src/transformers/elide_imports_spec.ts_0_438 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use 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 max-len */
import { tags } from '@angular-devkit/core';
import * as ts from 'typescript';
import {... | {
"end_byte": 438,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/ngtools/webpack/src/transformers/elide_imports_spec.ts"
} |
angular-cli/packages/ngtools/webpack/src/transformers/elide_imports_spec.ts_440_9834 | describe('@ngtools/webpack transformers', () => {
describe('elide_imports', () => {
const dummyNode = `const remove = ''`;
// Transformer that removes the last node and then elides unused imports
const transformer = (program: ts.Program) => {
return (context: ts.TransformationContext) => {
... | {
"end_byte": 9834,
"start_byte": 440,
"url": "https://github.com/angular/angular-cli/blob/main/packages/ngtools/webpack/src/transformers/elide_imports_spec.ts"
} |
angular-cli/packages/ngtools/webpack/src/transformers/elide_imports_spec.ts_9840_15481 | it('should only drop default imports when having named and default (3)', () => {
const input = tags.stripIndent`
import promise, { promise as fromPromise } from './const';
const used = promise;
const unused = fromPromise;
`;
const output = tags.stripIndent`
import prom... | {
"end_byte": 15481,
"start_byte": 9840,
"url": "https://github.com/angular/angular-cli/blob/main/packages/ngtools/webpack/src/transformers/elide_imports_spec.ts"
} |
angular-cli/packages/ngtools/webpack/src/transformers/elide_imports_spec.ts_15482_25271 | () => {
const extraCompilerOptions: ts.CompilerOptions = {
emitDecoratorMetadata: true,
experimentalDecorators: true,
};
it('should elide type only named imports', () => {
const input = tags.stripIndent`
import { Decorator } from './decorator';
import { typ... | {
"end_byte": 25271,
"start_byte": 15482,
"url": "https://github.com/angular/angular-cli/blob/main/packages/ngtools/webpack/src/transformers/elide_imports_spec.ts"
} |
angular-cli/packages/ngtools/webpack/src/transformers/elide_imports_spec.ts_25279_26765 | describe('NGTSC - ShorthandPropertyAssignment to PropertyAssignment', () => {
const transformShorthandPropertyAssignment = (
context: ts.TransformationContext,
): ts.Transformer<ts.SourceFile> => {
const visit: ts.Visitor = (node) => {
if (ts.isShorthandPropertyAssignment... | {
"end_byte": 26765,
"start_byte": 25279,
"url": "https://github.com/angular/angular-cli/blob/main/packages/ngtools/webpack/src/transformers/elide_imports_spec.ts"
} |
angular-cli/packages/ngtools/webpack/src/transformers/elide_imports.ts_0_4792 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import * as ts from 'typescript';
// Remove imports for which all identifiers have been removed.
// Needs type chec... | {
"end_byte": 4792,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/ngtools/webpack/src/transformers/elide_imports.ts"
} |
angular-cli/packages/ngtools/webpack/src/transformers/find_image_domains.ts_0_5075 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use 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 ts from 'typescript';
const BUILTIN_LOADERS = new Set([
'provideCloudflareLoader',
'provideCloudinaryLoa... | {
"end_byte": 5075,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/ngtools/webpack/src/transformers/find_image_domains.ts"
} |
angular-cli/packages/ngtools/webpack/src/transformers/remove-ivy-jit-support-calls_spec.ts_0_7575 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use 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 max-len */
import { tags } from '@angular-devkit/core';
import * as ts from 'typescript';
import {... | {
"end_byte": 7575,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/ngtools/webpack/src/transformers/remove-ivy-jit-support-calls_spec.ts"
} |
angular-cli/packages/ngtools/webpack/src/transformers/remove-ivy-jit-support-calls_spec.ts_7575_17246 | ove-ivy-dev-calls', () => {
it('should allow removing only set class metadata with pure annotation', () => {
const output = tags.stripIndent`
export class AppModule {
}
AppModule.ɵmod = i0.ɵɵdefineNgModule({ type: AppModule, bootstrap: [AppComponent] });
AppModule.ɵinj = i0.ɵɵd... | {
"end_byte": 17246,
"start_byte": 7575,
"url": "https://github.com/angular/angular-cli/blob/main/packages/ngtools/webpack/src/transformers/remove-ivy-jit-support-calls_spec.ts"
} |
angular-cli/packages/ngtools/webpack/src/transformers/remove-ivy-jit-support-calls_spec.ts_17252_20983 | s', () => {
const output = tags.stripIndent`
export class AppModule {
}
AppModule.ɵmod = i0.ɵɵdefineNgModule({ type: AppModule, bootstrap: [AppComponent] });
AppModule.ɵinj = i0.ɵɵdefineInjector({ factory: function AppModule_Factory(t) { return new (t || AppModule)(); }, providers:... | {
"end_byte": 20983,
"start_byte": 17252,
"url": "https://github.com/angular/angular-cli/blob/main/packages/ngtools/webpack/src/transformers/remove-ivy-jit-support-calls_spec.ts"
} |
angular-cli/packages/ngtools/webpack/src/transformers/index.ts_0_274 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use 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 './elide_imports';
export * from './replace_resources';
| {
"end_byte": 274,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/ngtools/webpack/src/transformers/index.ts"
} |
angular-cli/packages/ngtools/webpack/src/transformers/replace_resources.ts_0_8997 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import * as ts from 'typescript';
import { InlineAngularResourceLoaderPath } from '../loaders/inline-resource';
exp... | {
"end_byte": 8997,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/ngtools/webpack/src/transformers/replace_resources.ts"
} |
angular-cli/packages/ngtools/webpack/src/transformers/replace_resources.ts_8999_10531 | function getDecoratorOrigin(
decorator: ts.Decorator,
typeChecker: ts.TypeChecker,
): DecoratorOrigin | null {
if (!ts.isCallExpression(decorator.expression)) {
return null;
}
let identifier: ts.Node;
let name = '';
if (ts.isPropertyAccessExpression(decorator.expression.expression)) {
identifier... | {
"end_byte": 10531,
"start_byte": 8999,
"url": "https://github.com/angular/angular-cli/blob/main/packages/ngtools/webpack/src/transformers/replace_resources.ts"
} |
angular-cli/packages/ngtools/webpack/src/transformers/spec_helpers.ts_0_3124 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import { basename } from 'path';
import * as ts from 'typescript';
// Test transform helpers.
const basefileName = ... | {
"end_byte": 3124,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/ngtools/webpack/src/transformers/spec_helpers.ts"
} |
angular-cli/packages/ngtools/webpack/src/loaders/inline-resource.ts_0_925 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import type { Compilation, LoaderContext } from 'webpack';
export const InlineAngularResourceLoaderPath = __filenam... | {
"end_byte": 925,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/ngtools/webpack/src/loaders/inline-resource.ts"
} |
angular-cli/packages/schematics/angular/no_typescript_runtime_dep_spec.js_0_1150 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
const fs = require('fs');
const path = require('path');
const pkg = path.dirname(require.resolve(__filename));
desc... | {
"end_byte": 1150,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/no_typescript_runtime_dep_spec.js"
} |
angular-cli/packages/schematics/angular/README.md_0_2886 | # @schematics/angular
This package contains a collection of [schematics](/packages/angular_devkit/schematics/README.md)
for generating an Angular application.
## Schematics
| Name | Description |
| -------------- | --... | {
"end_byte": 2886,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/README.md"
} |
angular-cli/packages/schematics/angular/BUILD.bazel_0_4568 | # 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:ts_json_sch... | {
"end_byte": 4568,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/BUILD.bazel"
} |
angular-cli/packages/schematics/angular/migrations/update-ssr-imports/migration.ts_0_2768 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use 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 { DirEntry, Rule, UpdateRecorder } from '@angular-devkit/schematics';
import * as ts from '../../third_party/... | {
"end_byte": 2768,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/migrations/update-ssr-imports/migration.ts"
} |
angular-cli/packages/schematics/angular/migrations/update-ssr-imports/migration_spec.ts_0_2219 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use 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 { EmptyTree } from '@angular-devkit/schematics';
import { Schema... | {
"end_byte": 2219,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/migrations/update-ssr-imports/migration_spec.ts"
} |
angular-cli/packages/schematics/angular/migrations/use-application-builder/migration.ts_0_4898 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use 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 {
DirEntry,
Rule,
SchematicContext,
SchematicsException,
Tree,
chain,
externalSchematic,
} from... | {
"end_byte": 4898,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/migrations/use-application-builder/migration.ts"
} |
angular-cli/packages/schematics/angular/migrations/use-application-builder/migration.ts_4900_12885 | function updateProjects(tree: Tree, context: SchematicContext) {
return updateWorkspace((workspace) => {
const rules: Rule[] = [];
for (const [name, project] of workspace.projects) {
if (project.extensions.projectType !== ProjectType.Application) {
// Only interested in application projects sin... | {
"end_byte": 12885,
"start_byte": 4900,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/migrations/use-application-builder/migration.ts"
} |
angular-cli/packages/schematics/angular/migrations/use-application-builder/migration.ts_12887_15446 | function updateStyleImports(tree: Tree, projectSourceRoot: string, buildTarget: TargetDefinition) {
const external = new Set<string>();
let needWorkspaceIncludePath = false;
for (const file of visit(tree.getDir(projectSourceRoot))) {
const [path, content, sass] = file;
const relativeBase = dirname(path);
... | {
"end_byte": 15446,
"start_byte": 12887,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/migrations/use-application-builder/migration.ts"
} |
angular-cli/packages/schematics/angular/migrations/use-application-builder/css-import-lexer.ts_0_3829 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
/**
* Determines if a unicode code point is a CSS whitespace character.
* @param code The unicode code point to te... | {
"end_byte": 3829,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/migrations/use-application-builder/css-import-lexer.ts"
} |
angular-cli/packages/schematics/angular/migrations/use-application-builder/migration_spec.ts_0_1299 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use 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 { EmptyTree } from '@angular-devkit/schematics';
import { SchematicTestRunner, UnitTestTree } from '@angular-... | {
"end_byte": 1299,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/migrations/use-application-builder/migration_spec.ts"
} |
angular-cli/packages/schematics/angular/migrations/use-application-builder/migration_spec.ts_1301_9260 | describe(`Migration to use the application builder`, () => {
const schematicName = 'use-application-builder';
const schematicRunner = new SchematicTestRunner(
'migrations',
require.resolve('../migration-collection.json'),
);
let tree: UnitTestTree;
beforeEach(() => {
tree = new UnitTestTree(new E... | {
"end_byte": 9260,
"start_byte": 1301,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/migrations/use-application-builder/migration_spec.ts"
} |
angular-cli/packages/schematics/angular/migrations/use-application-builder/migration_spec.ts_9264_12438 | it('should add SCSS workspace include path for root referenced @use specifiers with ".import" local file', async () => {
// Replace outputPath
tree.create(
'/project/app/src/styles.scss',
'@use "@angular/material";\n@use "some/path/abc"\n',
);
tree.create('/some/path/abc.scss', '');
tree... | {
"end_byte": 12438,
"start_byte": 9264,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/migrations/use-application-builder/migration_spec.ts"
} |
angular-cli/packages/schematics/angular/migrations/update-workspace-config/migration.ts_0_3279 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use 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 { Rule } from '@angular-devkit/schematics';
import { allTargetOptions, updateWorkspace } from '../../utility/... | {
"end_byte": 3279,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/migrations/update-workspace-config/migration.ts"
} |
angular-cli/packages/schematics/angular/migrations/update-workspace-config/migration_spec.ts_0_3271 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use 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 { EmptyTree } from '@angular-devkit/schematics';
import { SchematicTestRunner, UnitTestTree } from '@angular-... | {
"end_byte": 3271,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/migrations/update-workspace-config/migration_spec.ts"
} |
angular-cli/packages/schematics/angular/interface/index.ts_0_536 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use 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 { Rule } from '@angular-devkit/schematics';
import { generateFromFiles } from '../utility/generate-from-files... | {
"end_byte": 536,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/interface/index.ts"
} |
angular-cli/packages/schematics/angular/interface/index_spec.ts_0_2520 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use 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 { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing';
import { Schema as Applicati... | {
"end_byte": 2520,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/interface/index_spec.ts"
} |
angular-cli/packages/schematics/angular/interface/files/__name@dasherize____type__.ts.template_0_56 | export interface <%= prefix %><%= classify(name) %> {
}
| {
"end_byte": 56,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/interface/files/__name@dasherize____type__.ts.template"
} |
angular-cli/packages/schematics/angular/pipe/index.ts_0_1597 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use 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 {
Rule,
Tree,
apply,
applyTemplates,
chain,
filter,
mergeWith,
move,
noop,
strings,
url... | {
"end_byte": 1597,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/pipe/index.ts"
} |
angular-cli/packages/schematics/angular/pipe/index_spec.ts_0_7478 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use 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 { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing';
import { Schema as Applicati... | {
"end_byte": 7478,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/pipe/index_spec.ts"
} |
angular-cli/packages/schematics/angular/pipe/files/__name@dasherize@if-flat__/__name@dasherize__.pipe.spec.ts.template_0_248 | import { <%= classify(name) %>Pipe } from './<%= dasherize(name) %>.pipe';
describe('<%= classify(name) %>Pipe', () => {
it('create an instance', () => {
const pipe = new <%= classify(name) %>Pipe();
expect(pipe).toBeTruthy();
});
});
| {
"end_byte": 248,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/pipe/files/__name@dasherize@if-flat__/__name@dasherize__.pipe.spec.ts.template"
} |
angular-cli/packages/schematics/angular/pipe/files/__name@dasherize@if-flat__/__name@dasherize__.pipe.ts.template_0_295 | import { Pipe, PipeTransform } from '@angular/core';
@Pipe({
name: '<%= camelize(name) %>'<% if(!standalone) {%>,
standalone: false<%}%>
})
export class <%= classify(name) %>Pipe implements PipeTransform {
transform(value: unknown, ...args: unknown[]): unknown {
return null;
}
}
| {
"end_byte": 295,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/pipe/files/__name@dasherize@if-flat__/__name@dasherize__.pipe.ts.template"
} |
angular-cli/packages/schematics/angular/config/index.ts_0_2951 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use 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 {
Rule,
SchematicsException,
apply,
applyTemplates,
filter,
mergeWith,
move,
strings,
url,
... | {
"end_byte": 2951,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/config/index.ts"
} |
angular-cli/packages/schematics/angular/config/index_spec.ts_0_2681 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use 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 { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing';
import { Schema as Applicati... | {
"end_byte": 2681,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/config/index_spec.ts"
} |
angular-cli/packages/schematics/angular/config/files/karma.conf.js.template_0_1278 | // Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
require('karma-jasmine'),
requir... | {
"end_byte": 1278,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/config/files/karma.conf.js.template"
} |
angular-cli/packages/schematics/angular/environments/index.ts_0_5327 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use 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 { Rule, SchematicsException, chain } from '@angular-devkit/schematics';
import { AngularBuilder, TargetDefini... | {
"end_byte": 5327,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/environments/index.ts"
} |
angular-cli/packages/schematics/angular/environments/index_spec.ts_0_6612 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use 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 { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing';
import { Schema as Applicati... | {
"end_byte": 6612,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/environments/index_spec.ts"
} |
angular-cli/packages/schematics/angular/module/index.ts_0_5755 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use 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 {
Rule,
Tree,
apply,
applyTemplates,
chain,
filter,
mergeWith,
move,
noop,
schematic,
s... | {
"end_byte": 5755,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/module/index.ts"
} |
angular-cli/packages/schematics/angular/module/index_spec.ts_0_5168 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use 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 { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing';
import { Schema as Applicati... | {
"end_byte": 5168,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/module/index_spec.ts"
} |
angular-cli/packages/schematics/angular/module/index_spec.ts_5172_11808 | describe('lazy route generator', () => {
const options = {
...defaultOptions,
route: '/new-route',
module: 'app',
};
it('should generate a lazy loaded module with a routing module', async () => {
const tree = await schematicRunner.runSchematic('module', options, appTree);
cons... | {
"end_byte": 11808,
"start_byte": 5172,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/module/index_spec.ts"
} |
angular-cli/packages/schematics/angular/module/files/__name@dasherize@if-flat__/__name@dasherize__-routing.module.ts.template_0_476 | import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';<% if (lazyRoute) { %>
import { <%= classify(name) %>Component } from './<%= dasherize(name) %>.component';<% } %>
const routes: Routes = [<% if (lazyRoute) { %>{ path: '', component: <%= classify(name) %>Component }<% } %... | {
"end_byte": 476,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/module/files/__name@dasherize@if-flat__/__name@dasherize__-routing.module.ts.template"
} |
angular-cli/packages/schematics/angular/module/files/__name@dasherize@if-flat__/__name@dasherize__.module.ts.template_0_865 | import { NgModule } from '@angular/core';<% if (commonModule) { %>
import { CommonModule } from '@angular/common';<% } %><% if (lazyRouteWithoutRouteModule) { %>
import { Routes, RouterModule } from '@angular/router';<% } %>
<% if ((!lazyRoute && routing) || lazyRouteWithRouteModule) { %>
import { <%= classify(name) %>... | {
"end_byte": 865,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/module/files/__name@dasherize@if-flat__/__name@dasherize__.module.ts.template"
} |
angular-cli/packages/schematics/angular/workspace/index.ts_0_787 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use 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 {
Rule,
apply,
applyTemplates,
filter,
mergeWith,
noop,
strings,
url,
} from '@angular-devkit... | {
"end_byte": 787,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/workspace/index.ts"
} |
angular-cli/packages/schematics/angular/workspace/index_spec.ts_0_5257 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use 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 { SchematicTestRunner } from '@angular-devkit/schematics/testing';
import { parse as parseJson } from 'jsonc-... | {
"end_byte": 5257,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/workspace/index_spec.ts"
} |
angular-cli/packages/schematics/angular/workspace/files/angular.json.template_0_248 | {
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,<% if (packageManager) { %>
"cli": {
"packageManager": "<%= packageManager %>"
},<% } %>
"newProjectRoot": "<%= newProjectRoot %>",
"projects": {
}
}
| {
"end_byte": 248,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/workspace/files/angular.json.template"
} |
angular-cli/packages/schematics/angular/workspace/files/__dot__editorconfig.template_0_314 | # Editor configuration, see https://editorconfig.org
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true
[*.ts]
quote_type = single
ij_typescript_use_double_quotes = false
[*.md]
max_line_length = off
trim_trailing_whitespace = false
| {
"end_byte": 314,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/workspace/files/__dot__editorconfig.template"
} |
angular-cli/packages/schematics/angular/workspace/files/README.md.template_0_1498 | # <%= utils.classify(name) %>
This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version <%= version %>.
## Development server
To start a local development server, run:
```bash
ng serve
```
Once the server is running, open your browser and navigate to `http://localhost:4200/`. T... | {
"end_byte": 1498,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/workspace/files/README.md.template"
} |
angular-cli/packages/schematics/angular/workspace/files/__dot__gitignore.template_0_587 | # See https://docs.github.com/get-started/getting-started-with-git/ignoring-files for more about ignoring files.
# Compiled output
/dist
/tmp
/out-tsc
/bazel-out
# Node
/node_modules
npm-debug.log
yarn-error.log
# IDEs and editors
.idea/
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace
# Visual Stud... | {
"end_byte": 587,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/workspace/files/__dot__gitignore.template"
} |
angular-cli/packages/schematics/angular/workspace/files/tsconfig.json.template_0_967 | /* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
/* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
{
"compileOnSave": false,
"compilerOptions": {
"outDir": "./dist/out-tsc",... | {
"end_byte": 967,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/workspace/files/tsconfig.json.template"
} |
angular-cli/packages/schematics/angular/workspace/files/package.json.template_0_1618 | {
"name": "<%= utils.dasherize(name) %>",
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"watch": "ng build --watch --configuration development"<% if (!minimal) { %>,
"test": "ng test"<% } %>
},
"private": true,
"dependencies": {
"@angular/anim... | {
"end_byte": 1618,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/workspace/files/package.json.template"
} |
angular-cli/packages/schematics/angular/workspace/files/__dot__vscode/launch.json.template_0_498 | {
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "ng serve",
"type": "chrome",
"request": "launch",
"preLaunchTask": "npm: start",
"url": "http://localhost:4200/"
}<% if (!minimal) { %>,
{
... | {
"end_byte": 498,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/workspace/files/__dot__vscode/launch.json.template"
} |
angular-cli/packages/schematics/angular/workspace/files/__dot__vscode/extensions.json.template_0_130 | {
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=827846
"recommendations": ["angular.ng-template"]
}
| {
"end_byte": 130,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/workspace/files/__dot__vscode/extensions.json.template"
} |
angular-cli/packages/schematics/angular/workspace/files/__dot__vscode/tasks.json.template_0_966 | {
// For more information, visit: https://go.microsoft.com/fwlink/?LinkId=733558
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "start",
"isBackground": true,
"problemMatcher": {
"owner": "typescript",
"pattern": "$tsc",
"background": {
"act... | {
"end_byte": 966,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/workspace/files/__dot__vscode/tasks.json.template"
} |
angular-cli/packages/schematics/angular/enum/index.ts_0_526 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use 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 { Rule } from '@angular-devkit/schematics';
import { generateFromFiles } from '../utility/generate-from-files... | {
"end_byte": 526,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/enum/index.ts"
} |
angular-cli/packages/schematics/angular/enum/index_spec.ts_0_2760 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use 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 { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing';
import { Schema as Applicati... | {
"end_byte": 2760,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/enum/index_spec.ts"
} |
angular-cli/packages/schematics/angular/enum/files/__name@dasherize____type__.ts.template_0_38 | export enum <%= classify(name) %> {
}
| {
"end_byte": 38,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/enum/files/__name@dasherize____type__.ts.template"
} |
angular-cli/packages/schematics/angular/component/index.ts_0_2990 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use 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 {
FileOperator,
Rule,
SchematicsException,
Tree,
apply,
applyTemplates,
chain,
filter,
forE... | {
"end_byte": 2990,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/component/index.ts"
} |
angular-cli/packages/schematics/angular/component/index_spec.ts_0_576 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use 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 { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing';
import { Style as AppStyle, ... | {
"end_byte": 576,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/component/index_spec.ts"
} |
angular-cli/packages/schematics/angular/component/index_spec.ts_578_8563 | describe('Component Schematic', () => {
const schematicRunner = new SchematicTestRunner(
'@schematics/angular',
require.resolve('../collection.json'),
);
const defaultOptions: ComponentOptions = {
name: 'foo',
// path: 'src/app',
inlineStyle: false,
inlineTemplate: false,
displayBlock:... | {
"end_byte": 8563,
"start_byte": 578,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/component/index_spec.ts"
} |
angular-cli/packages/schematics/angular/component/index_spec.ts_8567_16535 | it('should respect the inlineStyle option', async () => {
const options = { ...defaultOptions, inlineStyle: true };
const tree = await schematicRunner.runSchematic('component', options, appTree);
const content = tree.readContent('/projects/bar/src/app/foo/foo.component.ts');
expect(content).toMatch(/sty... | {
"end_byte": 16535,
"start_byte": 8567,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/component/index_spec.ts"
} |
angular-cli/packages/schematics/angular/component/index_spec.ts_16539_22924 | describe('standalone=false', () => {
const defaultNonStandaloneOptions: ComponentOptions = {
...defaultOptions,
standalone: false,
project: 'baz',
};
beforeEach(async () => {
appTree = await schematicRunner.runSchematic(
'application',
{ ...appOptions, standalone: fa... | {
"end_byte": 22924,
"start_byte": 16539,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/component/index_spec.ts"
} |
angular-cli/packages/schematics/angular/component/files/__name@dasherize@if-flat__/__name@dasherize__.__type@dasherize__.spec.ts.template_0_838 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { <%= classify(name) %><%= classify(type) %> } from './<%= dasherize(name) %><%= type ? '.' + dasherize(type): '' %>';
describe('<%= classify(name) %><%= classify(type) %>', () => {
let component: <%= classify(name) %><%= classify(type) %>;
... | {
"end_byte": 838,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/component/files/__name@dasherize@if-flat__/__name@dasherize__.__type@dasherize__.spec.ts.template"
} |
angular-cli/packages/schematics/angular/component/files/__name@dasherize@if-flat__/__name@dasherize__.__type@dasherize__.ts.template_0_1079 | import { <% if(changeDetection !== 'Default') { %>ChangeDetectionStrategy, <% }%>Component<% if(!!viewEncapsulation) { %>, ViewEncapsulation<% }%> } from '@angular/core';
@Component({<% if(!skipSelector) {%>
selector: '<%= selector %>',<%}%><% if(standalone) {%>
imports: [],<%} else { %>
standalone: false,
<% ... | {
"end_byte": 1079,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/component/files/__name@dasherize@if-flat__/__name@dasherize__.__type@dasherize__.ts.template"
} |
angular-cli/packages/schematics/angular/component/files/__name@dasherize@if-flat__/__name@dasherize__.__type@dasherize__.html.template_0_37 | <p><%= dasherize(name) %> works!</p>
| {
"end_byte": 37,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/component/files/__name@dasherize@if-flat__/__name@dasherize__.__type@dasherize__.html.template"
} |
angular-cli/packages/schematics/angular/component/files/__name@dasherize@if-flat__/__name@dasherize__.__type@dasherize__.__style__.template_0_120 | <% if(displayBlock){ if(style != 'sass') { %>:host {
display: block;
}
<% } else { %>\:host
display: block;
<% }} %> | {
"end_byte": 120,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/component/files/__name@dasherize@if-flat__/__name@dasherize__.__type@dasherize__.__style__.template"
} |
angular-cli/packages/schematics/angular/server/index.ts_0_8821 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use 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, Path, basename, dirname, join, normalize } from '@angular-devkit/core';
import {
Rule,
Schem... | {
"end_byte": 8821,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/server/index.ts"
} |
angular-cli/packages/schematics/angular/server/index_spec.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 { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing';
import { parse as parseJson ... | {
"end_byte": 778,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/server/index_spec.ts"
} |
angular-cli/packages/schematics/angular/server/index_spec.ts_780_10275 | describe('Server Schematic', () => {
const schematicRunner = new SchematicTestRunner(
'@schematics/angular',
require.resolve('../collection.json'),
);
const defaultOptions: ServerOptions = {
project: 'bar',
};
const workspaceOptions: WorkspaceOptions = {
name: 'workspace',
newProjectRoot: ... | {
"end_byte": 10275,
"start_byte": 780,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/server/index_spec.ts"
} |
angular-cli/packages/schematics/angular/server/files/server-builder/ngmodule-src/main.server.ts.template_0_70 | export { AppServerModule as default } from './app/app.module.server';
| {
"end_byte": 70,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/server/files/server-builder/ngmodule-src/main.server.ts.template"
} |
angular-cli/packages/schematics/angular/server/files/server-builder/ngmodule-src/app/app.module.server.ts.template_0_318 | import { NgModule } from '@angular/core';
import { ServerModule } from '@angular/platform-server';
import { AppModule } from './app.module';
import { AppComponent } from './app.component';
@NgModule({
imports: [
AppModule,
ServerModule,
],
bootstrap: [AppComponent],
})
export class AppServerModule {}
| {
"end_byte": 318,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/server/files/server-builder/ngmodule-src/app/app.module.server.ts.template"
} |
angular-cli/packages/schematics/angular/server/files/server-builder/standalone-src/main.server.ts.template_0_264 | import { bootstrapApplication } from '@angular/platform-browser';
import { AppComponent } from './app/app.component';
import { config } from './app/app.config.server';
const bootstrap = () => bootstrapApplication(AppComponent, config);
export default bootstrap;
| {
"end_byte": 264,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/server/files/server-builder/standalone-src/main.server.ts.template"
} |
angular-cli/packages/schematics/angular/server/files/server-builder/standalone-src/app/app.config.server.ts.template_0_350 | import { mergeApplicationConfig, ApplicationConfig } from '@angular/core';
import { provideServerRendering } from '@angular/platform-server';
import { appConfig } from './app.config';
const serverConfig: ApplicationConfig = {
providers: [
provideServerRendering()
]
};
export const config = mergeApplicationCon... | {
"end_byte": 350,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/server/files/server-builder/standalone-src/app/app.config.server.ts.template"
} |
angular-cli/packages/schematics/angular/server/files/server-builder/root/tsconfig.server.json.template_0_519 | /* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
/* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
{
"extends": "./<%= tsConfigExtends %>",
"compilerOptions": {
"outDir": "<... | {
"end_byte": 519,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/server/files/server-builder/root/tsconfig.server.json.template"
} |
angular-cli/packages/schematics/angular/server/files/application-builder/ngmodule-src/main.server.ts.template_0_70 | export { AppServerModule as default } from './app/app.module.server';
| {
"end_byte": 70,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/server/files/application-builder/ngmodule-src/main.server.ts.template"
} |
angular-cli/packages/schematics/angular/server/files/application-builder/ngmodule-src/app/app.routes.server.ts.template_0_166 | import { RenderMode, ServerRoute } from '@angular/ssr';
export const serverRoutes: ServerRoute[] = [
{
path: '**',
renderMode: RenderMode.Prerender
}
];
| {
"end_byte": 166,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/server/files/application-builder/ngmodule-src/app/app.routes.server.ts.template"
} |
angular-cli/packages/schematics/angular/server/files/application-builder/ngmodule-src/app/app.module.server.ts.template_0_566 | import { NgModule } from '@angular/core';
import { ServerModule } from '@angular/platform-server';<% if(serverRouting) { %>
import { provideServerRoutesConfig } from '@angular/ssr';<% } %>
import { AppComponent } from './app.component';
import { AppModule } from './app.module';<% if(serverRouting) { %>
import { serverR... | {
"end_byte": 566,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/server/files/application-builder/ngmodule-src/app/app.module.server.ts.template"
} |
angular-cli/packages/schematics/angular/server/files/application-builder/standalone-src/main.server.ts.template_0_264 | import { bootstrapApplication } from '@angular/platform-browser';
import { AppComponent } from './app/app.component';
import { config } from './app/app.config.server';
const bootstrap = () => bootstrapApplication(AppComponent, config);
export default bootstrap;
| {
"end_byte": 264,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/server/files/application-builder/standalone-src/main.server.ts.template"
} |
angular-cli/packages/schematics/angular/server/files/application-builder/standalone-src/app/app.config.server.ts.template_0_601 | import { mergeApplicationConfig, ApplicationConfig } from '@angular/core';
import { provideServerRendering } from '@angular/platform-server';<% if(serverRouting) { %>
import { provideServerRoutesConfig } from '@angular/ssr';<% } %>
import { appConfig } from './app.config';<% if(serverRouting) { %>
import { serverRoutes... | {
"end_byte": 601,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/server/files/application-builder/standalone-src/app/app.config.server.ts.template"
} |
angular-cli/packages/schematics/angular/server/files/application-builder/standalone-src/app/app.routes.server.ts.template_0_166 | import { RenderMode, ServerRoute } from '@angular/ssr';
export const serverRoutes: ServerRoute[] = [
{
path: '**',
renderMode: RenderMode.Prerender
}
];
| {
"end_byte": 166,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/server/files/application-builder/standalone-src/app/app.routes.server.ts.template"
} |
angular-cli/packages/schematics/angular/library/index.ts_0_5803 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use 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 {
Rule,
SchematicContext,
Tree,
apply,
applyTemplates,
chain,
mergeWith,
move,
noop,
sche... | {
"end_byte": 5803,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/library/index.ts"
} |
angular-cli/packages/schematics/angular/library/index_spec.ts_0_8170 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use 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 { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing';
import { parse as parseJson ... | {
"end_byte": 8170,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/library/index_spec.ts"
} |
angular-cli/packages/schematics/angular/library/index_spec.ts_8174_16839 | describe(`update package.json`, () => {
it(`should add ng-packagr to devDependencies`, async () => {
const tree = await schematicRunner.runSchematic('library', defaultOptions, workspaceTree);
const packageJson = getJsonFileContent(tree, 'package.json');
expect(packageJson.devDependencies['ng-pack... | {
"end_byte": 16839,
"start_byte": 8174,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/library/index_spec.ts"
} |
angular-cli/packages/schematics/angular/library/files/ng-package.json.template_0_223 | {
"$schema": "<%= relativePathToWorkspaceRoot %>/node_modules/ng-packagr/ng-package.schema.json",
"dest": "<%= relativePathToWorkspaceRoot %>/<%= distRoot %>",
"lib": {
"entryFile": "src/<%= entryFile %>.ts"
}
} | {
"end_byte": 223,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/library/files/ng-package.json.template"
} |
angular-cli/packages/schematics/angular/library/files/tsconfig.lib.json.template_0_533 | /* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
/* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
{
"extends": "<%= relativePathToWorkspaceRoot %>/tsconfig.json",
"compilerOpti... | {
"end_byte": 533,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/library/files/tsconfig.lib.json.template"
} |
angular-cli/packages/schematics/angular/library/files/README.md.template_0_1498 | # <%= classify(name) %>
This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version <%= angularLatestVersion %>.
## Code scaffolding
Angular CLI includes powerful code scaffolding tools. To generate a new component, run:
```bash
ng generate component component-name
```
For a comp... | {
"end_byte": 1498,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/library/files/README.md.template"
} |
angular-cli/packages/schematics/angular/library/files/package.json.template_0_295 | {
"name": "<%= dasherize(packageName) %>",
"version": "0.0.1",
"peerDependencies": {
"@angular/common": "^<%= angularLatestVersion %>",
"@angular/core": "^<%= angularLatestVersion %>"
},
"dependencies": {
"tslib": "^<%= tsLibLatestVersion %>"
},
"sideEffects": false
}
| {
"end_byte": 295,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/library/files/package.json.template"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.