You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
794 B
32 lines
794 B
9 years ago
|
"use strict";
|
||
|
|
||
7 years ago
|
import glob = require("glob");
|
||
9 years ago
|
|
||
7 years ago
|
export = (params, processor) => ({
|
||
7 years ago
|
"process": () => glob("**/obj/{Debug,Release}/*.{dll,pdb,xml}", {
|
||
|
"cwd": processor.context.exported,
|
||
|
"dot": true
|
||
8 years ago
|
}, (err, files) => {
|
||
|
if (err) {
|
||
|
processor.onError(err);
|
||
7 years ago
|
|
||
8 years ago
|
return processor.done();
|
||
|
}
|
||
9 years ago
|
|
||
8 years ago
|
if (!files || !files.length) {
|
||
|
return processor.done();
|
||
|
}
|
||
9 years ago
|
|
||
8 years ago
|
return processor.processTask({
|
||
7 years ago
|
"params": {
|
||
|
"tasks": files.map((file) => ({
|
||
|
"name": file,
|
||
|
"params": { "filename": file },
|
||
|
"type": "deletefromcode"
|
||
8 years ago
|
}))
|
||
7 years ago
|
},
|
||
|
"type": "parallel"
|
||
8 years ago
|
}, processor.done.bind(processor));
|
||
|
})
|
||
8 years ago
|
});
|