/
githubmirror
/
angular-cli
Обзор
Документация
Войти
/
githubmirror
/
angular-cli
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/schematics/angular/resolver/index.ts
17 строк
612 B
Charles Lyding
refactor(@schematics/angular): use `generateFromFiles` helper in even more cases
07 апр 2025, 14:19
07 апр 2025, 14:19
df85980
Код
Авторство
О чём код?
/** * @license * Copyright Google LLC All Rights Reserved. * * Use 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 { Rule } from '@angular-devkit/schematics'; import { generateFromFiles } from '../utility/generate-from-files'; import type { Schema as ResolverOptions } from './schema'; export default function (options: ResolverOptions): Rule { const templateFilesDirectory = options.functional ? './functional-files' : './class-files'; return generateFromFiles({ ...options, templateFilesDirectory }); }