@ionic/cli-plugin-cordova
Version:
Ionic Cordova Plugin for Ionic CLI
30 lines (28 loc) • 1.29 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const chalk = require("chalk");
const cli_utils_1 = require("@ionic/cli-utils");
const base_1 = require("./base");
let EmulateCommand = class EmulateCommand extends base_1.CordovaRunCommand {
};
EmulateCommand = tslib_1.__decorate([
cli_utils_1.CommandMetadata({
name: 'emulate',
type: 'project',
description: 'Emulate an Ionic project on a simulator or emulator',
longDescription: `
Like running ${chalk.green('cordova emulate')} directly, but also watches for changes in web assets and provides live-reload functionality with the ${chalk.green('--livereload')} option.
For Android and iOS, you can setup Remote Debugging on your emulator with browser development tools: ${chalk.bold('https://docs.ionic.io/tools/developer/#remote-debugging')}
`,
exampleCommands: ['', 'ios', 'ios -lc', 'android --livereload -cs'],
inputs: [
{
name: 'platform',
description: `The platform to emulate: ${chalk.green('ios')}, ${chalk.green('android')}`,
}
],
options: base_1.CORDOVA_RUN_COMMAND_OPTIONS,
})
], EmulateCommand);
exports.EmulateCommand = EmulateCommand;
;