mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-14 17:43:52 +08:00
29 lines
678 B
TypeScript
29 lines
678 B
TypeScript
/**
|
|
* @license
|
|
* 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.io/license
|
|
*/
|
|
import { strings } from '@angular-devkit/core';
|
|
import {
|
|
Rule,
|
|
apply,
|
|
mergeWith,
|
|
template,
|
|
url,
|
|
} from '@angular-devkit/schematics';
|
|
import { latestVersions } from '../utility/latest-versions';
|
|
import { Schema as WorkspaceOptions } from './schema';
|
|
|
|
export default function (options: WorkspaceOptions): Rule {
|
|
return mergeWith(apply(url('./files'), [
|
|
template({
|
|
utils: strings,
|
|
...options,
|
|
'dot': '.',
|
|
latestVersions,
|
|
}),
|
|
]));
|
|
}
|