generator-pre-commit/app/index.js

13 lines
291 B
JavaScript

const Generator = require("yeoman-generator");
module.exports = class extends Generator {
async writing() {
await this.fs.copyTpl(
this.templatePath('pre-commit-config.yaml.ejs'),
this.destinationPath('.pre-commit-config.yaml.ejs')
);
}
};