@vtj/local 0.9.0-alpha.4 → 0.9.0-alpha.41

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.
@@ -31,6 +31,7 @@ export class PluginRepository {
31
31
  n.type = "block";
32
32
  n.fromType = "Plugin";
33
33
  n.preset = true;
34
+ n.category = "\u63D2\u4EF6\u533A\u5757";
34
35
  return n;
35
36
  });
36
37
  const ext = [".css", ".js", ".json"];
@@ -55,7 +56,8 @@ export class PluginRepository {
55
56
  name: this.getName(dep),
56
57
  title: description || name,
57
58
  library: name,
58
- urls: urls.join(",")
59
+ urls: urls.join(","),
60
+ category: "\u63D2\u4EF6\u533A\u5757"
59
61
  });
60
62
  }
61
63
  }
package/dist/service.mjs CHANGED
@@ -27,6 +27,9 @@ export async function getExtension(_body, opts) {
27
27
  const { vtj = {} } = pkg || {};
28
28
  const extension = {
29
29
  ...vtj.extension || {},
30
+ history: vtj.history || "hash",
31
+ base: vtj.base || "/",
32
+ pageRouteName: vtj.pageRouteName || "page",
30
33
  __BASE_PATH__: opts.staticBase,
31
34
  __adapters__: vtj.adapters || {}
32
35
  };
@@ -197,7 +200,13 @@ export async function genVueContent(project, dsl) {
197
200
  const componentMap = new Map(
198
201
  Object.entries(materials)
199
202
  );
200
- const content = await generator(dsl, componentMap, project.dependencies);
203
+ const content = await generator(
204
+ dsl,
205
+ componentMap,
206
+ project.dependencies
207
+ ).catch((e) => {
208
+ throw e;
209
+ });
201
210
  return success(content);
202
211
  }
203
212
  export async function createRawPage(file) {
package/package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "@vtj/local",
3
3
  "private": false,
4
- "version": "0.9.0-alpha.4",
4
+ "version": "0.9.0-alpha.41",
5
5
  "type": "module",
6
6
  "dependencies": {
7
7
  "formidable": "~3.5.1",
8
- "@vtj/coder": "~0.9.0-alpha.4",
9
- "@vtj/node": "~0.9.0-alpha.1",
10
- "@vtj/core": "~0.9.0-alpha.4"
8
+ "@vtj/coder": "~0.9.0-alpha.41",
9
+ "@vtj/node": "~0.9.0-alpha.2",
10
+ "@vtj/core": "~0.9.0-alpha.41"
11
11
  },
12
12
  "devDependencies": {
13
13
  "@types/formidable": "~3.4.5",
14
14
  "unbuild": "~2.0.0",
15
15
  "vite": "~5.4.0",
16
16
  "vitest": "~2.1.1",
17
- "@vtj/cli": "~0.9.0-alpha.1"
17
+ "@vtj/cli": "~0.9.0-alpha.2"
18
18
  },
19
19
  "exports": {
20
20
  ".": {