We should to provide an opportunity save stat of files.
By default should be turned off because this affects performance.
Example
const tartifacts = require('tartifacts');
const artifacts = [
{
dest: 'dest-dir',
includes: 'sources/**',
excludes: 'sources/exlib/**'
}
];
tartifacts(artifacts, {
stat: true // save stat
})
.then(() => {
const list = fs.readdirSync('dest-dir');
console.log(list);
});
We should to provide an opportunity save stat of files.
By default should be turned off because this affects performance.
Example