@platform/react.ssr
Version:
A lightweight SSR (server-side-rendering) system for react apps bundled with ParcelJS and hosted on S3.
57 lines (56 loc) • 1.19 kB
TypeScript
import { S3, t } from '../common';
declare type IBundleArgs = {
bundleDir: string;
bucket: string;
bucketKey: string;
silent?: boolean;
};
declare type IManifestArgs = {
bucket: string;
source: string;
target: string;
silent?: boolean;
};
export declare function push(args: t.IS3Config & {
cli: t.ICmdApp;
}): {
bundle: (args: IBundleArgs) => Promise<{
bucket: string;
endpoint: string;
s3: {
source: string;
key: string;
}[];
manifest: typeof manifest;
}>;
manifest: (args: IManifestArgs) => Promise<{
manifest: typeof manifest;
}>;
};
export declare function bundle(args: {
cli: t.ICmdApp;
s3: S3;
bundleDir: string;
bucket: string;
bucketKey: string;
silent?: boolean;
}): Promise<{
bucket: string;
endpoint: string;
s3: {
source: string;
key: string;
}[];
manifest: typeof manifest;
}>;
export declare function manifest(args: {
cli: t.ICmdApp;
s3: S3;
bucket: string;
source: string;
target: string;
silent?: boolean;
}): Promise<{
manifest: typeof manifest;
}>;
export {};