angular-cn/aio/tools/transforms/angular.io-package/processors/cleanGeneratedFiles.js

11 lines
261 B
JavaScript

const rimraf = require('rimraf');
module.exports = function cleanGeneratedFiles() {
return {
$runAfter: ['writing-files'],
$runBefore: ['writeFilesProcessor'],
$process: function() {
rimraf.sync('src/generated/{docs,*.json}');
}
};
};