@swell/cli
Version:
Swell's command line interface/utility
29 lines (28 loc) • 989 B
JavaScript
import { Flags } from '@oclif/core';
import { PushAppCommand } from '../../push-app-command.js';
import AppFrontendDev from './frontend/dev.js';
export default class AppDev extends PushAppCommand {
static examples = [
'swell app dev',
'swell app dev --storefront-id <id>',
'swell app dev --port 3000',
];
static flags = {
...AppFrontendDev.flags,
'storefront-id': Flags.string({
description: 'for storefront apps, identify a storefront to preview and push theme files to',
}),
'storefront-select': Flags.boolean({
default: false,
description: 'for storefront apps, prompt to select a storefront to preview',
}),
};
static summary = `Run an app in dev mode from your local machine.`;
static delayOrientation = true;
static orientation = {
env: 'test',
};
async run() {
await this.config.runCommand('app:frontend:dev', this.argv);
}
}