swaf-boilerplate/scripts/clean.js

13 lines
227 B
JavaScript
Raw Normal View History

const fs = require('fs');
[
2021-11-20 19:54:59 +01:00
'intermediates',
'dist',
2021-11-20 19:54:59 +01:00
'public',
].forEach(file => {
if (fs.existsSync(file)) {
console.log('Cleaning', file, '...');
fs.rmSync(file, {recursive: true});
}
});