Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb42b4f2

Browse files
committed
renames the parser option
1 parent9140f4d commitb42b4f2

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

‎src/main.jsrenamed 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
importpathfrom'path';
44
import_from'lodash';
55
importfsfrom'fs';
6-
importvalidatefrom'./validator';
6+
//import validate from './validator';
77

88
constworkingDir='tmp';
99

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

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

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

122121
returntrue;
123-
124122
}catch(error){
125-
126123
returnfalse;
127-
128124
}
129-
130125
}
131126

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

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

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

253251
returnconfig;
254252

255253
}
256254

257-
module.exports=build;
255+
exportdefaultbuild;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp