index.js 910 B

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