eddev 2.0.0-beta.18 → 2.0.0-beta.19
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/node/cli/cli.js +11 -2
- package/dist/node/cli/version.d.ts +1 -1
- package/dist/node/cli/version.js +1 -1
- package/dist/node/compiler/bundler.admin.d.ts +1 -1
- package/dist/node/compiler/bundler.admin.js +0 -1
- package/dist/node/compiler/bundler.frontend.js +0 -1
- package/dist/node/compiler/get-vite-config.js +2 -2
- package/package.json +1 -1
package/dist/node/cli/cli.js
CHANGED
|
@@ -161,13 +161,22 @@ program
|
|
|
161
161
|
});
|
|
162
162
|
}
|
|
163
163
|
else {
|
|
164
|
+
const codegen = createVinxiCodegen({
|
|
165
|
+
mode: "production",
|
|
166
|
+
project: project,
|
|
167
|
+
serverless: false,
|
|
168
|
+
});
|
|
169
|
+
await codegen.run();
|
|
170
|
+
console.info("Building for SPA WordPress (Frontend and Admin)");
|
|
164
171
|
// Load the compiler
|
|
165
|
-
new AdminBundler(project, {
|
|
172
|
+
const admin = new AdminBundler(project, {
|
|
166
173
|
mode: "development",
|
|
167
174
|
});
|
|
168
|
-
new FrontendBundler(project, {
|
|
175
|
+
const frontend = new FrontendBundler(project, {
|
|
169
176
|
mode: "production",
|
|
170
177
|
});
|
|
178
|
+
await Promise.all([admin.start(), frontend.start()]);
|
|
179
|
+
console.log("Done building SPA WordPress");
|
|
171
180
|
}
|
|
172
181
|
});
|
|
173
182
|
program
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "2.0.0-beta.
|
|
1
|
+
export declare const VERSION = "2.0.0-beta.19";
|
package/dist/node/cli/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "2.0.0-beta.
|
|
1
|
+
export const VERSION = "2.0.0-beta.19";
|
|
@@ -169,9 +169,9 @@ export function getViteConfig(args) {
|
|
|
169
169
|
minify: args.mode === "production",
|
|
170
170
|
modulePreload: false,
|
|
171
171
|
outDir: args.outDir,
|
|
172
|
-
watch: {},
|
|
172
|
+
// watch: {},
|
|
173
173
|
rollupOptions: {
|
|
174
|
-
input:
|
|
174
|
+
input: `./.eddev/${args.mode === "production" ? "prod" : "dev"}-spa/entry.${args.target === "cms" ? "admin" : "client"}.tsx`,
|
|
175
175
|
external: args.target === "cms" ? ["react", "react-dom"] : [],
|
|
176
176
|
onwarn(warning, warn) {
|
|
177
177
|
if (!cliMode.verbose &&
|