grid-npm-auto-publish
Version:
33 lines (29 loc) • 613 B
JavaScript
/**
* grid-npm-auto-publish - 自动npm发布工具
* @version 1.0.0
*/
class GridNpmAutoPublish {
constructor() {
this.name = 'grid-npm-auto-publish';
this.version = '1.0.0';
}
/**
* 获取包信息
* @returns {Object} 包信息
*/
getInfo() {
return {
name: this.name,
version: this.version,
description: '自动npm发布工具'
};
}
/**
* 检查版本
* @returns {string} 当前版本
*/
getVersion() {
return this.version;
}
}
module.exports = GridNpmAutoPublish;