测试构建

This commit is contained in:
undefined committed 2020-05-10 17:03:16 +08:00
1 parent 27cfe81e31
commit 9156fa3a9b
6 files changed
+80 -48

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
const fs = require('fs');
const path = require('path');
const child = require('child_process');
exports.prebuild = async function prebuild() {
if (!fs.existsSync(path.resolve(__dirname, 'HydroJudger'))) {
const res = child.spawnSync('git clone https://github.com/hydro-dev/HydroJudger.git');
if (res.error) throw res.error;
}
};