UNPKG

@atomist/automation-client

Version:
19 lines (18 loc) 677 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const projectUtils_1 = require("../../project/util/projectUtils"); /** * Remove content from README specific to this project. * * @param project project whose README should be cleaned * @param description brief description of newly created project */ function cleanReadMe(description, project) { return projectUtils_1.doWithFiles(project, "README.md", readMe => { readMe.recordReplace(/^#[\\s\\S]*?## Development/, `# ${project.name} This project contains ${description}. ## Development`); }); } exports.cleanReadMe = cleanReadMe; //# sourceMappingURL=UniversalSeed.js.map