1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 | const core_1 = require("@angular-devkit/core");
|
11 | const schematics_1 = require("@angular-devkit/schematics");
|
12 | const latest_versions_1 = require("../utility/latest-versions");
|
13 | function 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 | }
|
25 | exports.default = default_1;
|