vitrify 0.15.3 → 0.16.0
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/dist/bin/build.js +2 -1
- package/dist/bin/dev.js +1 -0
- package/dist/types/bin/dev.d.ts +3 -5
- package/dist/types/frameworks/vue/server.d.ts +3 -2
- package/dist/types/helpers/logger.d.ts +0 -1
- package/package.json +26 -26
- package/src/node/bin/build.ts +2 -1
- package/src/node/bin/dev.ts +1 -0
- package/src/node/index.ts +1 -0
package/dist/bin/build.js
CHANGED
package/dist/bin/dev.js
CHANGED
package/dist/types/bin/dev.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
/// <reference types="node" />
|
|
3
1
|
import type { LogLevel, InlineConfig, ViteDevServer } from 'vite';
|
|
4
2
|
import type { Server } from 'net';
|
|
5
3
|
import type { FastifyInstance } from 'fastify';
|
|
@@ -47,16 +45,16 @@ export declare function createServer({ port, logLevel, ssr, framework, host, app
|
|
|
47
45
|
resolve: Required<import("vite").ResolveOptions> & {
|
|
48
46
|
alias: import("vite").Alias[];
|
|
49
47
|
};
|
|
50
|
-
plugins: readonly import("vite").Plugin
|
|
48
|
+
plugins: readonly import("vite").Plugin[];
|
|
51
49
|
css: import("vite").ResolvedCSSOptions;
|
|
52
|
-
esbuild:
|
|
50
|
+
esbuild: import("vite").ESBuildOptions | false;
|
|
53
51
|
server: import("vite").ResolvedServerOptions;
|
|
54
52
|
build: import("vite").ResolvedBuildOptions;
|
|
55
53
|
preview: import("vite").ResolvedPreviewOptions;
|
|
56
54
|
ssr: import("vite").ResolvedSSROptions;
|
|
57
55
|
assetsInclude: (file: string) => boolean;
|
|
58
56
|
logger: import("vite").Logger;
|
|
59
|
-
createResolver: (options?: Partial<import("vite").InternalResolveOptions>
|
|
57
|
+
createResolver: (options?: Partial<import("vite").InternalResolveOptions>) => import("vite").ResolveFn;
|
|
60
58
|
optimizeDeps: import("vite").DepOptimizationOptions;
|
|
61
59
|
worker: import("vite").ResolvedWorkerOptions;
|
|
62
60
|
appType: import("vite").AppType;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import type { FastifyInstance } from 'fastify';
|
|
3
2
|
import type { OnRenderedHook } from '../../vitrify-config.js';
|
|
4
3
|
import type { FastifyCsrPlugin } from './fastify-csr-plugin.js';
|
|
@@ -11,4 +10,6 @@ export declare const createApp: ({ onSetup, appDir, baseUrl, fastifyPlugin, onRe
|
|
|
11
10
|
onRendered: OnRenderedHook[];
|
|
12
11
|
vitrifyDir?: URL;
|
|
13
12
|
mode: string;
|
|
14
|
-
}) => FastifyInstance<import("http").Server<typeof import("http").IncomingMessage, typeof import("http").ServerResponse>, import("http").IncomingMessage, import("http").ServerResponse<import("http").IncomingMessage>, import("fastify").FastifyBaseLogger, import("fastify").FastifyTypeProviderDefault> & PromiseLike<FastifyInstance<import("http").Server<typeof import("http").IncomingMessage, typeof import("http").ServerResponse>, import("http").IncomingMessage, import("http").ServerResponse<import("http").IncomingMessage>, import("fastify").FastifyBaseLogger, import("fastify").FastifyTypeProviderDefault
|
|
13
|
+
}) => FastifyInstance<import("http").Server<typeof import("http").IncomingMessage, typeof import("http").ServerResponse>, import("http").IncomingMessage, import("http").ServerResponse<import("http").IncomingMessage>, import("fastify").FastifyBaseLogger, import("fastify").FastifyTypeProviderDefault> & PromiseLike<FastifyInstance<import("http").Server<typeof import("http").IncomingMessage, typeof import("http").ServerResponse>, import("http").IncomingMessage, import("http").ServerResponse<import("http").IncomingMessage>, import("fastify").FastifyBaseLogger, import("fastify").FastifyTypeProviderDefault>> & {
|
|
14
|
+
__linterBrands: "SafePromiseLike";
|
|
15
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vitrify",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Stefan van Herwijnen",
|
|
6
6
|
"description": "Vite as your Full Stack development tool",
|
|
@@ -44,45 +44,45 @@
|
|
|
44
44
|
},
|
|
45
45
|
"homepage": "https://github.com/simsustech/vitrify/tree/main/#readme",
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@fastify/middie": "^
|
|
48
|
-
"@fastify/static": "^
|
|
49
|
-
"@vitejs/plugin-vue": "^5.
|
|
50
|
-
"ajv": "^8.
|
|
47
|
+
"@fastify/middie": "^9.0.2",
|
|
48
|
+
"@fastify/static": "^8.0.1",
|
|
49
|
+
"@vitejs/plugin-vue": "^5.1.4",
|
|
50
|
+
"ajv": "^8.17.1",
|
|
51
51
|
"cac": "^6.7.14",
|
|
52
52
|
"chalk": "^5.3.0",
|
|
53
|
-
"critters": "^0.0.
|
|
53
|
+
"critters": "^0.0.24",
|
|
54
54
|
"cross-env": "^7.0.3",
|
|
55
|
-
"esbuild": "^0.
|
|
56
|
-
"fastify": "^
|
|
57
|
-
"glob": "^
|
|
58
|
-
"happy-dom": "^
|
|
55
|
+
"esbuild": "^0.24.0",
|
|
56
|
+
"fastify": "^5.0.0",
|
|
57
|
+
"glob": "^11.0.0",
|
|
58
|
+
"happy-dom": "^15.7.4",
|
|
59
59
|
"is-port-reachable": "^4.0.0",
|
|
60
|
-
"magic-string": "^0.30.
|
|
60
|
+
"magic-string": "^0.30.11",
|
|
61
61
|
"merge-deep": "^3.0.3",
|
|
62
62
|
"readline": "^1.3.0",
|
|
63
63
|
"rollup-plugin-visualizer": "^5.12.0",
|
|
64
|
-
"sass": "1.
|
|
64
|
+
"sass": "1.79.3",
|
|
65
65
|
"ts-node": "^10.9.2",
|
|
66
|
-
"unplugin-vue-components": "^0.27.
|
|
67
|
-
"vite": "^5.
|
|
68
|
-
"vite-plugin-pwa": "^0.20.
|
|
69
|
-
"vitefu": "^0.2
|
|
70
|
-
"vitest": "^1.
|
|
66
|
+
"unplugin-vue-components": "^0.27.4",
|
|
67
|
+
"vite": "^5.4.7",
|
|
68
|
+
"vite-plugin-pwa": "^0.20.5",
|
|
69
|
+
"vitefu": "^1.0.2",
|
|
70
|
+
"vitest": "^2.1.1",
|
|
71
71
|
"workbox-window": "^7.1.0"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
|
-
"@quasar/extras": "^1.16.
|
|
74
|
+
"@quasar/extras": "^1.16.12",
|
|
75
75
|
"@types/connect": "^3.4.38",
|
|
76
76
|
"@types/glob": "^8.1.0",
|
|
77
77
|
"@types/merge-deep": "^3.0.3",
|
|
78
|
-
"@types/node": "^
|
|
79
|
-
"@types/ws": "^8.5.
|
|
80
|
-
"@vue/runtime-core": "^3.
|
|
81
|
-
"quasar": "^2.
|
|
82
|
-
"rollup": "^4.
|
|
83
|
-
"typescript": "^5.
|
|
84
|
-
"vue": "^3.
|
|
85
|
-
"vue-router": "^4.
|
|
78
|
+
"@types/node": "^22.6.1",
|
|
79
|
+
"@types/ws": "^8.5.12",
|
|
80
|
+
"@vue/runtime-core": "^3.5.8",
|
|
81
|
+
"quasar": "^2.17.0",
|
|
82
|
+
"rollup": "^4.22.4",
|
|
83
|
+
"typescript": "^5.6.2",
|
|
84
|
+
"vue": "^3.5.8",
|
|
85
|
+
"vue-router": "^4.4.5"
|
|
86
86
|
},
|
|
87
87
|
"peerDependencies": {
|
|
88
88
|
"@fastify/static": "^7.0.1",
|
package/src/node/bin/build.ts
CHANGED
package/src/node/bin/dev.ts
CHANGED
package/src/node/index.ts
CHANGED
|
@@ -296,6 +296,7 @@ export const baseConfig = async ({
|
|
|
296
296
|
if (Object.keys(vitrifyConfig).includes(framework)) {
|
|
297
297
|
const plugin = await configPluginMap[framework]()
|
|
298
298
|
const resolver = await configResolverMap[framework]()
|
|
299
|
+
|
|
299
300
|
frameworkPlugins.push(
|
|
300
301
|
await plugin({
|
|
301
302
|
ssr,
|