forked from alibaba/lowcode-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeps.ts
More file actions
38 lines (33 loc) · 949 Bytes
/
deps.ts
File metadata and controls
38 lines (33 loc) · 949 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
export interface INpmPackage {
package: string; // 组件包的名称
version: string; // 组件包的版本
}
/**
* 外部依赖描述
*
* @export
* @interface IExternalDependency
*/
export interface IExternalDependency extends INpmPackage, IDependency {}
export enum InternalDependencyType {
PAGE = 'pages',
BLOCK = 'components',
COMPONENT = 'components',
UTILS = 'utils',
}
export enum DependencyType {
External = 'External',
Internal = 'Internal',
}
export interface IInternalDependency extends IDependency {
type: InternalDependencyType;
moduleName: string;
}
export interface IDependency {
destructuring: boolean; // 组件是否是解构方式方式导出
exportName: string; // 导出命名
subName?: string; // 下标子组件名称
main?: string; // 包导出组件入口文件路径 /lib/input
dependencyType?: DependencyType; // 依赖类型 内/外
componentName?: string; // 导入后名称
}