UNPKG

@coat/cli

Version:

TODO: See #3

19 lines (18 loc) 672 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getAllTemplates = getAllTemplates; var _gatherExtendedTemplates = require("./gather-extended-templates"); /** * Retrieves all extended templates by the current project and adds * the current coat manifest file as the last overriding template. * * @param context The context of the current coat project */ function getAllTemplates(context) { const extendedTemplates = (0, _gatherExtendedTemplates.gatherExtendedTemplates)(context); // Include the current coat manifest as the final template that should // be applied. return [...extendedTemplates, context.coatManifest]; }