@ionic/cli-plugin-cordova
Version:
Ionic Cordova Plugin for Ionic CLI
35 lines (33 loc) • 1.78 kB
JavaScript
;
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
Object.defineProperty(exports, "__esModule", { value: true });
const chalk = require("chalk");
const cli_utils_1 = require("@ionic/cli-utils");
const base_1 = require("./base");
let RunCommand = class RunCommand extends base_1.CordovaRunCommand {
};
RunCommand = __decorate([
cli_utils_1.CommandMetadata({
name: 'run',
type: 'project',
description: 'Run an Ionic project on a connected device',
longDescription: `
Like running ${chalk.green('cordova run')} 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 device with browser development tools: ${chalk.bold('https://docs.ionic.io/tools/developer/#remote-debugging')}
`,
exampleCommands: ['', 'ios', 'ios -lcs', 'android --livereload -cs'],
inputs: [
{
name: 'platform',
description: `The platform to run: ${chalk.green('ios')}, ${chalk.green('android')}`,
}
],
options: base_1.CORDOVA_RUN_COMMAND_OPTIONS,
})
], RunCommand);
exports.RunCommand = RunCommand;