UNPKG

@platform/react.ssr

Version:

A lightweight SSR (server-side-rendering) system for react apps bundled with ParcelJS and hosted on S3.

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