UNPKG

@platform/react.ssr

Version:

An SSR (server-side-render) system for react apps bundled with ParcelJS and hosted on S3.

22 lines (21 loc) 638 B
import { Config } from '../config'; import { cli, log } from './common'; export async function run() { const config = await Config.create(); let manifest; log.info(); await cli .tasks() .task('pull latest manifest', async (e) => { manifest = await config.manifest.local.ensureLatest({ minimal: true }); }) .run({ concurrent: true }); log.info(); if (!manifest) { log.error(`Manifest could not be found.`); return cli.exit(1); } log.info.gray(` url: ${manifest.baseUrl}`); log.info.gray(` local: ${config.manifest.local.path}`); log.info(); }