UNPKG

984 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3/**
4 * @license
5 * Copyright Google Inc. All Rights Reserved.
6 *
7 * Use of this source code is governed by an MIT-style license that can be
8 * found in the LICENSE file at https://angular.io/license
9 */
10const core_1 = require("@angular-devkit/core");
11const schematics_1 = require("@angular-devkit/schematics");
12const latest_versions_1 = require("../utility/latest-versions");
13function default_1(options) {
14 const minimalFilesRegExp = /(.editorconfig|tslint.json)\.template$/;
15 return schematics_1.mergeWith(schematics_1.apply(schematics_1.url('./files'), [
16 options.minimal ? schematics_1.filter(path => !minimalFilesRegExp.test(path)) : schematics_1.noop(),
17 schematics_1.applyTemplates({
18 utils: core_1.strings,
19 ...options,
20 'dot': '.',
21 latestVersions: latest_versions_1.latestVersions,
22 }),
23 ]));
24}
25exports.default = default_1;