@creopse/bridge 0.1.13 → 0.1.14
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/vite/react.d.ts +2 -2
- package/dist/vite/react.js +29 -28
- package/dist/vite/vue.d.ts +2 -2
- package/dist/vite/vue.js +44 -43
- package/package.json +1 -1
package/dist/vite/react.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PluginOption } from 'vite';
|
|
2
2
|
export interface CreopseReactPluginOptions {
|
|
3
3
|
/**
|
|
4
4
|
* Path to the manifest.jsonc file, relative to the project root.
|
|
@@ -37,4 +37,4 @@ export interface CreopseReactPluginOptions {
|
|
|
37
37
|
*/
|
|
38
38
|
eslintAutoImport?: boolean;
|
|
39
39
|
}
|
|
40
|
-
export declare function CreopseReactPlugin(options?: CreopseReactPluginOptions):
|
|
40
|
+
export declare function CreopseReactPlugin(options?: CreopseReactPluginOptions): PluginOption[];
|
package/dist/vite/react.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { D as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { stringify as
|
|
6
|
-
import
|
|
1
|
+
import { D as S, S as b, s as D } from "../index-C8b1StIO.js";
|
|
2
|
+
import L from "/Users/arkane/Dev/Projects/Web/creopse.proj/creopse.toolkit/node_modules/.pnpm/@originjs+vite-plugin-federation@1.4.1/node_modules/@originjs/vite-plugin-federation/dist/index.mjs";
|
|
3
|
+
import x from "/Users/arkane/Dev/Projects/Web/creopse.proj/creopse.toolkit/node_modules/.pnpm/@vitejs+plugin-basic-ssl@2.3.0_vite@7.0.5_@types+node@24.0.15_jiti@2.6.1_tsx@4.21.0_/node_modules/@vitejs/plugin-basic-ssl/dist/index.mjs";
|
|
4
|
+
import C from "/Users/arkane/Dev/Projects/Web/creopse.proj/creopse.toolkit/node_modules/.pnpm/@vitejs+plugin-react@4.6.0_vite@7.0.5_@types+node@24.0.15_jiti@2.6.1_tsx@4.21.0_/node_modules/@vitejs/plugin-react/dist/index.mjs";
|
|
5
|
+
import { stringify as M, parse as O } from "/Users/arkane/Dev/Projects/Web/creopse.proj/creopse.toolkit/node_modules/.pnpm/comment-json@4.6.2/node_modules/comment-json/src/index.js";
|
|
6
|
+
import j from "fs";
|
|
7
7
|
import s from "path";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
function
|
|
8
|
+
import k from "/Users/arkane/Dev/Projects/Web/creopse.proj/creopse.toolkit/node_modules/.pnpm/rollup-plugin-copy@3.5.0/node_modules/rollup-plugin-copy/dist/index.module.js";
|
|
9
|
+
import N from "vite-plugin-auto-import-lite";
|
|
10
|
+
import B from "vite-plugin-i18next-loader";
|
|
11
|
+
import $ from "vite-plugin-json5";
|
|
12
|
+
import z from "vite-plugin-top-level-await";
|
|
13
|
+
function X(A = {}) {
|
|
14
14
|
const {
|
|
15
15
|
manifestPath: p = "./manifest.jsonc",
|
|
16
16
|
srcDir: c = "./src",
|
|
@@ -22,18 +22,18 @@ function Q(A = {}) {
|
|
|
22
22
|
} = A;
|
|
23
23
|
let r, e, u, g, o, v, P, h;
|
|
24
24
|
function I() {
|
|
25
|
-
const l = s.resolve(r, p), m =
|
|
26
|
-
if (e =
|
|
25
|
+
const l = s.resolve(r, p), m = j.readFileSync(l, "utf-8");
|
|
26
|
+
if (e = O(m || "{}"), o = {}, e.pages && Array.isArray(e.pages))
|
|
27
27
|
for (const a of e.pages)
|
|
28
28
|
o[`./${a.name}`] = a.module;
|
|
29
29
|
const n = e.dashboard;
|
|
30
|
-
n?.module && (o[`./${
|
|
30
|
+
n?.module && (o[`./${S}`] = n.module);
|
|
31
31
|
const i = e.settings;
|
|
32
|
-
i?.module && (o[`./${
|
|
32
|
+
i?.module && (o[`./${b}`] = i.module);
|
|
33
33
|
const t = e.development;
|
|
34
|
-
u =
|
|
34
|
+
u = D(String(e.id)) || "creopse-plugin", g = e.entry || "remoteEntry.js", v = t?.previewPort || 2160, P = t?.serverPort || 2161, h = t?.ssl || !1;
|
|
35
35
|
}
|
|
36
|
-
|
|
36
|
+
const y = {
|
|
37
37
|
name: "creopse-react-plugin",
|
|
38
38
|
config(l) {
|
|
39
39
|
r = l.root || process.cwd(), I();
|
|
@@ -41,23 +41,23 @@ function Q(A = {}) {
|
|
|
41
41
|
return {
|
|
42
42
|
envPrefix: "APP_",
|
|
43
43
|
plugins: [
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
C(),
|
|
45
|
+
L({
|
|
46
46
|
name: u,
|
|
47
47
|
filename: g,
|
|
48
48
|
exposes: o,
|
|
49
49
|
shared: i
|
|
50
50
|
}),
|
|
51
|
-
|
|
51
|
+
z({
|
|
52
52
|
promiseExportName: "__tla",
|
|
53
53
|
promiseImportName: (t) => `__tla_${t}`
|
|
54
54
|
}),
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
// json5Plugin(),
|
|
56
|
+
B({
|
|
57
57
|
paths: [n],
|
|
58
58
|
include: ["**/*.json"]
|
|
59
59
|
}),
|
|
60
|
-
|
|
60
|
+
N({
|
|
61
61
|
dirs: _,
|
|
62
62
|
imports: ["react"],
|
|
63
63
|
vueTemplate: !1,
|
|
@@ -69,7 +69,7 @@ function Q(A = {}) {
|
|
|
69
69
|
}
|
|
70
70
|
} : {}
|
|
71
71
|
}),
|
|
72
|
-
...h ? [
|
|
72
|
+
...h ? [x()] : []
|
|
73
73
|
],
|
|
74
74
|
resolve: {
|
|
75
75
|
alias: [
|
|
@@ -85,7 +85,7 @@ function Q(A = {}) {
|
|
|
85
85
|
outDir: d,
|
|
86
86
|
rollupOptions: {
|
|
87
87
|
plugins: [
|
|
88
|
-
|
|
88
|
+
k({
|
|
89
89
|
targets: [
|
|
90
90
|
{
|
|
91
91
|
src: s.resolve(r, p),
|
|
@@ -94,7 +94,7 @@ function Q(A = {}) {
|
|
|
94
94
|
return e?.mode && (e.mode = m ? "development" : "production"), ((a) => a.replace(/(,)\s*\n/g, `,
|
|
95
95
|
|
|
96
96
|
`))(
|
|
97
|
-
|
|
97
|
+
M(e, null, 2)
|
|
98
98
|
);
|
|
99
99
|
}
|
|
100
100
|
}
|
|
@@ -126,7 +126,8 @@ function Q(A = {}) {
|
|
|
126
126
|
};
|
|
127
127
|
}
|
|
128
128
|
};
|
|
129
|
+
return [$(), y];
|
|
129
130
|
}
|
|
130
131
|
export {
|
|
131
|
-
|
|
132
|
+
X as CreopseReactPlugin
|
|
132
133
|
};
|
package/dist/vite/vue.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PluginOption } from 'vite';
|
|
2
2
|
export interface CreopseVuePluginOptions {
|
|
3
3
|
/**
|
|
4
4
|
* Path to the manifest.jsonc file, relative to the project root.
|
|
@@ -32,4 +32,4 @@ export interface CreopseVuePluginOptions {
|
|
|
32
32
|
*/
|
|
33
33
|
shared?: string[];
|
|
34
34
|
}
|
|
35
|
-
export declare function CreopseVuePlugin(options?: CreopseVuePluginOptions):
|
|
35
|
+
export declare function CreopseVuePlugin(options?: CreopseVuePluginOptions): PluginOption[];
|
package/dist/vite/vue.js
CHANGED
|
@@ -1,92 +1,92 @@
|
|
|
1
|
-
import { D as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { stringify as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
function
|
|
1
|
+
import { D as I, S, s as b } from "../index-C8b1StIO.js";
|
|
2
|
+
import D from "/Users/arkane/Dev/Projects/Web/creopse.proj/creopse.toolkit/node_modules/.pnpm/@originjs+vite-plugin-federation@1.4.1/node_modules/@originjs/vite-plugin-federation/dist/index.mjs";
|
|
3
|
+
import L from "/Users/arkane/Dev/Projects/Web/creopse.proj/creopse.toolkit/node_modules/.pnpm/@vitejs+plugin-basic-ssl@2.3.0_vite@7.0.5_@types+node@24.0.15_jiti@2.6.1_tsx@4.21.0_/node_modules/@vitejs/plugin-basic-ssl/dist/index.mjs";
|
|
4
|
+
import x from "/Users/arkane/Dev/Projects/Web/creopse.proj/creopse.toolkit/node_modules/.pnpm/@vitejs+plugin-vue@6.0.5_vite@7.0.5_@types+node@24.0.15_jiti@2.6.1_tsx@4.21.0__vue@3.5.32_typescript@5.8.3_/node_modules/@vitejs/plugin-vue/dist/index.mjs";
|
|
5
|
+
import { stringify as C, parse as M } from "/Users/arkane/Dev/Projects/Web/creopse.proj/creopse.toolkit/node_modules/.pnpm/comment-json@4.6.2/node_modules/comment-json/src/index.js";
|
|
6
|
+
import O from "fs";
|
|
7
|
+
import t from "path";
|
|
8
|
+
import N from "/Users/arkane/Dev/Projects/Web/creopse.proj/creopse.toolkit/node_modules/.pnpm/rollup-plugin-copy@3.5.0/node_modules/rollup-plugin-copy/dist/index.module.js";
|
|
9
|
+
import j from "vite-plugin-auto-import-lite";
|
|
10
|
+
import B from "vite-plugin-i18next-loader";
|
|
11
|
+
import $ from "vite-plugin-json5";
|
|
12
|
+
import k from "vite-plugin-top-level-await";
|
|
13
|
+
function Q(h = {}) {
|
|
14
14
|
const {
|
|
15
15
|
manifestPath: m = "./manifest.jsonc",
|
|
16
16
|
srcDir: c = "./src",
|
|
17
|
-
outDir:
|
|
18
|
-
i18nLocalesPath:
|
|
17
|
+
outDir: u = "frontend",
|
|
18
|
+
i18nLocalesPath: d,
|
|
19
19
|
composablesDirs: _ = ["src/composables"],
|
|
20
20
|
shared: E = []
|
|
21
21
|
} = h;
|
|
22
|
-
let r, e, f, v,
|
|
22
|
+
let r, e, f, v, s, g, P, A;
|
|
23
23
|
function w() {
|
|
24
|
-
const a =
|
|
25
|
-
if (e =
|
|
24
|
+
const a = t.resolve(r, m), p = O.readFileSync(a, "utf-8");
|
|
25
|
+
if (e = M(p || "{}"), s = {}, e.pages && Array.isArray(e.pages))
|
|
26
26
|
for (const l of e.pages)
|
|
27
|
-
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
const
|
|
31
|
-
|
|
27
|
+
s[`./${l.name}`] = l.module;
|
|
28
|
+
const n = e.dashboard;
|
|
29
|
+
n?.module && (s[`./${I}`] = n.module);
|
|
30
|
+
const i = e.settings;
|
|
31
|
+
i?.module && (s[`./${S}`] = i.module);
|
|
32
32
|
const o = e.development;
|
|
33
|
-
f =
|
|
33
|
+
f = b(String(e.id)) || "creopse-plugin", v = e.entry || "remoteEntry.js", g = o?.previewPort || 2160, P = o?.serverPort || 2161, A = o?.ssl || !1;
|
|
34
34
|
}
|
|
35
|
-
|
|
35
|
+
const y = {
|
|
36
36
|
name: "creopse-vue-plugin",
|
|
37
37
|
config(a) {
|
|
38
38
|
r = a.root || process.cwd(), w();
|
|
39
|
-
const p = process.env.APP_IS_PREVIEW === "true",
|
|
39
|
+
const p = process.env.APP_IS_PREVIEW === "true", n = d ? t.resolve(r, d) : t.resolve(r, c, "i18n/locales"), i = ["vue", "pinia", ...E];
|
|
40
40
|
return {
|
|
41
41
|
envPrefix: "APP_",
|
|
42
42
|
plugins: [
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
x(),
|
|
44
|
+
D({
|
|
45
45
|
name: f,
|
|
46
46
|
filename: v,
|
|
47
|
-
exposes:
|
|
48
|
-
shared:
|
|
47
|
+
exposes: s,
|
|
48
|
+
shared: i
|
|
49
49
|
}),
|
|
50
|
-
|
|
50
|
+
k({
|
|
51
51
|
promiseExportName: "__tla",
|
|
52
52
|
promiseImportName: (o) => `__tla_${o}`
|
|
53
53
|
}),
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
paths: [
|
|
54
|
+
// json5Plugin(),
|
|
55
|
+
B({
|
|
56
|
+
paths: [n],
|
|
57
57
|
include: ["**/*.json"]
|
|
58
58
|
}),
|
|
59
|
-
|
|
59
|
+
j({
|
|
60
60
|
dirs: _,
|
|
61
61
|
imports: ["vue", "pinia"],
|
|
62
62
|
vueTemplate: !0
|
|
63
63
|
}),
|
|
64
|
-
...A ? [
|
|
64
|
+
...A ? [L()] : []
|
|
65
65
|
],
|
|
66
66
|
resolve: {
|
|
67
67
|
alias: [
|
|
68
68
|
{
|
|
69
69
|
find: "@",
|
|
70
|
-
replacement:
|
|
70
|
+
replacement: t.resolve(r, c)
|
|
71
71
|
}
|
|
72
72
|
],
|
|
73
73
|
dedupe: ["vue"]
|
|
74
74
|
},
|
|
75
75
|
build: {
|
|
76
76
|
target: "esnext",
|
|
77
|
-
outDir:
|
|
77
|
+
outDir: u,
|
|
78
78
|
rollupOptions: {
|
|
79
79
|
plugins: [
|
|
80
|
-
|
|
80
|
+
N({
|
|
81
81
|
targets: [
|
|
82
82
|
{
|
|
83
|
-
src:
|
|
84
|
-
dest:
|
|
83
|
+
src: t.resolve(r, m),
|
|
84
|
+
dest: u,
|
|
85
85
|
transform() {
|
|
86
86
|
return e?.mode && (e.mode = p ? "development" : "production"), ((l) => l.replace(/(,)\s*\n/g, `,
|
|
87
87
|
|
|
88
88
|
`))(
|
|
89
|
-
|
|
89
|
+
C(e, null, 2)
|
|
90
90
|
);
|
|
91
91
|
}
|
|
92
92
|
}
|
|
@@ -118,7 +118,8 @@ function K(h = {}) {
|
|
|
118
118
|
};
|
|
119
119
|
}
|
|
120
120
|
};
|
|
121
|
+
return [$(), y];
|
|
121
122
|
}
|
|
122
123
|
export {
|
|
123
|
-
|
|
124
|
+
Q as CreopseVuePlugin
|
|
124
125
|
};
|