@lumal/vite 0.0.1-beta
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/LICENSE +21 -0
- package/README.md +12 -0
- package/dist/index.cjs +1 -0
- package/dist/index.js +188 -0
- package/dist/src/aliases.d.ts +13 -0
- package/dist/src/aliases.d.ts.map +1 -0
- package/dist/src/component-resolver.d.ts +15 -0
- package/dist/src/component-resolver.d.ts.map +1 -0
- package/dist/src/devtools.d.ts +10 -0
- package/dist/src/devtools.d.ts.map +1 -0
- package/dist/src/index.d.ts +7 -0
- package/dist/src/index.d.ts.map +1 -0
- package/package.json +36 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Lumal contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# @lumal/vite
|
|
2
|
+
|
|
3
|
+
Lumal 的轻量 Vite 配置助手,提供组件 resolver、工作区源码/产物 alias 和可选 Devtools 接线。
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
import { createLumalAliases, createLumalComponentResolver } from '@lumal/vite'
|
|
7
|
+
|
|
8
|
+
const aliases = createLumalAliases({ workspaceRoot: process.cwd() })
|
|
9
|
+
const resolver = createLumalComponentResolver({ importStyle: true })
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
本包不提供全局 viewport 转换,也不强制安装自动导入或 Devtools 插件。
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require("node:path");var t=[...[`auth`,`components`,`composables`,`dictionary`,`directives`,`layout`,`permission`,`request`,`router`,`theme`,`utils`].map(e=>({dist:`packages/core/dist/${e}.js`,packageName:`core`,source:e===`components`?`packages/core/src/exports/components.ts`:`packages/core/src/${e}/index.ts`,specifier:`@lumal/core/${e}`})),{dist:`packages/core/dist/core.css`,packageName:`core`,source:`packages/core/src/source-style.css`,specifier:`@lumal/core/style.css`},{dist:`packages/core/theme-chalk/index.scss`,packageName:`core`,source:`packages/core/theme-chalk/index.scss`,specifier:`@lumal/core/theme-chalk/index.scss`},{dist:`packages/icons/dist/vite.js`,packageName:`icons`,source:`packages/icons/src/vite/index.ts`,specifier:`@lumal/icons/vite`},{dist:`packages/icons-vue/dist/icons-vue.css`,packageName:`icons-vue`,source:`packages/icons-vue/src/source-style.css`,specifier:`@lumal/icons-vue/style.css`},{dist:`packages/charts/dist/charts.css`,packageName:`charts`,source:`packages/charts/src/source-style.css`,specifier:`@lumal/charts/style.css`},{dist:`packages/datav/dist/datav.css`,packageName:`datav`,source:`packages/datav/src/source-style.css`,specifier:`@lumal/datav/style.css`},{dist:`packages/cockpit/dist/designer.js`,packageName:`cockpit`,source:`packages/cockpit/src/designer/index.ts`,specifier:`@lumal/cockpit/designer`},{dist:`packages/cockpit/dist/registry.js`,packageName:`cockpit`,source:`packages/cockpit/src/registry/index.ts`,specifier:`@lumal/cockpit/registry`},{dist:`packages/cockpit/dist/runtime.js`,packageName:`cockpit`,source:`packages/cockpit/src/runtime/index.ts`,specifier:`@lumal/cockpit/runtime`},{dist:`packages/cockpit/dist/cockpit.css`,packageName:`cockpit`,source:`packages/cockpit/src/style/index.scss`,specifier:`@lumal/cockpit/style.css`},{dist:`packages/vben-compat/dist/index.js`,packageName:`vben-compat`,source:`packages/vben-compat/src/index.ts`,specifier:`@lumal/vben-compat`},{dist:`packages/charts/dist/index.js`,packageName:`charts`,source:`packages/charts/src/index.ts`,specifier:`@lumal/charts`},{dist:`packages/datav/dist/index.js`,packageName:`datav`,source:`packages/datav/src/index.ts`,specifier:`@lumal/datav`},{dist:`packages/icons/dist/index.js`,packageName:`icons`,source:`packages/icons/src/index.ts`,specifier:`@lumal/icons`},{dist:`packages/icons-vue/dist/index.js`,packageName:`icons-vue`,source:`packages/icons-vue/src/index.ts`,specifier:`@lumal/icons-vue`},{dist:`packages/core/dist/index.js`,packageName:`core`,source:`packages/core/src/index.ts`,specifier:`@lumal/core`},{dist:`packages/cockpit/dist/index.js`,packageName:`cockpit`,source:`packages/cockpit/src/index.ts`,specifier:`@lumal/cockpit`}];function n(n){let r=n.target??`source`,i=new Set(n.packages??[`charts`,`cockpit`,`core`,`datav`,`icons`,`icons-vue`,`vben-compat`]);return t.filter(e=>i.has(e.packageName)).map(t=>({find:t.specifier,replacement:(0,e.resolve)(n.workspaceRoot,t[r])})).sort((e,t)=>t.find.length-e.find.length)}var r=new Map([[`LumalChart`,`@lumal/charts`],[`LumalChartPanel`,`@lumal/charts`],[`LumalContent`,`@lumal/core/layout`],[`LumalCrudTable`,`@lumal/core/components`],[`LumalHeader`,`@lumal/core/layout`],[`LumalIcon`,`@lumal/icons-vue`],[`LumalIconPicker`,`@lumal/icons-vue`],[`LumalIconPickerDialog`,`@lumal/icons-vue`],[`LumalInfoTable`,`@lumal/core/components`],[`LumalLayout`,`@lumal/core/layout`],[`LumalPage`,`@lumal/core/components`],[`LumalPageLayout`,`@lumal/core/components`],[`LumalPagination`,`@lumal/core/components`],[`LumalRouterView`,`@lumal/core/layout`],[`LumalSchemaForm`,`@lumal/core/components`],[`LumalSchemaTable`,`@lumal/core/components`],[`LumalSidebar`,`@lumal/core/layout`],[`LumalTabs`,`@lumal/core/layout`],[`LumalTopNav`,`@lumal/core/layout`]]);function i(e){if(e.startsWith(`@lumal/core`))return`@lumal/core/style.css`;if(e===`@lumal/icons-vue`||e===`@lumal/charts`)return`${e}/style.css`}function a(e={}){let t=new Map(r);for(let[n,r]of Object.entries(e.customComponents??{}))t.set(n,r);return{type:`component`,resolve(n){let r=t.get(n);if(r)return{from:r,name:n,sideEffects:e.importStyle?i(r):void 0}}}}function o(e={}){if(e.enabled!==!1)return e.factory?.()??e.plugin}exports.createLumalAliases=n,exports.createLumalComponentResolver=a,exports.resolveLumalDevtoolsPlugin=o;
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import { resolve as e } from "node:path";
|
|
2
|
+
//#region src/aliases.ts
|
|
3
|
+
var t = [
|
|
4
|
+
...[
|
|
5
|
+
"auth",
|
|
6
|
+
"components",
|
|
7
|
+
"composables",
|
|
8
|
+
"dictionary",
|
|
9
|
+
"directives",
|
|
10
|
+
"layout",
|
|
11
|
+
"permission",
|
|
12
|
+
"request",
|
|
13
|
+
"router",
|
|
14
|
+
"theme",
|
|
15
|
+
"utils"
|
|
16
|
+
].map((e) => ({
|
|
17
|
+
dist: `packages/core/dist/${e}.js`,
|
|
18
|
+
packageName: "core",
|
|
19
|
+
source: e === "components" ? "packages/core/src/exports/components.ts" : `packages/core/src/${e}/index.ts`,
|
|
20
|
+
specifier: `@lumal/core/${e}`
|
|
21
|
+
})),
|
|
22
|
+
{
|
|
23
|
+
dist: "packages/core/dist/core.css",
|
|
24
|
+
packageName: "core",
|
|
25
|
+
source: "packages/core/src/source-style.css",
|
|
26
|
+
specifier: "@lumal/core/style.css"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
dist: "packages/core/theme-chalk/index.scss",
|
|
30
|
+
packageName: "core",
|
|
31
|
+
source: "packages/core/theme-chalk/index.scss",
|
|
32
|
+
specifier: "@lumal/core/theme-chalk/index.scss"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
dist: "packages/icons/dist/vite.js",
|
|
36
|
+
packageName: "icons",
|
|
37
|
+
source: "packages/icons/src/vite/index.ts",
|
|
38
|
+
specifier: "@lumal/icons/vite"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
dist: "packages/icons-vue/dist/icons-vue.css",
|
|
42
|
+
packageName: "icons-vue",
|
|
43
|
+
source: "packages/icons-vue/src/source-style.css",
|
|
44
|
+
specifier: "@lumal/icons-vue/style.css"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
dist: "packages/charts/dist/charts.css",
|
|
48
|
+
packageName: "charts",
|
|
49
|
+
source: "packages/charts/src/source-style.css",
|
|
50
|
+
specifier: "@lumal/charts/style.css"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
dist: "packages/datav/dist/datav.css",
|
|
54
|
+
packageName: "datav",
|
|
55
|
+
source: "packages/datav/src/source-style.css",
|
|
56
|
+
specifier: "@lumal/datav/style.css"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
dist: "packages/cockpit/dist/designer.js",
|
|
60
|
+
packageName: "cockpit",
|
|
61
|
+
source: "packages/cockpit/src/designer/index.ts",
|
|
62
|
+
specifier: "@lumal/cockpit/designer"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
dist: "packages/cockpit/dist/registry.js",
|
|
66
|
+
packageName: "cockpit",
|
|
67
|
+
source: "packages/cockpit/src/registry/index.ts",
|
|
68
|
+
specifier: "@lumal/cockpit/registry"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
dist: "packages/cockpit/dist/runtime.js",
|
|
72
|
+
packageName: "cockpit",
|
|
73
|
+
source: "packages/cockpit/src/runtime/index.ts",
|
|
74
|
+
specifier: "@lumal/cockpit/runtime"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
dist: "packages/cockpit/dist/cockpit.css",
|
|
78
|
+
packageName: "cockpit",
|
|
79
|
+
source: "packages/cockpit/src/style/index.scss",
|
|
80
|
+
specifier: "@lumal/cockpit/style.css"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
dist: "packages/vben-compat/dist/index.js",
|
|
84
|
+
packageName: "vben-compat",
|
|
85
|
+
source: "packages/vben-compat/src/index.ts",
|
|
86
|
+
specifier: "@lumal/vben-compat"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
dist: "packages/charts/dist/index.js",
|
|
90
|
+
packageName: "charts",
|
|
91
|
+
source: "packages/charts/src/index.ts",
|
|
92
|
+
specifier: "@lumal/charts"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
dist: "packages/datav/dist/index.js",
|
|
96
|
+
packageName: "datav",
|
|
97
|
+
source: "packages/datav/src/index.ts",
|
|
98
|
+
specifier: "@lumal/datav"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
dist: "packages/icons/dist/index.js",
|
|
102
|
+
packageName: "icons",
|
|
103
|
+
source: "packages/icons/src/index.ts",
|
|
104
|
+
specifier: "@lumal/icons"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
dist: "packages/icons-vue/dist/index.js",
|
|
108
|
+
packageName: "icons-vue",
|
|
109
|
+
source: "packages/icons-vue/src/index.ts",
|
|
110
|
+
specifier: "@lumal/icons-vue"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
dist: "packages/core/dist/index.js",
|
|
114
|
+
packageName: "core",
|
|
115
|
+
source: "packages/core/src/index.ts",
|
|
116
|
+
specifier: "@lumal/core"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
dist: "packages/cockpit/dist/index.js",
|
|
120
|
+
packageName: "cockpit",
|
|
121
|
+
source: "packages/cockpit/src/index.ts",
|
|
122
|
+
specifier: "@lumal/cockpit"
|
|
123
|
+
}
|
|
124
|
+
];
|
|
125
|
+
function n(n) {
|
|
126
|
+
let r = n.target ?? "source", i = new Set(n.packages ?? [
|
|
127
|
+
"charts",
|
|
128
|
+
"cockpit",
|
|
129
|
+
"core",
|
|
130
|
+
"datav",
|
|
131
|
+
"icons",
|
|
132
|
+
"icons-vue",
|
|
133
|
+
"vben-compat"
|
|
134
|
+
]);
|
|
135
|
+
return t.filter((e) => i.has(e.packageName)).map((t) => ({
|
|
136
|
+
find: t.specifier,
|
|
137
|
+
replacement: e(n.workspaceRoot, t[r])
|
|
138
|
+
})).sort((e, t) => t.find.length - e.find.length);
|
|
139
|
+
}
|
|
140
|
+
//#endregion
|
|
141
|
+
//#region src/component-resolver.ts
|
|
142
|
+
var r = /* @__PURE__ */ new Map([
|
|
143
|
+
["LumalChart", "@lumal/charts"],
|
|
144
|
+
["LumalChartPanel", "@lumal/charts"],
|
|
145
|
+
["LumalContent", "@lumal/core/layout"],
|
|
146
|
+
["LumalCrudTable", "@lumal/core/components"],
|
|
147
|
+
["LumalHeader", "@lumal/core/layout"],
|
|
148
|
+
["LumalIcon", "@lumal/icons-vue"],
|
|
149
|
+
["LumalIconPicker", "@lumal/icons-vue"],
|
|
150
|
+
["LumalIconPickerDialog", "@lumal/icons-vue"],
|
|
151
|
+
["LumalInfoTable", "@lumal/core/components"],
|
|
152
|
+
["LumalLayout", "@lumal/core/layout"],
|
|
153
|
+
["LumalPage", "@lumal/core/components"],
|
|
154
|
+
["LumalPageLayout", "@lumal/core/components"],
|
|
155
|
+
["LumalPagination", "@lumal/core/components"],
|
|
156
|
+
["LumalRouterView", "@lumal/core/layout"],
|
|
157
|
+
["LumalSchemaForm", "@lumal/core/components"],
|
|
158
|
+
["LumalSchemaTable", "@lumal/core/components"],
|
|
159
|
+
["LumalSidebar", "@lumal/core/layout"],
|
|
160
|
+
["LumalTabs", "@lumal/core/layout"],
|
|
161
|
+
["LumalTopNav", "@lumal/core/layout"]
|
|
162
|
+
]);
|
|
163
|
+
function i(e) {
|
|
164
|
+
if (e.startsWith("@lumal/core")) return "@lumal/core/style.css";
|
|
165
|
+
if (e === "@lumal/icons-vue" || e === "@lumal/charts") return `${e}/style.css`;
|
|
166
|
+
}
|
|
167
|
+
function a(e = {}) {
|
|
168
|
+
let t = new Map(r);
|
|
169
|
+
for (let [n, r] of Object.entries(e.customComponents ?? {})) t.set(n, r);
|
|
170
|
+
return {
|
|
171
|
+
type: "component",
|
|
172
|
+
resolve(n) {
|
|
173
|
+
let r = t.get(n);
|
|
174
|
+
if (r) return {
|
|
175
|
+
from: r,
|
|
176
|
+
name: n,
|
|
177
|
+
sideEffects: e.importStyle ? i(r) : void 0
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
//#endregion
|
|
183
|
+
//#region src/devtools.ts
|
|
184
|
+
function o(e = {}) {
|
|
185
|
+
if (e.enabled !== !1) return e.factory?.() ?? e.plugin;
|
|
186
|
+
}
|
|
187
|
+
//#endregion
|
|
188
|
+
export { n as createLumalAliases, a as createLumalComponentResolver, o as resolveLumalDevtoolsPlugin };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type LumalAliasTarget = 'dist' | 'source';
|
|
2
|
+
export type LumalAliasPackage = 'charts' | 'cockpit' | 'core' | 'datav' | 'icons' | 'icons-vue' | 'vben-compat';
|
|
3
|
+
export interface LumalAliasEntry {
|
|
4
|
+
find: string;
|
|
5
|
+
replacement: string;
|
|
6
|
+
}
|
|
7
|
+
export interface CreateLumalAliasesOptions {
|
|
8
|
+
packages?: LumalAliasPackage[];
|
|
9
|
+
target?: LumalAliasTarget;
|
|
10
|
+
workspaceRoot: string;
|
|
11
|
+
}
|
|
12
|
+
export declare function createLumalAliases(options: CreateLumalAliasesOptions): LumalAliasEntry[];
|
|
13
|
+
//# sourceMappingURL=aliases.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aliases.d.ts","sourceRoot":"","sources":["../../src/aliases.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,QAAQ,CAAA;AAChD,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,WAAW,GAAG,aAAa,CAAA;AAE/G,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;CACpB;AAED,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,EAAE,iBAAiB,EAAE,CAAA;IAC9B,MAAM,CAAC,EAAE,gBAAgB,CAAA;IACzB,aAAa,EAAE,MAAM,CAAA;CACtB;AAyHD,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,yBAAyB,GAAG,eAAe,EAAE,CAWxF"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface LumalComponentResolverResult {
|
|
2
|
+
from: string;
|
|
3
|
+
name: string;
|
|
4
|
+
sideEffects?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface LumalComponentResolver {
|
|
7
|
+
type: 'component';
|
|
8
|
+
resolve: (name: string) => LumalComponentResolverResult | undefined;
|
|
9
|
+
}
|
|
10
|
+
export interface CreateLumalComponentResolverOptions {
|
|
11
|
+
customComponents?: Record<string, string>;
|
|
12
|
+
importStyle?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare function createLumalComponentResolver(options?: CreateLumalComponentResolverOptions): LumalComponentResolver;
|
|
15
|
+
//# sourceMappingURL=component-resolver.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component-resolver.d.ts","sourceRoot":"","sources":["../../src/component-resolver.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,4BAA4B;IAC3C,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,WAAW,CAAA;IACjB,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,4BAA4B,GAAG,SAAS,CAAA;CACpE;AAED,MAAM,WAAW,mCAAmC;IAClD,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACzC,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAmCD,wBAAgB,4BAA4B,CAC1C,OAAO,GAAE,mCAAwC,GAChD,sBAAsB,CAsBxB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface ResolveLumalDevtoolsPluginOptions<T> {
|
|
2
|
+
enabled?: boolean;
|
|
3
|
+
factory?: () => T;
|
|
4
|
+
plugin?: T;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* 按需接入调用方已经安装的 Devtools 插件,不把具体实现变成 Lumal 强制依赖。
|
|
8
|
+
*/
|
|
9
|
+
export declare function resolveLumalDevtoolsPlugin<T>(options?: ResolveLumalDevtoolsPluginOptions<T>): T | undefined;
|
|
10
|
+
//# sourceMappingURL=devtools.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"devtools.d.ts","sourceRoot":"","sources":["../../src/devtools.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iCAAiC,CAAC,CAAC;IAClD,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC,CAAA;IACjB,MAAM,CAAC,EAAE,CAAC,CAAA;CACX;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,CAAC,EAC1C,OAAO,GAAE,iCAAiC,CAAC,CAAC,CAAM,GACjD,CAAC,GAAG,SAAS,CAMf"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { createLumalAliases, } from './aliases';
|
|
2
|
+
export type { CreateLumalAliasesOptions, LumalAliasEntry, LumalAliasPackage, LumalAliasTarget, } from './aliases';
|
|
3
|
+
export { createLumalComponentResolver, } from './component-resolver';
|
|
4
|
+
export type { CreateLumalComponentResolverOptions, LumalComponentResolver, LumalComponentResolverResult, } from './component-resolver';
|
|
5
|
+
export { resolveLumalDevtoolsPlugin, } from './devtools';
|
|
6
|
+
export type { ResolveLumalDevtoolsPluginOptions, } from './devtools';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,GACnB,MAAM,WAAW,CAAA;AAClB,YAAY,EACV,yBAAyB,EACzB,eAAe,EACf,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,WAAW,CAAA;AAClB,OAAO,EACL,4BAA4B,GAC7B,MAAM,sBAAsB,CAAA;AAC7B,YAAY,EACV,mCAAmC,EACnC,sBAAsB,EACtB,4BAA4B,GAC7B,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EACL,0BAA0B,GAC3B,MAAM,YAAY,CAAA;AACnB,YAAY,EACV,iCAAiC,GAClC,MAAM,YAAY,CAAA"}
|
package/package.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@lumal/vite",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.0.1-beta",
|
|
5
|
+
"description": "Lumal Vite component resolver, workspace aliases and optional devtools helpers.",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"lumal",
|
|
9
|
+
"vite",
|
|
10
|
+
"vue",
|
|
11
|
+
"resolver"
|
|
12
|
+
],
|
|
13
|
+
"sideEffects": false,
|
|
14
|
+
"publishConfig": {
|
|
15
|
+
"access": "public"
|
|
16
|
+
},
|
|
17
|
+
"exports": {
|
|
18
|
+
".": {
|
|
19
|
+
"types": "./dist/src/index.d.ts",
|
|
20
|
+
"import": "./dist/index.js",
|
|
21
|
+
"require": "./dist/index.cjs"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"main": "./dist/index.cjs",
|
|
25
|
+
"module": "./dist/index.js",
|
|
26
|
+
"types": "./dist/src/index.d.ts",
|
|
27
|
+
"files": [
|
|
28
|
+
"README.md",
|
|
29
|
+
"dist"
|
|
30
|
+
],
|
|
31
|
+
"scripts": {
|
|
32
|
+
"build": "vite build --config vite.config.ts && tsc -p tsconfig.json --emitDeclarationOnly && node ../../scripts/clean-package-dist.mjs dist",
|
|
33
|
+
"typecheck": "tsc --noEmit -p tsconfig.json",
|
|
34
|
+
"test": "vitest run --config ../../vitest.config.ts tests"
|
|
35
|
+
}
|
|
36
|
+
}
|