forked from microsoft/rushstack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCleanAction.ts
More file actions
28 lines (22 loc) · 883 Bytes
/
CleanAction.ts
File metadata and controls
28 lines (22 loc) · 883 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
// See LICENSE in the project root for license information.
import { CommandLineAction } from '@microsoft/ts-command-line';
import { RushStackCommandLine } from './RushStackCommandLine';
import { BasicTasks } from '../logic/BasicTasks';
import { BuildContext } from '../logic/BuildContext';
export class CleanAction extends CommandLineAction {
constructor(parser: RushStackCommandLine) {
super({
actionName: 'clean',
summary: 'Delete all the intermediary files created during a build',
documentation: ''
});
}
protected onDefineParameters(): void { // override
}
protected onExecute(): Promise<void> { // override
const buildContext: BuildContext = new BuildContext();
BasicTasks.doClean(buildContext);
return Promise.resolve();
}
}