Skip to content

Commit 6766549

Browse files
Merge pull request #19 from eugene-matvejev/v0.1.7.2
v0.1.7.2
2 parents fef2bf5 + 4b0e642 commit 6766549

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/processor.js

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
const fs = require('fs');
22
const deepmerge = require('deepmerge');
33
const File = require('./file');
4+
const chalk = require('chalk')
45
const overwriteFieldValue = require('node-object-field-resolver');
56

67
module.exports = class Processor {
@@ -11,16 +12,24 @@ module.exports = class Processor {
1112

1213
process() {
1314
this.files = [];
15+
console.log(chalk.yellow(`>>> PROCESSING FILES`));
1416

1517
this.config.forEach(config => {
1618
let file = this.processFile(config);
1719

1820
this.files.push(file);
21+
console.log(chalk.yellow(`>>>>> ${file.getSourcePath()}`));
1922
})
2023
}
2124

2225
write() {
23-
this.files.forEach(file => fs.writeFile(file.getOutputPath(), JSON.stringify(file.getContent(), null, 2), 'UTF-8'));
26+
console.log(chalk.green(`>>> WRITING FILES`));
27+
28+
this.files.forEach(file => {
29+
console.log(chalk.green(`>>>>> ${file.getOutputPath()}`));
30+
31+
fs.writeFile(file.getOutputPath(), JSON.stringify(file.getContent(), null, 2), 'UTF-8')
32+
});
2433
}
2534

2635
/**

0 commit comments

Comments
 (0)