code: function getBaesVsersion(dir, callBack) {
          fs.readdir(`${dir}/`, (err, files) => {
              let dirList = [],
                  baseVersion;
              if (err) {
                  console.log('第一次部署中...');
                  fs.mkdir(dir, () => {
                      callBack([1, 1, 1]);
                  });
              } else {
                  if (files.length == 0) {
                      files = ['1.1.1'];
                  }
                  console.log('部署目标已存在，正在更新中...');
                  files.forEach((v)=> {
                      let intV = v.replace(/\./g, '');
                      if (!!parseInt(intV)) {
                          dirList.push(intV);
                      }
                  });
                  baseVersion = Math.max.apply(null, dirList).toString().split('');
                  callBack(baseVersion);
              }
          });
      }
docs: 判断部署次数，并进行初始化目录
  @param dir
  @param callBack