@lomray/vite-ssr-boost 2.5.1 → 2.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/interfaces/fc-route.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { FC, PropsWithChildren } from 'react';
|
|
2
2
|
import { RouteObject } from 'react-router/dist/lib/context';
|
|
3
|
+
import { FCC } from "./fc.js";
|
|
3
4
|
import { IRequestContext } from "../node/render.js";
|
|
4
5
|
declare module '@remix-run/router' {
|
|
5
6
|
interface LoaderFunctionArgs {
|
|
@@ -11,7 +12,7 @@ declare module '@remix-run/router' {
|
|
|
11
12
|
}
|
|
12
13
|
declare const keys: readonly ["loader", "action", "ErrorBoundary", "errorElement"];
|
|
13
14
|
type IRouteParams = Pick<RouteObject, (typeof keys)[number]> & {
|
|
14
|
-
Suspense?:
|
|
15
|
+
Suspense?: FCC<Record<string, any>>;
|
|
15
16
|
};
|
|
16
17
|
type FCRoute<TProps = Record<string, any>> = FC<TProps> & IRouteParams;
|
|
17
18
|
type FCCRoute<TProps = Record<string, any>> = FC<PropsWithChildren<TProps>> & IRouteParams;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fc-route.js","sources":["../../src/interfaces/fc-route.ts"],"sourcesContent":["import type { FC, PropsWithChildren } from 'react';\nimport type { RouteObject } from 'react-router/dist/lib/context';\nimport type { IRequestContext } from '@node/render';\n\ndeclare module '@remix-run/router' {\n // eslint-disable-next-line @typescript-eslint/naming-convention\n export interface LoaderFunctionArgs {\n context?: IRequestContext;\n }\n\n // eslint-disable-next-line @typescript-eslint/naming-convention\n export interface ActionFunctionArgs {\n context?: IRequestContext;\n }\n}\n\nconst keys = ['loader', 'action', 'ErrorBoundary', 'errorElement'] as const;\n\ntype IRouteParams = Pick<RouteObject, (typeof keys)[number]> & {
|
|
1
|
+
{"version":3,"file":"fc-route.js","sources":["../../src/interfaces/fc-route.ts"],"sourcesContent":["import type { FC, PropsWithChildren } from 'react';\nimport type { RouteObject } from 'react-router/dist/lib/context';\nimport type { FCC } from '@interfaces/fc';\nimport type { IRequestContext } from '@node/render';\n\ndeclare module '@remix-run/router' {\n // eslint-disable-next-line @typescript-eslint/naming-convention\n export interface LoaderFunctionArgs {\n context?: IRequestContext;\n }\n\n // eslint-disable-next-line @typescript-eslint/naming-convention\n export interface ActionFunctionArgs {\n context?: IRequestContext;\n }\n}\n\nconst keys = ['loader', 'action', 'ErrorBoundary', 'errorElement'] as const;\n\ntype IRouteParams = Pick<RouteObject, (typeof keys)[number]> & {\n Suspense?: FCC<Record<string, any>>;\n};\n\ntype FCRoute<TProps = Record<string, any>> = FC<TProps> & IRouteParams;\ntype FCCRoute<TProps = Record<string, any>> = FC<PropsWithChildren<TProps>> & IRouteParams;\n\nexport type { FCRoute, FCCRoute, IRouteParams };\n\nexport { keys };\n"],"names":["keys"],"mappings":"AAiBM,MAAAA,EAAO,CAAC,SAAU,SAAU,gBAAiB"}
|
package/package.json
CHANGED
package/workflow/Dockerfile
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
FROM node:20.10.0-alpine
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
LABEL org.opencontainers.image.title="vite-ssr-boost"
|
|
4
|
+
LABEL org.opencontainers.image.description="Container to run pre-built 'vite-ssr-boost' applications"
|
|
5
|
+
LABEL org.opencontainers.image.authors="Yarmaliuk Mikhail <mikhail.yarmaliuk@lomray.com>"
|
|
6
|
+
LABEL org.opencontainers.image.url="https://github.com/Lomray-Software/vite-ssr-boost"
|
|
7
|
+
LABEL org.opencontainers.image.vendor="Lomray Software"
|
|
8
|
+
LABEL org.opencontainers.image.licenses=MIT
|
|
4
9
|
|
|
5
10
|
ARG BUILD_PATH
|
|
6
11
|
ARG RUN_TYPE=ssr
|
|
@@ -15,10 +20,13 @@ RUN mkdir -p $WEB_PATH
|
|
|
15
20
|
|
|
16
21
|
WORKDIR $WEB_PATH
|
|
17
22
|
|
|
18
|
-
COPY
|
|
19
|
-
COPY
|
|
20
|
-
COPY
|
|
23
|
+
COPY package.json ./
|
|
24
|
+
COPY package-lock.json* ./
|
|
25
|
+
COPY yarn.lock* ./
|
|
26
|
+
COPY pnpm-lock.yaml* ./
|
|
21
27
|
|
|
22
28
|
RUN ${INSTALL_COMMAND}
|
|
23
29
|
|
|
30
|
+
COPY ${BUILD_PATH} $WEB_PATH/build
|
|
31
|
+
|
|
24
32
|
CMD npm run start:${TYPE} -- --host
|