const fs = require("fs");
const { join, resolve } = require('path');
const execSync = require('child_process').execSync;
const { mergeUrl } = require('./url.utils');
const findPath = resolve('./dist/template');
const rootPath = resolve('./');
//文件版本记录
const fileVersionNote = {};
const toComPath = path => path.replace(//g, '/');
//获取版本号
const getVersion = (dir, fileName) => {
let dirPathPart = toComPath(dir).split('/');
dirPathPart.pop();
let dirPath = dirPathPart.join('/');
fileName = fileName.replace(/^s*(.*?)s*$/, '$1');
if (!/^//.test(fileName)) {
fileName = join(dirPath, fileName).replace(rootPath, '');
}else{
fil