Add cordova clean command (#957)
* Add cordova clean command * add cordova clean in cordova test case * add clean in cordova command test case
This commit is contained in:
Родитель
98c2a214be
Коммит
571dfb0967
|
@ -105,6 +105,12 @@
|
|||
"dark": "./images/sync.svg",
|
||||
"light": "./images/sync-light.svg"
|
||||
}
|
||||
},
|
||||
{
|
||||
"command": "cordova.clean",
|
||||
"title": "Cordova: Clean",
|
||||
"category": "Cordova",
|
||||
"enablement": "!config.security.workspace.trust.enabled || isWorkspaceTrusted"
|
||||
}
|
||||
],
|
||||
"keybindings": [
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT license. See LICENSE file in the project root for details.
|
||||
|
||||
import { CordovaCommandHelper } from "../../utils/cordovaCommandHelper";
|
||||
import { commandWrapper } from "./commandUtil";
|
||||
|
||||
export class CordovaClean {
|
||||
static codeName = "cordova.clean";
|
||||
|
||||
static createHandler = async () => {
|
||||
commandWrapper(CordovaCommandHelper.executeCordovaCommand, ["clean"]);
|
||||
};
|
||||
}
|
|
@ -10,3 +10,4 @@ export * from "./ionicPrepare";
|
|||
export * from "./ionicRun";
|
||||
export * from "./simulateAndroid";
|
||||
export * from "./simulateIos";
|
||||
export * from "./clean";
|
||||
|
|
|
@ -33,6 +33,7 @@ suite("extensionContext", () => {
|
|||
"cordova.prepare",
|
||||
"cordova.simulate.android",
|
||||
"cordova.simulate.ios",
|
||||
"cordova.clean",
|
||||
]);
|
||||
});
|
||||
});
|
||||
|
|
Загрузка…
Ссылка в новой задаче