@vtj/local 0.9.0-alpha.8 → 0.9.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.
@@ -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
@@ -2,7 +2,7 @@ import {
2
2
  ProjectModel
3
3
  } from "@vtj/core";
4
4
  import { resolve } from "path";
5
- import { readJsonSync, upperFirstCamelCase, timestamp } from "@vtj/node";
5
+ import { readJsonSync, upperFirstCamelCase, timestamp, merge } from "@vtj/node";
6
6
  import { generator, createEmptyPage } from "@vtj/coder";
7
7
  import { fail, success } from "./shared.mjs";
8
8
  import {
@@ -25,11 +25,19 @@ export async function getExtension(_body, opts) {
25
25
  const root = resolve("./");
26
26
  const pkg = readJsonSync(resolve(root, "package.json"));
27
27
  const { vtj = {} } = pkg || {};
28
+ const adapters = {
29
+ remote: "https://lcdp.vtj.pro",
30
+ access: {
31
+ privateKey: "MIIBOgIBAAJBAKoIzmn1FYQ1YOhOBw9EhABxZ+PySAIaydI+zdhoKflrdgJ4A5E4/5gbQmRpk09hPWG8nvX7h+l/QLU8kXxAIBECAwEAAQJAAlgpxQY6sByLsXqzJcthC8LSGsLf2JEJkHwlnpwFqlEV8UCkoINpuZ2Wzl+aftURu5rIfAzRCQBvHmeOTW9/zQIhAO5ufWDmnSLyfAAsNo5JRNpVuLFCFodR8Xm+ulDlosR/AiEAtpAltyP9wmCABKG/v/hrtTr3mcvFNGCjoGa9bUAok28CIHbrVs9w1ijrBlvTsXYwJw46uP539uKRRT4ymZzlm9QjAiB+1KH/G9f9pEEL9rtaSOG7JF5D0JcOjlze4MGVFs+ZrQIhALKOUFBNr2zEsyJIjw2PlvEucdlG77UniszjXTROHSPd"
32
+ }
33
+ };
28
34
  const extension = {
29
35
  ...vtj.extension || {},
30
36
  history: vtj.history || "hash",
37
+ base: vtj.base || "/",
38
+ pageRouteName: vtj.pageRouteName || "page",
31
39
  __BASE_PATH__: opts.staticBase,
32
- __adapters__: vtj.adapters || {}
40
+ __adapters__: merge({}, adapters, vtj.adapters || {})
33
41
  };
34
42
  return success(extension);
35
43
  }
@@ -198,7 +206,13 @@ export async function genVueContent(project, dsl) {
198
206
  const componentMap = new Map(
199
207
  Object.entries(materials)
200
208
  );
201
- const content = await generator(dsl, componentMap, project.dependencies);
209
+ const content = await generator(
210
+ dsl,
211
+ componentMap,
212
+ project.dependencies
213
+ ).catch((e) => {
214
+ throw e;
215
+ });
202
216
  return success(content);
203
217
  }
204
218
  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.8",
4
+ "version": "0.9.0",
5
5
  "type": "module",
6
6
  "dependencies": {
7
7
  "formidable": "~3.5.1",
8
- "@vtj/coder": "~0.9.0-alpha.8",
9
- "@vtj/node": "~0.9.0-alpha.1",
10
- "@vtj/core": "~0.9.0-alpha.8"
8
+ "@vtj/coder": "~0.9.0",
9
+ "@vtj/core": "~0.9.0",
10
+ "@vtj/node": "~0.9.0"
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"
18
18
  },
19
19
  "exports": {
20
20
  ".": {