Skip to content

Commit

Permalink
fix: h5 yml
Browse files Browse the repository at this point in the history
  • Loading branch information
xsf0105 committed Jul 4, 2024
1 parent a286e18 commit afebe94
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions scripts/copydocs2react.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,11 @@ const copy = async () => {
let configPath = path.resolve(__dirname, "../example/src/config.json");
let configPkgPath = path.resolve(__dirname, `${quarkPath}/package.json`);
let quarkdDocsConfigPath = `${targetBaseUrl}/config.json`;
// let changelogPath = `${changeLogUrl}/CHANGELOG.md`;

// 判断 site_docs 文件是否存在根路径中
const existsRoot = await fse.pathExists(targetBaseUrl);
// const changelogExistsRoot = await fse.pathExists(changeLogUrl);

if (existsRoot) await removeFile(targetBaseUrl);
// if (changelogExistsRoot) await removeFile(changeLogUrl);

// 复制所有组件
const fromConfig = await fse.readJson(configPath);
Expand Down Expand Up @@ -99,15 +96,6 @@ const copy = async () => {
console.log(`${fromPkgConfig.version} success!`);
});
});

// 复制changelog
// await fse.copyFileSync(changelogPath, `${changeLogUrl}/changelog.md`);
// fse.readFile(changelogPath, (err, data) => {
// if (!err) {
// copyFile(changelogPath, `${changeLogUrl}/changelog.md`);
// }
// });
// await fse.copyFileSync(changelogPath, `${changeLogUrl}/changelog.en-US.md`);
};

copy();

0 comments on commit afebe94

Please sign in to comment.