index.js 984 B

12345678910111213141516171819202122232425
  1. "use strict";
  2. Object.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. */
  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;