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.
@@ -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.18";
1
+ export declare const VERSION = "2.0.0-beta.19";
@@ -1 +1 @@
1
- export const VERSION = "2.0.0-beta.18";
1
+ export const VERSION = "2.0.0-beta.19";
@@ -8,6 +8,6 @@ export declare class AdminBundler {
8
8
  project: Project;
9
9
  opts: Options;
10
10
  constructor(project: Project, opts: Options);
11
- protected start(): Promise<void>;
11
+ start(): Promise<void>;
12
12
  }
13
13
  export {};
@@ -10,7 +10,6 @@ export class AdminBundler {
10
10
  constructor(project, opts) {
11
11
  this.project = project;
12
12
  this.opts = opts;
13
- this.start();
14
13
  }
15
14
  async start() {
16
15
  console.info(`Creating ${this.opts.mode} WordPress admin build...`);
@@ -10,7 +10,6 @@ export class FrontendBundler {
10
10
  constructor(project, opts) {
11
11
  this.project = project;
12
12
  this.opts = opts;
13
- this.start();
14
13
  }
15
14
  async start() {
16
15
  console.info(`Creating ${this.opts.mode} SPA build...`);
@@ -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: `/.eddev/${args.mode === "production" ? "prod" : "dev"}-spa/entry.${args.target === "cms" ? "admin" : "client"}.tsx`,
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 &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eddev",
3
- "version": "2.0.0-beta.18",
3
+ "version": "2.0.0-beta.19",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "type": "module",