2023-05-27 15:48:25 +02:00
|
|
|
const {rimrafSync} = require('rimraf');
|
2018-01-15 16:10:32 +00:00
|
|
|
module.exports = function cleanGeneratedFiles() {
|
|
|
|
|
return {
|
|
|
|
|
$runAfter: ['writing-files'],
|
|
|
|
|
$runBefore: ['writeFilesProcessor'],
|
|
|
|
|
$process: function() {
|
2023-05-27 15:48:25 +02:00
|
|
|
rimrafSync('src/generated/{docs,*.json}', {glob: true});
|
2018-01-15 16:10:32 +00:00
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
};
|