mirror of
https://github.com/jfmengels/elm-review.git
synced 2024-11-27 02:19:27 +03:00
12 lines
370 B
JavaScript
12 lines
370 B
JavaScript
const fs = require('fs');
|
|
const { execSync } = require("child_process");
|
|
|
|
const files = fs.readdirSync(__dirname);
|
|
const elmFiles = files.filter(file => file.endsWith(".elm"));
|
|
|
|
elmFiles.forEach(elmFile => {
|
|
try {
|
|
execSync(`elm make ./${elmFile} 2> ./${elmFile.slice(0, -4)}.txt`, {encoding:"utf8", stdio: 'pipe', cwd: __dirname}).toString();
|
|
} catch (e) {}
|
|
});
|