play managed publishing: console plan/verify play-publish-changes, ready-to-publish items in play status, desktop hint
This commit is contained in:
parent
29a9683ab7
commit
1bb43fd4a0
20 changed files with 184 additions and 9 deletions
|
|
@ -47,6 +47,12 @@ export async function run(ctx: Ctx): Promise<void> {
|
|||
const { projectSignals } = await import('../lib/project-signals');
|
||||
ids.signals = projectSignals(detectProject(root));
|
||||
} catch { /* not scanned */ }
|
||||
if (form === 'play-publish-changes' && args.has('lookup') && cfg.play?.packageName) {
|
||||
try {
|
||||
const { readyFromApi } = await import('../play/publish-ready');
|
||||
ids.readyChanges = await readyFromApi(root, cfg);
|
||||
} catch { /* not read: the plan says so */ }
|
||||
}
|
||||
if (args.has('all') && form !== 'play-app-content') throw new Error('console plan: --all is for play-app-content (every App content card inline)');
|
||||
const plan = consolePlan(form, cfg, ids, { all: args.has('all') });
|
||||
if (json) return printJson(plan);
|
||||
|
|
|
|||
|
|
@ -39,6 +39,10 @@ export async function run(ctx: Ctx): Promise<void> {
|
|||
const text = inline ?? await readText(from!);
|
||||
if (!text.trim()) throw new Error('console verify: the page text is empty');
|
||||
r = verifyText(form, config, text);
|
||||
} else if (form === 'play-publish-changes') {
|
||||
const { readyFromApi } = await import('../play/publish-ready');
|
||||
const { verifyPublishChangesApi } = await import('../lib/console-verify');
|
||||
r = verifyPublishChangesApi(await readyFromApi(root, config));
|
||||
} else if (form === 'apple-app-record' || form === 'apple-age-rating') {
|
||||
const bundleId = config.apple?.bundleId;
|
||||
if (!bundleId) throw new Error('console verify: apple.bundleId is not set');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue