Skip to content

Commit b42b4f2

Browse files
committed
renames the parser option
1 parent 9140f4d commit b42b4f2

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

src/main.js renamed to src/parse.js

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import yamlParser from 'js-yaml';
33
import path from 'path';
44
import _ from 'lodash';
55
import fs from 'fs';
6-
import validate from './validator';
6+
// import validate from './validator';
77

88
const workingDir = 'tmp';
99

@@ -110,7 +110,6 @@ function rmDir(dir, rmSelf) {
110110
async function cleanupFiles(workingDir) {
111111

112112
try {
113-
114113
const gitModule = simpleGit(__dirname);
115114

116115
await gitModule.subModule(['deinit', '-f', workingDir]);
@@ -120,13 +119,9 @@ async function cleanupFiles(workingDir) {
120119
rmDir(workingDir);
121120

122121
return true;
123-
124122
} catch (error) {
125-
126123
return false;
127-
128124
}
129-
130125
}
131126

132127
/**
@@ -246,12 +241,15 @@ async function build({ repo, codeBranch, setupBranch, isLocal }) {
246241
}
247242
}
248243

249-
const isValid = validate(config);
244+
// const isValid = validate(config);
250245

251-
if (!isValid) return validate.errors;
246+
// if (!isValid) {
247+
// console.log(JSON.stringify(validate.errors, null, 2));
248+
// return;
249+
// }
252250

253251
return config;
254252

255253
}
256254

257-
module.exports = build;
255+
export default build;

0 commit comments

Comments
 (0)