Skip to content

Commit

Permalink
Update transform_file.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaMan123 committed Jun 11, 2022
1 parent 98e3e12 commit d68a89e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/transform_file.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ function readFile(file) {
function getVariableNameOfNS(raw, namespace) {
const regex = new RegExp(`\\s*(.+)=\\s*${namespace.replaceAll('.', '\\.')}[^(]+`, 'm');
const result = regex.exec(raw);
console.log(regex.source, namespace,result && result[1].trim())
return result ? result[1].trim() : namespace;
}

Expand Down Expand Up @@ -359,9 +358,9 @@ function convert(options = {}) {
return convertFile('class', path.resolve(srcDir, file), overwriteExisitingFiles ? false : name => path.resolve(srcDir, `${name}.${ext}`));
});
finalize(mixinsDir, additionalFiles);
return;
//return;
console.error(`failed files:`);
failed.map(console.error)
}

convert({ overwriteExisitingFiles: false });
convert({ overwriteExisitingFiles: true });

0 comments on commit d68a89e

Please sign in to comment.