frontend/.pnpm-store/v3/files/73/fe45b40891823c11f2961996165e99689607aaeb65b22c1660e9f99484472d106403058dd91709e6c366aa498b31734591dd4d517c12f866c6cffaa2afffa0

40 lines
1.2 KiB
Plaintext

import Plugin from '../../lib/plugin/Plugin.js';
class MyPlugin extends Plugin {
init() {
this.log.info(`${this.namespace}:${this.getContext('name')}:init`);
}
getName() {
this.log.info(`${this.namespace}:${this.getContext('name')}:getName`);
return 'new-project-name';
}
getLatestVersion() {
this.log.info(`${this.namespace}:${this.getContext('name')}:getLatestVersion`);
return '1.2.3';
}
getIncrement() {
this.log.info(`${this.namespace}:${this.getContext('name')}:getIncrement`);
return 'minor';
}
getIncrementedVersionCI() {
this.log.info(`${this.namespace}:${this.getContext('name')}:getIncrementedVersionCI`);
}
beforeBump() {
this.log.info(`${this.namespace}:${this.getContext('name')}:beforeBump`);
}
bump(version) {
this.log.info(`${this.namespace}:${this.getContext('name')}:bump:${version}`);
}
beforeRelease() {
this.log.info(`${this.namespace}:${this.getContext('name')}:beforeRelease`);
}
release() {
this.log.info(`${this.namespace}:${this.getContext('name')}:release`);
}
afterRelease() {
this.log.info(`${this.namespace}:${this.getContext('name')}:afterRelease`);
}
}
export default MyPlugin;