_id stringlengths 21 254 | text stringlengths 1 93.7k | metadata dict |
|---|---|---|
angular-cli/packages/schematics/angular/application/files/standalone-files/src/app/app.config.ts.template_0_556 | import { ApplicationConfig, <% if(!experimentalZoneless) { %>provideZoneChangeDetection<% } else { %>provideExperimentalZonelessChangeDetection<% } %> } from '@angular/core';<% if (routing) { %>
import { provideRouter } from '@angular/router';
import { routes } from './app.routes';<% } %>
export const appConfig: Appl... | {
"end_byte": 556,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/application/files/standalone-files/src/app/app.config.ts.template"
} |
angular-cli/packages/schematics/angular/application/files/standalone-files/src/app/app.component.ts.template_0_568 | import { Component } from '@angular/core';<% if(routing) { %>
import { RouterOutlet } from '@angular/router';<% } %>
@Component({
selector: '<%= selector %>',
imports: [<% if(routing) { %>RouterOutlet<% } %>],<% if(inlineTemplate) { %>
template: `
<h1>Welcome to {{title}}!</h1>
<% if (routing) {
%>... | {
"end_byte": 568,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/application/files/standalone-files/src/app/app.component.ts.template"
} |
angular-cli/packages/schematics/angular/application/files/common-files/tsconfig.app.json.template_0_490 | /* 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": 490,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/application/files/common-files/tsconfig.app.json.template"
} |
angular-cli/packages/schematics/angular/application/files/common-files/tsconfig.spec.json.template_0_500 | /* 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": 500,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/application/files/common-files/tsconfig.spec.json.template"
} |
angular-cli/packages/schematics/angular/application/files/common-files/src/index.html.template_0_327 | <!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title><%= utils.classify(name) %></title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
</head>
<body>
<<%= selector %>></<%= selector %>>
</body>
<... | {
"end_byte": 327,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/application/files/common-files/src/index.html.template"
} |
angular-cli/packages/schematics/angular/application/files/common-files/src/styles.__style__.template_0_80 | /* You can add global styles to this file, and also import other style files */
| {
"end_byte": 80,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/application/files/common-files/src/styles.__style__.template"
} |
angular-cli/packages/schematics/angular/application/files/common-files/src/app/app.component.html.template_0_4367 | <!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->
<!-- * * * * * * * * * * * The content below * * * * * * * * * * * -->
<!-- * * * * * * * * * * is only a placeholder * * * * * * * * * * -->
<!-- * * * * * * * * * * and can be replaced. * * * * * * * * * * -->
<!-- * * * * * * * * * * * * * * * *... | {
"end_byte": 4367,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/application/files/common-files/src/app/app.component.html.template"
} |
angular-cli/packages/schematics/angular/application/files/common-files/src/app/app.component.html.template_4369_4656 | <main class="main">
<div class="content">
<div class="left-side">
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 982 239"
fill="none"
class="angular-logo"
>
<g clip-path="url(#a)">
<path
fill="url(#b)" | {
"end_byte": 4656,
"start_byte": 4369,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/application/files/common-files/src/app/app.component.html.template"
} |
angular-cli/packages/schematics/angular/application/files/common-files/src/app/app.component.html.template_4669_7816 | d="M388.676 191.625h30.849L363.31 31.828h-35.758l-56.215 159.797h30.848l13.174-39.356h60.061l13.256 39.356Zm-65.461-62.675 21.602-64.311h1.227l21.602 64.311h-44.431Zm126.831-7.527v70.202h-28.23V71.839h27.002v20.374h1.392c2.782-6.71 7.2-12.028 13.255-15.956 6.056-3.927 13.584-5.89 22.503-5.89 8.264 0 15.465 1.8 21.684 5... | {
"end_byte": 7816,
"start_byte": 4669,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/application/files/common-files/src/app/app.component.html.template"
} |
angular-cli/packages/schematics/angular/application/files/common-files/src/app/app.component.html.template_7817_9024 | 12.6 2.864 5.318 4.337 11.946 4.337 19.883v80.184h-27.166v-16.446h-.9c-1.719 3.355-4.092 6.464-7.201 9.328-3.109 2.864-6.955 5.237-11.619 6.955-4.828 1.718-10.229 2.536-16.529 2.536Zm7.364-20.701c5.646 0 10.556-1.145 14.729-3.354 4.173-2.291 7.364-5.237 9.655-9.001 2.292-3.763 3.355-7.854 3.355-12.273v-14.155c-.9.737-2... | {
"end_byte": 9024,
"start_byte": 7817,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/application/files/common-files/src/app/app.component.html.template"
} |
angular-cli/packages/schematics/angular/application/files/common-files/src/app/app.component.html.template_9025_9080 | />
<path
fill="url(#c)" | {
"end_byte": 9080,
"start_byte": 9025,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/application/files/common-files/src/app/app.component.html.template"
} |
angular-cli/packages/schematics/angular/application/files/common-files/src/app/app.component.html.template_9093_12240 | d="M388.676 191.625h30.849L363.31 31.828h-35.758l-56.215 159.797h30.848l13.174-39.356h60.061l13.256 39.356Zm-65.461-62.675 21.602-64.311h1.227l21.602 64.311h-44.431Zm126.831-7.527v70.202h-28.23V71.839h27.002v20.374h1.392c2.782-6.71 7.2-12.028 13.255-15.956 6.056-3.927 13.584-5.89 22.503-5.89 8.264 0 15.465 1.8 21.684 5... | {
"end_byte": 12240,
"start_byte": 9093,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/application/files/common-files/src/app/app.component.html.template"
} |
angular-cli/packages/schematics/angular/application/files/common-files/src/app/app.component.html.template_12241_13448 | 12.6 2.864 5.318 4.337 11.946 4.337 19.883v80.184h-27.166v-16.446h-.9c-1.719 3.355-4.092 6.464-7.201 9.328-3.109 2.864-6.955 5.237-11.619 6.955-4.828 1.718-10.229 2.536-16.529 2.536Zm7.364-20.701c5.646 0 10.556-1.145 14.729-3.354 4.173-2.291 7.364-5.237 9.655-9.001 2.292-3.763 3.355-7.854 3.355-12.273v-14.155c-.9.737-2... | {
"end_byte": 13448,
"start_byte": 12241,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/application/files/common-files/src/app/app.component.html.template"
} |
angular-cli/packages/schematics/angular/application/files/common-files/src/app/app.component.html.template_13449_18515 | />
</g>
<defs>
<radialGradient
id="c"
cx="0"
cy="0"
r="1"
gradientTransform="rotate(118.122 171.182 60.81) scale(205.794)"
gradientUnits="userSpaceOnUse"
>
<stop stop-color="#FF41F8" />
... | {
"end_byte": 18515,
"start_byte": 13449,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/application/files/common-files/src/app/app.component.html.template"
} |
angular-cli/packages/schematics/angular/application/files/common-files/src/app/app.component.html.template_18516_19367 | d="M27.4896 1.52422C27.9301 1.96749 28.2463 2.51866 28.4068 3.12258C29.0004 5.35161 29.0004 10 29.0004 10C29.0004 10 29.0004 14.6484 28.4068 16.8774C28.2463 17.4813 27.9301 18.0325 27.4896 18.4758C27.0492 18.9191 26.5 19.2389 25.8972 19.4032C23.6778 20 14.8068 20 14.8068 20C14.8068 20 5.93586 20 3.71651 1... | {
"end_byte": 19367,
"start_byte": 18516,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/application/files/common-files/src/app/app.component.html.template"
} |
angular-cli/packages/schematics/angular/application/files/common-files/src/app/app.component.html.template_19369_19927 | <!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->
<!-- * * * * * * * * * * * The content above * * * * * * * * * * * * -->
<!-- * * * * * * * * * * is only a placeholder * * * * * * * * * * * -->
<!-- * * * * * * * * * * and can be replaced. * * * * * * * * * * * -->
<!-- * * * * * * * * * * * *... | {
"end_byte": 19927,
"start_byte": 19369,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/application/files/common-files/src/app/app.component.html.template"
} |
angular-cli/packages/schematics/angular/service/index.ts_0_651 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of 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": 651,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/service/index.ts"
} |
angular-cli/packages/schematics/angular/service/index_spec.ts_0_2785 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of 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": 2785,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/service/index_spec.ts"
} |
angular-cli/packages/schematics/angular/service/files/__name@dasherize@if-flat__/__name@dasherize__.service.spec.ts.template_0_433 | import { TestBed } from '@angular/core/testing';
import { <%= classify(name) %>Service } from './<%= dasherize(name) %>.service';
describe('<%= classify(name) %>Service', () => {
let service: <%= classify(name) %>Service;
beforeEach(() => {
TestBed.configureTestingModule({});
service = TestBed.inject(<%=... | {
"end_byte": 433,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/service/files/__name@dasherize@if-flat__/__name@dasherize__.service.spec.ts.template"
} |
angular-cli/packages/schematics/angular/service/files/__name@dasherize@if-flat__/__name@dasherize__.service.ts.template_0_150 | import { Injectable } from '@angular/core';
@Injectable({
providedIn: 'root'
})
export class <%= classify(name) %>Service {
constructor() { }
}
| {
"end_byte": 150,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/service/files/__name@dasherize@if-flat__/__name@dasherize__.service.ts.template"
} |
angular-cli/packages/schematics/angular/guard/index.ts_0_1898 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of 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 } from '@angular-devkit/schematics';
import { generateFromFiles } from '../utili... | {
"end_byte": 1898,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/guard/index.ts"
} |
angular-cli/packages/schematics/angular/guard/index_spec.ts_0_8362 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of 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 Applicat... | {
"end_byte": 8362,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/guard/index_spec.ts"
} |
angular-cli/packages/schematics/angular/guard/implements-files/__name@dasherize__.guard.ts.template_0_1020 | import { Injectable } from '@angular/core';
import { <%= routerImports %> } from '@angular/router';
@Injectable({
providedIn: 'root'
})
export class <%= classify(name) %>Guard implements <%= implementations %> {
<% if (implements.includes('CanActivate')) { %>canActivate(
route: ActivatedRouteSnapshot,
stat... | {
"end_byte": 1020,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/guard/implements-files/__name@dasherize__.guard.ts.template"
} |
angular-cli/packages/schematics/angular/guard/implements-files/__name@dasherize__.guard.spec.ts.template_0_417 | import { TestBed } from '@angular/core/testing';
import { <%= classify(name) %>Guard } from './<%= dasherize(name) %>.guard';
describe('<%= classify(name) %>Guard', () => {
let guard: <%= classify(name) %>Guard;
beforeEach(() => {
TestBed.configureTestingModule({});
guard = TestBed.inject(<%= classify(na... | {
"end_byte": 417,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/guard/implements-files/__name@dasherize__.guard.spec.ts.template"
} |
angular-cli/packages/schematics/angular/guard/type-files/__name@dasherize__.guard.ts.template_0_505 | import { <%= guardType %> } from '@angular/router';
export const <%= camelize(name) %>Guard: <%= guardType %><% if (guardType === 'CanDeactivateFn') { %><unknown><% } %> = <%
if (guardType === 'CanMatchFn') { %>(route, segments)<% }
%><% if (guardType === 'CanActivateFn') { %>(route, state)<% }
%><% if (guardTyp... | {
"end_byte": 505,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/guard/type-files/__name@dasherize__.guard.ts.template"
} |
angular-cli/packages/schematics/angular/guard/type-files/__name@dasherize__.guard.spec.ts.template_0_536 | import { TestBed } from '@angular/core/testing';
import { <%= guardType %> } from '@angular/router';
import { <%= camelize(name) %>Guard } from './<%= dasherize(name) %>.guard';
describe('<%= camelize(name) %>Guard', () => {
const executeGuard: <%= guardType %> = (...guardParameters) =>
TestBed.runInInjectio... | {
"end_byte": 536,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/guard/type-files/__name@dasherize__.guard.spec.ts.template"
} |
angular-cli/packages/schematics/angular/e2e/index.ts_0_2916 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of 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,
chain,
mergeWith,
move,
strings,
url,
}... | {
"end_byte": 2916,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/e2e/index.ts"
} |
angular-cli/packages/schematics/angular/e2e/index_spec.ts_0_3034 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of 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": 3034,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/e2e/index_spec.ts"
} |
angular-cli/packages/schematics/angular/e2e/files/protractor.conf.js.template_0_904 | // @ts-check
// Protractor configuration file, see link for more information
// https://github.com/angular/protractor/blob/master/lib/config.ts
const { SpecReporter, StacktraceOption } = require('jasmine-spec-reporter');
/**
* @type { import("protractor").Config }
*/
exports.config = {
allScriptsTimeout: 11000,
... | {
"end_byte": 904,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/e2e/files/protractor.conf.js.template"
} |
angular-cli/packages/schematics/angular/e2e/files/tsconfig.json.template_0_499 | /* 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": 499,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/e2e/files/tsconfig.json.template"
} |
angular-cli/packages/schematics/angular/e2e/files/src/app.e2e-spec.ts.template_0_663 | import { browser, logging } from 'protractor';
import { AppPage } from './app.po';
describe('workspace-project App', () => {
let page: AppPage;
beforeEach(() => {
page = new AppPage();
});
it('should display welcome message', async () => {
await page.navigateTo();
expect(await page.getTitleText()... | {
"end_byte": 663,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/e2e/files/src/app.e2e-spec.ts.template"
} |
angular-cli/packages/schematics/angular/e2e/files/src/app.po.ts.template_0_254 | import { browser, by, element } from 'protractor';
export class AppPage {
async navigateTo(): Promise<unknown> {
return browser.get(browser.baseUrl);
}
async getTitleText(): Promise<string> {
return element(by.css('h1')).getText();
}
}
| {
"end_byte": 254,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/e2e/files/src/app.po.ts.template"
} |
angular-cli/packages/schematics/angular/ng-new/index.ts_0_2723 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of 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,
chain,
empty,
mergeWith,
move,
noop,
schematic,
} ... | {
"end_byte": 2723,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/ng-new/index.ts"
} |
angular-cli/packages/schematics/angular/ng-new/index_spec.ts_0_3535 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of 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 { Schema as NgNewOptions } from './... | {
"end_byte": 3535,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/ng-new/index_spec.ts"
} |
angular-cli/packages/schematics/angular/interceptor/index.ts_0_940 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of 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": 940,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/interceptor/index.ts"
} |
angular-cli/packages/schematics/angular/interceptor/index_spec.ts_0_3459 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of 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": 3459,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/interceptor/index_spec.ts"
} |
angular-cli/packages/schematics/angular/interceptor/class-files/__name@dasherize@if-flat__/__name@dasherize__.interceptor.spec.ts.template_0_507 | import { TestBed } from '@angular/core/testing';
import { <%= classify(name) %>Interceptor } from './<%= dasherize(name) %>.interceptor';
describe('<%= classify(name) %>Interceptor', () => {
beforeEach(() => TestBed.configureTestingModule({
providers: [
<%= classify(name) %>Interceptor
]
}));
i... | {
"end_byte": 507,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/interceptor/class-files/__name@dasherize@if-flat__/__name@dasherize__.interceptor.spec.ts.template"
} |
angular-cli/packages/schematics/angular/interceptor/class-files/__name@dasherize@if-flat__/__name@dasherize__.interceptor.ts.template_0_426 | import { Injectable } from '@angular/core';
import {
HttpRequest,
HttpHandler,
HttpEvent,
HttpInterceptor
} from '@angular/common/http';
import { Observable } from 'rxjs';
@Injectable()
export class <%= classify(name) %>Interceptor implements HttpInterceptor {
constructor() {}
intercept(request: HttpRequ... | {
"end_byte": 426,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/interceptor/class-files/__name@dasherize@if-flat__/__name@dasherize__.interceptor.ts.template"
} |
angular-cli/packages/schematics/angular/interceptor/functional-files/__name@dasherize@if-flat__/__name@dasherize__.interceptor.spec.ts.template_0_545 | import { TestBed } from '@angular/core/testing';
import { HttpInterceptorFn } from '@angular/common/http';
import { <%= camelize(name) %>Interceptor } from './<%= dasherize(name) %>.interceptor';
describe('<%= camelize(name) %>Interceptor', () => {
const interceptor: HttpInterceptorFn = (req, next) =>
TestBed.... | {
"end_byte": 545,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/interceptor/functional-files/__name@dasherize@if-flat__/__name@dasherize__.interceptor.spec.ts.template"
} |
angular-cli/packages/schematics/angular/interceptor/functional-files/__name@dasherize@if-flat__/__name@dasherize__.interceptor.ts.template_0_166 | import { HttpInterceptorFn } from '@angular/common/http';
export const <%= camelize(name) %>Interceptor: HttpInterceptorFn = (req, next) => {
return next(req);
};
| {
"end_byte": 166,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/interceptor/functional-files/__name@dasherize@if-flat__/__name@dasherize__.interceptor.ts.template"
} |
angular-cli/packages/schematics/angular/web-worker/index.ts_0_4500 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of 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, normalize, tags } from '@angular-devkit/core';
import {
Rule,
SchematicContext,
SchematicsExcep... | {
"end_byte": 4500,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/web-worker/index.ts"
} |
angular-cli/packages/schematics/angular/web-worker/index_spec.ts_0_3487 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of 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": 3487,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/web-worker/index_spec.ts"
} |
angular-cli/packages/schematics/angular/web-worker/files/worker-tsconfig/tsconfig.worker.json.template_0_400 | /* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
{
"extends": "<%= relativePathToWorkspaceRoot %>/tsconfig.json",
"compilerOptions": {
"outDir": "<%= relativePathToWorkspaceRoot %>/out-tsc/worker",
"lib": [
"es2018",
"webwo... | {
"end_byte": 400,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/web-worker/files/worker-tsconfig/tsconfig.worker.json.template"
} |
angular-cli/packages/schematics/angular/web-worker/files/worker/__name@dasherize__.worker.ts.template_0_157 | /// <reference lib="webworker" />
addEventListener('message', ({ data }) => {
const response = `worker response to ${data}`;
postMessage(response);
});
| {
"end_byte": 157,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/web-worker/files/worker/__name@dasherize__.worker.ts.template"
} |
angular-cli/packages/schematics/angular/resolver/index.ts_0_607 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of 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": 607,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/resolver/index.ts"
} |
angular-cli/packages/schematics/angular/resolver/index_spec.ts_0_3937 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of 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": 3937,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/resolver/index_spec.ts"
} |
angular-cli/packages/schematics/angular/resolver/class-files/__name@dasherize__.resolver.spec.ts.template_0_441 | import { TestBed } from '@angular/core/testing';
import { <%= classify(name) %>Resolver } from './<%= dasherize(name) %>.resolver';
describe('<%= classify(name) %>Resolver', () => {
let resolver: <%= classify(name) %>Resolver;
beforeEach(() => {
TestBed.configureTestingModule({});
resolver = TestBed.inje... | {
"end_byte": 441,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/resolver/class-files/__name@dasherize__.resolver.spec.ts.template"
} |
angular-cli/packages/schematics/angular/resolver/class-files/__name@dasherize__.resolver.ts.template_0_416 | import { Injectable } from '@angular/core';
import {
Router, Resolve,
RouterStateSnapshot,
ActivatedRouteSnapshot
} from '@angular/router';
import { Observable, of } from 'rxjs';
@Injectable({
providedIn: 'root'
})
export class <%= classify(name) %>Resolver implements Resolve<boolean> {
resolve(route: Activa... | {
"end_byte": 416,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/resolver/class-files/__name@dasherize__.resolver.ts.template"
} |
angular-cli/packages/schematics/angular/resolver/functional-files/__name@dasherize__.resolver.spec.ts.template_0_555 | import { TestBed } from '@angular/core/testing';
import { ResolveFn } from '@angular/router';
import { <%= camelize(name) %>Resolver } from './<%= dasherize(name) %>.resolver';
describe('<%= camelize(name) %>Resolver', () => {
const executeResolver: ResolveFn<boolean> = (...resolverParameters) =>
TestBed.run... | {
"end_byte": 555,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/resolver/functional-files/__name@dasherize__.resolver.spec.ts.template"
} |
angular-cli/packages/schematics/angular/resolver/functional-files/__name@dasherize__.resolver.ts.template_0_149 | import { ResolveFn } from '@angular/router';
export const <%= camelize(name) %>Resolver: ResolveFn<boolean> = (route, state) => {
return true;
};
| {
"end_byte": 149,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/resolver/functional-files/__name@dasherize__.resolver.ts.template"
} |
angular-cli/packages/schematics/angular/service-worker/index.ts_0_5788 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of 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, normalize, tags } from '@angular-devkit/core';
import {
Rule,
SchematicContext,
SchematicsExcep... | {
"end_byte": 5788,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/service-worker/index.ts"
} |
angular-cli/packages/schematics/angular/service-worker/index_spec.ts_0_8843 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of 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 { SchematicTestRunner, UnitTestTree } from '@angular-devkit/sche... | {
"end_byte": 8843,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/service-worker/index_spec.ts"
} |
angular-cli/packages/schematics/angular/service-worker/files/ngsw-config.json.template_0_672 | {
"$schema": "<%= relativePathToWorkspaceRoot %>/node_modules/@angular/service-worker/config/schema.json",
"index": "/index.html",
"assetGroups": [
{
"name": "app",
"installMode": "prefetch",
"resources": {
"files": [
"/favicon.ico",
"/index.csr.html",
"... | {
"end_byte": 672,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/service-worker/files/ngsw-config.json.template"
} |
angular-cli/packages/schematics/angular/utility/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/schematics/angular/utility/eol.ts"
} |
angular-cli/packages/schematics/angular/utility/validation.ts_0_1181 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import { SchematicsException } from '@angular-devkit/schematics';
// Must start with a letter, and must contain onl... | {
"end_byte": 1181,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/utility/validation.ts"
} |
angular-cli/packages/schematics/angular/utility/dependencies.ts_0_1780 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import { Tree } from '@angular-devkit/schematics';
import { JSONFile } from './json-file';
const PKG_JSON_PATH = '/... | {
"end_byte": 1780,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/utility/dependencies.ts"
} |
angular-cli/packages/schematics/angular/utility/find-module_spec.ts_0_7720 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of 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, Tree } from '@angular-devkit/schematics';
import { ModuleOptions, buildRelativePath, findModule,... | {
"end_byte": 7720,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/utility/find-module_spec.ts"
} |
angular-cli/packages/schematics/angular/utility/change.ts_0_4347 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import { UpdateRecorder } from '@angular-devkit/schematics';
export interface Host {
write(path: string, content:... | {
"end_byte": 4347,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/utility/change.ts"
} |
angular-cli/packages/schematics/angular/utility/paths_spec.ts_0_1101 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import { relativePathToWorkspaceRoot } from './paths';
describe('paths', () => {
describe('relativePathToWorkspac... | {
"end_byte": 1101,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/utility/paths_spec.ts"
} |
angular-cli/packages/schematics/angular/utility/dependencies_spec.ts_0_3017 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of 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 { UnitTestTree } from '@angular-devkit/schematics/tes... | {
"end_byte": 3017,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/utility/dependencies_spec.ts"
} |
angular-cli/packages/schematics/angular/utility/dependency_spec.ts_0_1040 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of 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,
Rule,
SchematicContext,
TaskConfigurationGenerator,
Tree,
callRule,
chain,
} from ... | {
"end_byte": 1040,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/utility/dependency_spec.ts"
} |
angular-cli/packages/schematics/angular/utility/dependency_spec.ts_1042_9247 | describe('addDependency', () => {
it('adds a package to "dependencies" by default', async () => {
const tree = new EmptyTree();
tree.create(
'/package.json',
JSON.stringify({
dependencies: {},
}),
);
const rule = addDependency('@angular/core', '^14.0.0');
await testRule... | {
"end_byte": 9247,
"start_byte": 1042,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/utility/dependency_spec.ts"
} |
angular-cli/packages/schematics/angular/utility/dependency_spec.ts_9251_14674 | it('does not schedule a package install task if version is the same', async () => {
const tree = new EmptyTree();
tree.create(
'/package.json',
JSON.stringify({
dependencies: { '@angular/core': '^14.0.0' },
}),
);
const rule = addDependency('@angular/core', '^14.0.0');
co... | {
"end_byte": 14674,
"start_byte": 9251,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/utility/dependency_spec.ts"
} |
angular-cli/packages/schematics/angular/utility/workspace.ts_0_5739 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of 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 { Rule, Tree, noop } from '@angular-devkit/schematic... | {
"end_byte": 5739,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/utility/workspace.ts"
} |
angular-cli/packages/schematics/angular/utility/add-declaration-to-ng-module.ts_0_1998 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of 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, strings } from '@angular-devkit/schematics';
import * as ts from '../third_party/github.com/Mic... | {
"end_byte": 1998,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/utility/add-declaration-to-ng-module.ts"
} |
angular-cli/packages/schematics/angular/utility/ast-utils_spec.ts_0_1304 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import { tags } from '@angular-devkit/core';
import { HostTree } from '@angular-devkit/schematics';
import * as ts f... | {
"end_byte": 1304,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/utility/ast-utils_spec.ts"
} |
angular-cli/packages/schematics/angular/utility/ast-utils_spec.ts_1306_9008 | describe('ast utils', () => {
let modulePath: string;
let moduleContent: string;
beforeEach(() => {
modulePath = '/src/app/app.module.ts';
moduleContent = `
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from '... | {
"end_byte": 9008,
"start_byte": 1306,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/utility/ast-utils_spec.ts"
} |
angular-cli/packages/schematics/angular/utility/ast-utils_spec.ts_9012_10435 | describe('insertAfterLastOccurrence', () => {
const filePath = './src/foo.ts';
it('should work for the default scenario', () => {
const fileContent = `const arr = ['foo'];`;
const source = getTsSource(filePath, fileContent);
const arrayNode = findNodes(source.getChildren()[0], ts.SyntaxKind.A... | {
"end_byte": 10435,
"start_byte": 9012,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/utility/ast-utils_spec.ts"
} |
angular-cli/packages/schematics/angular/utility/ast-utils_spec.ts_10439_19492 | describe('addRouteDeclarationToModule', () => {
it('should throw an error when there is no router module', () => {
const moduleContent = `
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component'... | {
"end_byte": 19492,
"start_byte": 10439,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/utility/ast-utils_spec.ts"
} |
angular-cli/packages/schematics/angular/utility/ast-utils_spec.ts_19498_26623 | it('should add a route to the routes argument of RouteModule', () => {
const moduleContent = `
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
@NgModule({
declarations: [... | {
"end_byte": 26623,
"start_byte": 19498,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/utility/ast-utils_spec.ts"
} |
angular-cli/packages/schematics/angular/utility/ast-utils_spec.ts_26627_29224 | describe('hasTopLevelIdentifier', () => {
const filePath = './src/foo.ts';
it('should find top-level class declaration with a specific name', () => {
const fileContent = `class FooClass {}`;
const source = getTsSource(filePath, fileContent);
expect(hasTopLevelIdentifier(source, 'FooClass')).... | {
"end_byte": 29224,
"start_byte": 26627,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/utility/ast-utils_spec.ts"
} |
angular-cli/packages/schematics/angular/utility/dependency.ts_0_6141 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of 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 } from '@angular-devkit/schematics';
import { NodePackageInstallTask } from '@angula... | {
"end_byte": 6141,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/utility/dependency.ts"
} |
angular-cli/packages/schematics/angular/utility/parse-name.ts_0_606 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import { Path, basename, dirname, join, normalize } from '@angular-devkit/core';
export interface Location {
name... | {
"end_byte": 606,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/utility/parse-name.ts"
} |
angular-cli/packages/schematics/angular/utility/ng-ast-utils.ts_0_2983 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import { SchematicsException, Tree } from '@angular-devkit/schematics';
import { dirname, join } from 'node:path/pos... | {
"end_byte": 2983,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/utility/ng-ast-utils.ts"
} |
angular-cli/packages/schematics/angular/utility/latest-versions.ts_0_814 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
// We could have used TypeScripts' `resolveJsonModule` to make the `latestVersion` object typesafe,
// but ts_librar... | {
"end_byte": 814,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/utility/latest-versions.ts"
} |
angular-cli/packages/schematics/angular/utility/workspace-models.ts_0_5396 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use 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 enum ProjectType {
Application = 'application',
Library = 'library',
}
/**
* An enum of the official An... | {
"end_byte": 5396,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/utility/workspace-models.ts"
} |
angular-cli/packages/schematics/angular/utility/generate-from-files.ts_0_1696 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of 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": 1696,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/utility/generate-from-files.ts"
} |
angular-cli/packages/schematics/angular/utility/workspace_spec.ts_0_4033 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of 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, Rule, SchematicContext, Tree, callRule } from '@angular-devkit/schematics';
import { getWorkspac... | {
"end_byte": 4033,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/utility/workspace_spec.ts"
} |
angular-cli/packages/schematics/angular/utility/json-file.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 { JsonValue } from '@angular-devkit/core';
import { Tree } from '@angular-devkit/schematics';
import {
Node... | {
"end_byte": 2681,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/utility/json-file.ts"
} |
angular-cli/packages/schematics/angular/utility/index.ts_0_660 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
// Workspace related rules and types
export {
type ProjectDefinition,
type TargetDefinition,
type WorkspaceDef... | {
"end_byte": 660,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/utility/index.ts"
} |
angular-cli/packages/schematics/angular/utility/ast-utils.ts_0_7565 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of 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 '../third_party/github.com/Microsoft/TypeScript/lib... | {
"end_byte": 7565,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/utility/ast-utils.ts"
} |
angular-cli/packages/schematics/angular/utility/ast-utils.ts_7567_15754 | function _angularImportsFromNode(node: ts.ImportDeclaration): { [name: string]: string } {
const ms = node.moduleSpecifier;
let modulePath: string;
switch (ms.kind) {
case ts.SyntaxKind.StringLiteral:
modulePath = (ms as ts.StringLiteral).text;
break;
default:
return {};
}
if (!modu... | {
"end_byte": 15754,
"start_byte": 7567,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/utility/ast-utils.ts"
} |
angular-cli/packages/schematics/angular/utility/ast-utils.ts_15756_22222 | /**
* Custom function to insert an export into NgModule. It also imports it.
*/
export function addBootstrapToModule(
source: ts.SourceFile,
modulePath: string,
classifiedName: string,
importPath: string,
): Change[] {
return addSymbolToNgModuleMetadata(source, modulePath, 'bootstrap', classifiedName, impor... | {
"end_byte": 22222,
"start_byte": 15756,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/utility/ast-utils.ts"
} |
angular-cli/packages/schematics/angular/utility/paths.ts_0_442 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of 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, relative } from 'node:path/posix';
export function relativePathToWorkspaceRoot(projectRoot: string |... | {
"end_byte": 442,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/utility/paths.ts"
} |
angular-cli/packages/schematics/angular/utility/find-module.ts_0_4560 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import { NormalizedRoot, Path, dirname, join, normalize, relative } from '@angular-devkit/core';
import { DirEntry, ... | {
"end_byte": 4560,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/utility/find-module.ts"
} |
angular-cli/packages/schematics/angular/utility/parse-name_spec.ts_0_1349 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import { parseName } from './parse-name';
describe('parse-name', () => {
it('should handle just the name', () => ... | {
"end_byte": 1349,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/utility/parse-name_spec.ts"
} |
angular-cli/packages/schematics/angular/utility/project-targets.ts_0_410 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import { SchematicsException } from '@angular-devkit/schematics';
export function targetBuildNotFoundError(): Schem... | {
"end_byte": 410,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/utility/project-targets.ts"
} |
angular-cli/packages/schematics/angular/utility/test/create-app-module.ts_0_795 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import { UnitTestTree } from '@angular-devkit/schematics/testing';
export function createAppModule(tree: UnitTestTr... | {
"end_byte": 795,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/utility/test/create-app-module.ts"
} |
angular-cli/packages/schematics/angular/utility/test/get-file-content.ts_0_485 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import { Tree } from '@angular-devkit/schematics';
export function getFileContent(tree: Tree, path: string): string... | {
"end_byte": 485,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/utility/test/get-file-content.ts"
} |
angular-cli/packages/schematics/angular/utility/test/index.ts_0_277 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use 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 './create-app-module';
export * from './get-file-content';
| {
"end_byte": 277,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/utility/test/index.ts"
} |
angular-cli/packages/schematics/angular/utility/standalone/app_config.ts_0_4085 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import { Tree } from '@angular-devkit/schematics';
import { dirname, join } from 'path';
import ts from '../../third... | {
"end_byte": 4085,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/utility/standalone/app_config.ts"
} |
angular-cli/packages/schematics/angular/utility/standalone/code_block.ts_0_4111 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of 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 } from '@angular-devkit/schematics';
import ts from '../../third_party/github.com/Microsoft/Type... | {
"end_byte": 4111,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/utility/standalone/code_block.ts"
} |
angular-cli/packages/schematics/angular/utility/standalone/rules.ts_0_8408 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of 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 { Rule, SchematicsException, Tree, chain } from '@angular-devkit... | {
"end_byte": 8408,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/utility/standalone/rules.ts"
} |
angular-cli/packages/schematics/angular/utility/standalone/util.ts_0_5054 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import { SchematicsException, Tree } from '@angular-devkit/schematics';
import ts from '../../third_party/github.com... | {
"end_byte": 5054,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/utility/standalone/util.ts"
} |
angular-cli/packages/schematics/angular/utility/standalone/index.ts_0_341 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use 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 { addRootImport, addRootProvider } from './rules';
export type { PendingCode, CodeBlockCallback, CodeBlock } ... | {
"end_byte": 341,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/utility/standalone/index.ts"
} |
angular-cli/packages/schematics/angular/utility/standalone/rules_spec.ts_0_1781 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of 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, callRule } from '@angular-devkit/schematics';
import { SchematicTestRunner } ... | {
"end_byte": 1781,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/utility/standalone/rules_spec.ts"
} |
angular-cli/packages/schematics/angular/utility/standalone/rules_spec.ts_1785_11343 | describe('addRootImport', () => {
it('should add a root import to an NgModule-based app', async () => {
await setupProject();
await testRule(
addRootImport(
projectName,
({ code, external }) => code`${external('MyModule', '@my/module')}.forRoot([])`,
),
host,... | {
"end_byte": 11343,
"start_byte": 1785,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/utility/standalone/rules_spec.ts"
} |
angular-cli/packages/schematics/angular/utility/standalone/rules_spec.ts_11349_14019 | it('should throw an error if there is no bootstrapApplication call', async () => {
await setupProject(true);
host.overwrite(getPathWithinProject('main.ts'), '');
const promise = testRule(
addRootImport(
projectName,
({ code, external }) => code`${external('MyModule', '@my/... | {
"end_byte": 14019,
"start_byte": 11349,
"url": "https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/utility/standalone/rules_spec.ts"
} |
angular-cli/packages/angular_devkit/core/README.md_0_4301 | # Core
> Shared utilities for Angular DevKit.
# Exception
# Json
## Schema
### SchemaValidatorResult
```
export interface SchemaValidatorResult {
success: boolean;
errors?: string[];
}
```
### SchemaValidator
```
export interface SchemaValidator {
(data: any): Observable<SchemaValidatorResult>;
}
```
###... | {
"end_byte": 4301,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/README.md"
} |
angular-cli/packages/angular_devkit/core/BUILD.bazel_0_2515 | load("@npm//@angular/build-tooling/bazel/api-golden:index.bzl", "api_golden_test_npm_package")
load("@npm//@bazel/jasmine:index.bzl", "jasmine_node_test")
load("//tools:defaults.bzl", "pkg_npm", "ts_library")
# Copyright Google Inc. All Rights Reserved.
#
# Use of this source code is governed by an MIT-style license t... | {
"end_byte": 2515,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/BUILD.bazel"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.