@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) • 680 B
JavaScript
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 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();
}