@hadss/hmrouter-plugin 1.0.0-rc.9 → 1.1.1-alpha.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.
- package/LICENSE +176 -77
- package/NOTICE +1365 -0
- package/README.md +254 -71
- package/dist/HMRouterAnalyzer.d.ts +24 -1
- package/dist/HMRouterAnalyzer.js +154 -55
- package/dist/HMRouterHvigorPlugin.js +23 -4
- package/dist/HMRouterPluginConfig.d.ts +1 -0
- package/dist/HMRouterPluginConfig.js +7 -3
- package/dist/HMRouterPluginHandle.d.ts +1 -0
- package/dist/HMRouterPluginHandle.js +81 -55
- package/dist/HMRouterPluginManager.d.ts +9 -0
- package/dist/HMRouterPluginManager.js +55 -0
- package/dist/Index.d.ts +9 -3
- package/dist/Index.js +33 -103
- package/dist/common/Logger.js +1 -1
- package/dist/common/PluginModel.d.ts +4 -1
- package/dist/common/PluginModel.js +2 -1
- package/dist/constants/CommonConstants.d.ts +10 -5
- package/dist/constants/CommonConstants.js +11 -6
- package/dist/constants/ConfigConstants.d.ts +2 -1
- package/dist/constants/ConfigConstants.js +3 -2
- package/dist/constants/TaskConstants.js +1 -1
- package/dist/framework/constants/TaskConstants.d.ts +8 -0
- package/dist/framework/constants/TaskConstants.js +12 -0
- package/dist/framework/constants/index.d.ts +1 -0
- package/dist/framework/constants/index.js +17 -0
- package/dist/framework/core/PluginExecutionController.d.ts +15 -0
- package/dist/framework/core/PluginExecutionController.js +62 -0
- package/dist/framework/core/TaskManager.d.ts +12 -0
- package/dist/framework/core/TaskManager.js +67 -0
- package/dist/framework/core/TaskStage.d.ts +10 -0
- package/dist/framework/core/TaskStage.js +14 -0
- package/dist/framework/core/index.d.ts +3 -0
- package/dist/framework/core/index.js +19 -0
- package/dist/framework/extension/ExtensionManager.d.ts +11 -0
- package/dist/framework/extension/ExtensionManager.js +33 -0
- package/dist/framework/extension/PluginExtension.d.ts +13 -0
- package/dist/framework/extension/PluginExtension.js +6 -0
- package/dist/framework/extension/context/ExtensionContextImpl.d.ts +23 -0
- package/dist/framework/extension/context/ExtensionContextImpl.js +64 -0
- package/dist/framework/extension/context/Interface.d.ts +21 -0
- package/dist/framework/extension/context/Interface.js +2 -0
- package/dist/framework/extension/context/TemplateMetadataImpl.d.ts +12 -0
- package/dist/framework/extension/context/TemplateMetadataImpl.js +22 -0
- package/dist/framework/extension/index.d.ts +4 -0
- package/dist/framework/extension/index.js +20 -0
- package/dist/framework/index.d.ts +4 -0
- package/dist/framework/index.js +20 -0
- package/dist/framework/utils/FileUtil.d.ts +13 -0
- package/dist/framework/utils/FileUtil.js +20 -0
- package/dist/framework/utils/Logger.d.ts +12 -0
- package/dist/framework/utils/Logger.js +31 -0
- package/dist/framework/utils/ModuleTypeUtil.d.ts +4 -0
- package/dist/framework/utils/ModuleTypeUtil.js +16 -0
- package/dist/framework/utils/ObjectUtils.d.ts +3 -0
- package/dist/framework/utils/ObjectUtils.js +14 -0
- package/dist/framework/utils/PluginStore.d.ts +10 -0
- package/dist/framework/utils/PluginStore.js +29 -0
- package/dist/framework/utils/StringUtil.d.ts +3 -0
- package/dist/framework/utils/StringUtil.js +18 -0
- package/dist/framework/utils/TsAstUtil.d.ts +6 -0
- package/dist/framework/utils/TsAstUtil.js +19 -0
- package/dist/framework/utils/index.d.ts +7 -0
- package/dist/framework/utils/index.js +23 -0
- package/dist/hmrouter_extension/HMRouterExtension.d.ts +14 -0
- package/dist/hmrouter_extension/HMRouterExtension.js +47 -0
- package/dist/hmrouter_extension/HMRouterExtensionContext.d.ts +8 -0
- package/dist/hmrouter_extension/HMRouterExtensionContext.js +2 -0
- package/dist/hmrouter_extension/analyzer/AnnotationAnalyzerRegistry.d.ts +14 -0
- package/dist/hmrouter_extension/analyzer/AnnotationAnalyzerRegistry.js +45 -0
- package/dist/hmrouter_extension/analyzer/ComponentAnalyzer.d.ts +12 -0
- package/dist/hmrouter_extension/analyzer/ComponentAnalyzer.js +52 -0
- package/dist/hmrouter_extension/analyzer/RouterAnalyzer.d.ts +11 -0
- package/dist/hmrouter_extension/analyzer/RouterAnalyzer.js +79 -0
- package/dist/hmrouter_extension/analyzer/interface/AbstractAnnotationAnalyzer.d.ts +9 -0
- package/dist/hmrouter_extension/analyzer/interface/AbstractAnnotationAnalyzer.js +9 -0
- package/dist/hmrouter_extension/analyzer/interface/IConstantResolver.d.ts +7 -0
- package/dist/hmrouter_extension/analyzer/interface/IConstantResolver.js +2 -0
- package/dist/hmrouter_extension/analyzer/utils/ConstantAnalyzer.d.ts +9 -0
- package/dist/hmrouter_extension/analyzer/utils/ConstantAnalyzer.js +32 -0
- package/dist/hmrouter_extension/analyzer/utils/ConstantResolver.d.ts +15 -0
- package/dist/hmrouter_extension/analyzer/utils/ConstantResolver.js +217 -0
- package/dist/hmrouter_extension/analyzer/utils/DecoratorParser.d.ts +7 -0
- package/dist/hmrouter_extension/analyzer/utils/DecoratorParser.js +41 -0
- package/dist/hmrouter_extension/analyzer/utils/ImportAnalyzer.d.ts +4 -0
- package/dist/hmrouter_extension/analyzer/utils/ImportAnalyzer.js +35 -0
- package/dist/hmrouter_extension/config/HMRouterPluginConfig.d.ts +38 -0
- package/dist/hmrouter_extension/config/HMRouterPluginConfig.js +64 -0
- package/dist/hmrouter_extension/constants/AnnotationConstants.d.ts +8 -0
- package/dist/hmrouter_extension/constants/AnnotationConstants.js +11 -0
- package/dist/hmrouter_extension/constants/FilePathConstants.d.ts +19 -0
- package/dist/hmrouter_extension/constants/FilePathConstants.js +26 -0
- package/dist/hmrouter_extension/constants/ObfuscationConstants.d.ts +5 -0
- package/dist/hmrouter_extension/constants/ObfuscationConstants.js +8 -0
- package/dist/hmrouter_extension/constants/PluginConstants.d.ts +6 -0
- package/dist/hmrouter_extension/constants/PluginConstants.js +9 -0
- package/dist/hmrouter_extension/constants/PrefixConstants.d.ts +8 -0
- package/dist/hmrouter_extension/constants/PrefixConstants.js +11 -0
- package/dist/hmrouter_extension/constants/RouterMapConstants.d.ts +5 -0
- package/dist/hmrouter_extension/constants/RouterMapConstants.js +8 -0
- package/dist/hmrouter_extension/constants/TemplateConstants.d.ts +6 -0
- package/dist/hmrouter_extension/constants/TemplateConstants.js +9 -0
- package/dist/hmrouter_extension/constants/VersionConstants.d.ts +6 -0
- package/dist/hmrouter_extension/constants/VersionConstants.js +9 -0
- package/dist/hmrouter_extension/constants/index.d.ts +8 -0
- package/dist/hmrouter_extension/constants/index.js +22 -0
- package/dist/hmrouter_extension/error/PluginError.d.ts +29 -0
- package/dist/hmrouter_extension/error/PluginError.js +75 -0
- package/dist/hmrouter_extension/model/HMAnnotationModel.d.ts +28 -0
- package/dist/hmrouter_extension/model/HMAnnotationModel.js +2 -0
- package/dist/hmrouter_extension/model/RouterInfo.d.ts +6 -0
- package/dist/hmrouter_extension/model/RouterInfo.js +2 -0
- package/dist/hmrouter_extension/model/TemplateModel.d.ts +8 -0
- package/dist/hmrouter_extension/model/TemplateModel.js +2 -0
- package/dist/hmrouter_extension/model/index.d.ts +3 -0
- package/dist/hmrouter_extension/model/index.js +19 -0
- package/dist/hmrouter_extension/processor/CodeGenerationProcessor.d.ts +13 -0
- package/dist/hmrouter_extension/processor/CodeGenerationProcessor.js +117 -0
- package/dist/hmrouter_extension/processor/CompletionProcessor.d.ts +11 -0
- package/dist/hmrouter_extension/processor/CompletionProcessor.js +59 -0
- package/dist/hmrouter_extension/processor/ConfigUpdateProcessor.d.ts +11 -0
- package/dist/hmrouter_extension/processor/ConfigUpdateProcessor.js +53 -0
- package/dist/hmrouter_extension/processor/InitializerProcessor.d.ts +15 -0
- package/dist/hmrouter_extension/processor/InitializerProcessor.js +95 -0
- package/dist/hmrouter_extension/processor/ObfuscationProcessor.d.ts +13 -0
- package/dist/hmrouter_extension/processor/ObfuscationProcessor.js +121 -0
- package/dist/hmrouter_extension/processor/ResourceProcessor.d.ts +9 -0
- package/dist/hmrouter_extension/processor/ResourceProcessor.js +53 -0
- package/dist/hmrouter_extension/processor/RouterMapBuildingProcessor.d.ts +9 -0
- package/dist/hmrouter_extension/processor/RouterMapBuildingProcessor.js +122 -0
- package/dist/hmrouter_extension/processor/index.d.ts +7 -0
- package/dist/hmrouter_extension/processor/index.js +23 -0
- package/dist/store/PluginStore.d.ts +14 -0
- package/dist/store/PluginStore.js +20 -0
- package/dist/utils/FileUtil.d.ts +2 -0
- package/dist/utils/ObfuscationUtil.js +7 -1
- package/dist/utils/TsAstUtil.d.ts +3 -2
- package/dist/utils/TsAstUtil.js +51 -11
- package/examples/CustomExtension.ts +256 -0
- package/package.json +8 -7
- package/template/customBuilder.ejs +25 -0
- package/template/viewBuilder.ejs +51 -0
- package/{viewBuilder.ejs → template/viewBuilder_v1.ejs} +11 -4
- package/dist/common/Constant.d.ts +0 -27
- package/dist/common/Constant.js +0 -35
- package/dist/utils/ConfusionUtil.d.ts +0 -4
- package/dist/utils/ConfusionUtil.js +0 -27
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConstantResolver = void 0;
|
|
4
|
+
const ts_morph_1 = require("ts-morph");
|
|
5
|
+
const framework_1 = require("../../../framework");
|
|
6
|
+
const constants_1 = require("../../constants");
|
|
7
|
+
const ImportAnalyzer_1 = require("./ImportAnalyzer");
|
|
8
|
+
const PluginError_1 = require("../../error/PluginError");
|
|
9
|
+
class ConstantResolver {
|
|
10
|
+
constructor(modulePath) {
|
|
11
|
+
this.importMapCache = new Map();
|
|
12
|
+
this.modulePath = modulePath;
|
|
13
|
+
}
|
|
14
|
+
resolveConstant(value, sourceFile, filePath) {
|
|
15
|
+
if (value.type === 'constant') {
|
|
16
|
+
return this.parseConstantValue(framework_1.TsAstUtil.getSourceFile(value.variableFilePath), value.variableName);
|
|
17
|
+
}
|
|
18
|
+
else if (value.type === 'object') {
|
|
19
|
+
return this.parseConstantValue(framework_1.TsAstUtil.getSourceFile(value.variableFilePath), value.variableName, value.propertyName);
|
|
20
|
+
}
|
|
21
|
+
else if (value.type === 'array') {
|
|
22
|
+
return value.value.map((item) => {
|
|
23
|
+
return this.resolveConstant(item, sourceFile, filePath);
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
return value;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
resolvePropertyValue(value, sourceFile, filePath) {
|
|
31
|
+
switch (value.getKind()) {
|
|
32
|
+
case ts_morph_1.SyntaxKind.Identifier:
|
|
33
|
+
if (value.getText() === 'undefined') {
|
|
34
|
+
throw PluginError_1.PluginError.create(PluginError_1.ErrorCode.INVALID_STRING_VALUE, '', filePath);
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
type: 'constant',
|
|
38
|
+
variableName: value.getText(),
|
|
39
|
+
variableFilePath: this.getVariableFilePath(value.getText(), sourceFile, filePath),
|
|
40
|
+
};
|
|
41
|
+
case ts_morph_1.SyntaxKind.PropertyAccessExpression:
|
|
42
|
+
return {
|
|
43
|
+
type: 'object',
|
|
44
|
+
variableName: value.getExpression().getText(),
|
|
45
|
+
propertyName: value?.getName(),
|
|
46
|
+
variableFilePath: this.getVariableFilePath(value?.getExpression().getText(), sourceFile, filePath),
|
|
47
|
+
};
|
|
48
|
+
case ts_morph_1.SyntaxKind.ArrayLiteralExpression:
|
|
49
|
+
return {
|
|
50
|
+
type: 'array',
|
|
51
|
+
value: value
|
|
52
|
+
.asKind(ts_morph_1.SyntaxKind.ArrayLiteralExpression)
|
|
53
|
+
?.getElements()
|
|
54
|
+
.map((item) => this.resolvePropertyValue(item, sourceFile, filePath)),
|
|
55
|
+
};
|
|
56
|
+
default:
|
|
57
|
+
return this.parsePrimitiveValue(value);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
getVariableFilePath(variableName, sourceFile, filePath) {
|
|
61
|
+
let resultPath = '';
|
|
62
|
+
const classesNames = sourceFile.getClasses().map((classes) => classes.getName());
|
|
63
|
+
const variableNames = sourceFile
|
|
64
|
+
.getVariableDeclarations()
|
|
65
|
+
.map((variableDeclaration) => variableDeclaration.getName());
|
|
66
|
+
if (classesNames.includes(variableName) || variableNames.includes(variableName)) {
|
|
67
|
+
return filePath;
|
|
68
|
+
}
|
|
69
|
+
let importMap;
|
|
70
|
+
if (this.importMapCache.has(filePath)) {
|
|
71
|
+
importMap = this.importMapCache.get(filePath);
|
|
72
|
+
}
|
|
73
|
+
else {
|
|
74
|
+
importMap = ImportAnalyzer_1.ImportAnalyzer.analyzeImports(sourceFile);
|
|
75
|
+
this.importMapCache.set(filePath, importMap);
|
|
76
|
+
}
|
|
77
|
+
for (const [importPath, importNames] of importMap.entries()) {
|
|
78
|
+
if (importNames.includes(variableName)) {
|
|
79
|
+
const currentDir = framework_1.PluginFileUtil.pathResolve(filePath, constants_1.FilePathConstants.PARENT_DELIMITER);
|
|
80
|
+
const tempFilePath = framework_1.PluginFileUtil.pathResolve(currentDir, importPath + constants_1.FilePathConstants.ETS_SUFFIX);
|
|
81
|
+
if (framework_1.PluginFileUtil.exist(tempFilePath)) {
|
|
82
|
+
resultPath = tempFilePath;
|
|
83
|
+
break;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
if (!resultPath) {
|
|
88
|
+
for (const [importPath, importNames] of importMap.entries()) {
|
|
89
|
+
if (importNames.includes(variableName)) {
|
|
90
|
+
resultPath = this.getOtherModuleVariableFilePath(importPath, variableName, this.modulePath);
|
|
91
|
+
break;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
return resultPath;
|
|
96
|
+
}
|
|
97
|
+
getOtherModuleVariableFilePath(moduleName, variableName, modulePath) {
|
|
98
|
+
let moduleFilePath = framework_1.PluginFileUtil.pathResolve(modulePath, constants_1.FilePathConstants.OH_MODULE_PATH, moduleName, constants_1.FilePathConstants.DEFAULT_SCAN_DIR);
|
|
99
|
+
if (!framework_1.PluginFileUtil.exist(moduleFilePath)) {
|
|
100
|
+
moduleFilePath = framework_1.PluginFileUtil.pathResolve(framework_1.PluginStore.getInstance().get('projectFilePath'), constants_1.FilePathConstants.OH_MODULE_PATH, moduleName, constants_1.FilePathConstants.DEFAULT_SCAN_DIR);
|
|
101
|
+
}
|
|
102
|
+
const variableCache = framework_1.PluginStore.getInstance().get('variableCache');
|
|
103
|
+
if (!variableCache) {
|
|
104
|
+
framework_1.PluginStore.getInstance().set('variableCache', new Map());
|
|
105
|
+
}
|
|
106
|
+
let variableMap;
|
|
107
|
+
if (variableCache?.has(moduleName)) {
|
|
108
|
+
variableMap = variableCache.get(moduleName);
|
|
109
|
+
}
|
|
110
|
+
else {
|
|
111
|
+
variableMap = this.parseCrossModuleVariable(moduleFilePath);
|
|
112
|
+
variableCache?.set(moduleName, variableMap);
|
|
113
|
+
}
|
|
114
|
+
for (let [key, value] of variableMap) {
|
|
115
|
+
if (value.includes(variableName)) {
|
|
116
|
+
return key;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
throw PluginError_1.PluginError.create(PluginError_1.ErrorCode.UNKNOWN_VARIABLE, '', variableName);
|
|
120
|
+
}
|
|
121
|
+
parsePrimitiveValue(value) {
|
|
122
|
+
let propertyValue;
|
|
123
|
+
switch (value.getKind()) {
|
|
124
|
+
case ts_morph_1.SyntaxKind.StringLiteral:
|
|
125
|
+
propertyValue = value.asKind(ts_morph_1.SyntaxKind.StringLiteral)?.getLiteralValue();
|
|
126
|
+
break;
|
|
127
|
+
case ts_morph_1.SyntaxKind.NumericLiteral:
|
|
128
|
+
propertyValue = value.asKind(ts_morph_1.SyntaxKind.NumericLiteral)?.getLiteralValue();
|
|
129
|
+
break;
|
|
130
|
+
case ts_morph_1.SyntaxKind.TrueKeyword:
|
|
131
|
+
propertyValue = true;
|
|
132
|
+
break;
|
|
133
|
+
case ts_morph_1.SyntaxKind.FalseKeyword:
|
|
134
|
+
propertyValue = false;
|
|
135
|
+
break;
|
|
136
|
+
case ts_morph_1.SyntaxKind.ArrayLiteralExpression:
|
|
137
|
+
propertyValue = value
|
|
138
|
+
.asKind(ts_morph_1.SyntaxKind.ArrayLiteralExpression)
|
|
139
|
+
?.getElements()
|
|
140
|
+
.map((item) => item.asKind(ts_morph_1.SyntaxKind.StringLiteral)?.getLiteralValue());
|
|
141
|
+
break;
|
|
142
|
+
}
|
|
143
|
+
return propertyValue;
|
|
144
|
+
}
|
|
145
|
+
parseConstantValue(sourceFile, variableName, propertyName) {
|
|
146
|
+
let result;
|
|
147
|
+
if (propertyName) {
|
|
148
|
+
let classInstance = sourceFile.getClasses().find((classes) => {
|
|
149
|
+
return classes.getName() === variableName;
|
|
150
|
+
});
|
|
151
|
+
if (!classInstance) {
|
|
152
|
+
throw PluginError_1.PluginError.create(PluginError_1.ErrorCode.UNKNOWN_CLASS, '', variableName);
|
|
153
|
+
}
|
|
154
|
+
let property = classInstance.getProperties().find((properties) => {
|
|
155
|
+
return properties.getName() === propertyName;
|
|
156
|
+
});
|
|
157
|
+
if (!property) {
|
|
158
|
+
throw PluginError_1.PluginError.create(PluginError_1.ErrorCode.UNKNOWN_PROPERTY, '', propertyName);
|
|
159
|
+
}
|
|
160
|
+
result = property.getInitializer();
|
|
161
|
+
}
|
|
162
|
+
else {
|
|
163
|
+
let constant = sourceFile.getVariableDeclarations().find((declaration) => {
|
|
164
|
+
return declaration.getName() === variableName;
|
|
165
|
+
});
|
|
166
|
+
if (!constant) {
|
|
167
|
+
throw PluginError_1.PluginError.create(PluginError_1.ErrorCode.UNKNOWN_CONSTANT, '', variableName);
|
|
168
|
+
}
|
|
169
|
+
result = constant.getInitializer();
|
|
170
|
+
}
|
|
171
|
+
if (result.getKind() !== ts_morph_1.SyntaxKind.StringLiteral) {
|
|
172
|
+
throw PluginError_1.PluginError.create(PluginError_1.ErrorCode.INVALID_STRING_VALUE, '', variableName);
|
|
173
|
+
}
|
|
174
|
+
const resultValue = result.asKind(ts_morph_1.SyntaxKind.StringLiteral)?.getLiteralValue();
|
|
175
|
+
if (!resultValue) {
|
|
176
|
+
throw PluginError_1.PluginError.create(PluginError_1.ErrorCode.NOT_EMPTY_STRING, '', variableName);
|
|
177
|
+
}
|
|
178
|
+
return resultValue;
|
|
179
|
+
}
|
|
180
|
+
parseCrossModuleVariable(scanDir) {
|
|
181
|
+
let sourceFiles = framework_1.TsAstUtil.project.addSourceFilesAtPaths(`${scanDir}/**/*.ets`);
|
|
182
|
+
const exportMap = new Map();
|
|
183
|
+
for (let sourceFile of sourceFiles) {
|
|
184
|
+
const exportedNames = this.getExportedVariables(sourceFile);
|
|
185
|
+
if (exportedNames.length > 0) {
|
|
186
|
+
exportMap.set(sourceFile.getFilePath(), exportedNames);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
return exportMap;
|
|
190
|
+
}
|
|
191
|
+
getExportedVariables(sourceFile) {
|
|
192
|
+
const exportSymbols = [];
|
|
193
|
+
let exportKeywordNodes = sourceFile.getDescendantsOfKind(ts_morph_1.SyntaxKind.ExportKeyword);
|
|
194
|
+
exportKeywordNodes.forEach((node) => {
|
|
195
|
+
let parentNodeKind = node.getParent()?.getKind();
|
|
196
|
+
switch (parentNodeKind) {
|
|
197
|
+
case ts_morph_1.SyntaxKind.VariableStatement:
|
|
198
|
+
let variableStatement = node.getParent()?.asKind(ts_morph_1.SyntaxKind.VariableStatement);
|
|
199
|
+
let variableNames = variableStatement
|
|
200
|
+
.getDeclarationList()
|
|
201
|
+
.getDeclarations()
|
|
202
|
+
.map((declaration) => {
|
|
203
|
+
return declaration.getName();
|
|
204
|
+
});
|
|
205
|
+
exportSymbols.push(...variableNames);
|
|
206
|
+
break;
|
|
207
|
+
case ts_morph_1.SyntaxKind.ClassDeclaration:
|
|
208
|
+
let classDeclaration = node.getParent();
|
|
209
|
+
let className = classDeclaration?.asKind(ts_morph_1.SyntaxKind.ClassDeclaration)?.getName();
|
|
210
|
+
exportSymbols.push(className);
|
|
211
|
+
break;
|
|
212
|
+
}
|
|
213
|
+
});
|
|
214
|
+
return exportSymbols;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
exports.ConstantResolver = ConstantResolver;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Decorator, SourceFile } from 'ts-morph';
|
|
2
|
+
import { IConstantResolver } from '../interface/IConstantResolver';
|
|
3
|
+
import { BaseAnalyzeResult } from '../../../framework';
|
|
4
|
+
export declare class DecoratorParser {
|
|
5
|
+
static parseDecorator(decorator: Decorator, constantResolver: IConstantResolver, sourceFile: SourceFile, filePath: string): BaseAnalyzeResult;
|
|
6
|
+
static parseDecoratorArguments(decorator: Decorator, constantResolver: IConstantResolver, sourceFile: SourceFile, filePath: string): BaseAnalyzeResult;
|
|
7
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DecoratorParser = void 0;
|
|
4
|
+
const ts_morph_1 = require("ts-morph");
|
|
5
|
+
class DecoratorParser {
|
|
6
|
+
static parseDecorator(decorator, constantResolver, sourceFile, filePath) {
|
|
7
|
+
const decoratorResult = {
|
|
8
|
+
annotation: decorator.getName(),
|
|
9
|
+
name: '',
|
|
10
|
+
sourceFilePath: ''
|
|
11
|
+
};
|
|
12
|
+
const args = this.parseDecoratorArguments(decorator, constantResolver, sourceFile, filePath);
|
|
13
|
+
Object.assign(decoratorResult, args);
|
|
14
|
+
return decoratorResult;
|
|
15
|
+
}
|
|
16
|
+
static parseDecoratorArguments(decorator, constantResolver, sourceFile, filePath) {
|
|
17
|
+
const argResult = {
|
|
18
|
+
annotation: decorator.getName(),
|
|
19
|
+
name: '',
|
|
20
|
+
sourceFilePath: '',
|
|
21
|
+
};
|
|
22
|
+
decorator.getArguments().forEach((arg) => {
|
|
23
|
+
const objLiteral = arg.asKind(ts_morph_1.SyntaxKind.ObjectLiteralExpression);
|
|
24
|
+
if (objLiteral) {
|
|
25
|
+
objLiteral.getProperties().forEach((prop) => {
|
|
26
|
+
if (prop.getKind() === ts_morph_1.SyntaxKind.PropertyAssignment) {
|
|
27
|
+
const propertyAssignment = prop;
|
|
28
|
+
const propertyName = propertyAssignment.getName();
|
|
29
|
+
const initializer = propertyAssignment.getInitializer();
|
|
30
|
+
if (initializer) {
|
|
31
|
+
const propertyValue = constantResolver.resolvePropertyValue(initializer, sourceFile, filePath);
|
|
32
|
+
Reflect.set(argResult, propertyName, propertyValue);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
return argResult;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.DecoratorParser = DecoratorParser;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ImportAnalyzer = void 0;
|
|
4
|
+
class ImportAnalyzer {
|
|
5
|
+
static analyzeImports(sourceFile) {
|
|
6
|
+
const importMap = new Map();
|
|
7
|
+
sourceFile.getImportDeclarations().forEach((importDeclaration) => {
|
|
8
|
+
const moduleSpecifier = importDeclaration.getModuleSpecifierValue();
|
|
9
|
+
const namedImports = importDeclaration.getNamedImports().map((namedImport) => namedImport.getName());
|
|
10
|
+
const defaultImport = importDeclaration.getDefaultImport()?.getText();
|
|
11
|
+
const namespaceImport = importDeclaration.getNamespaceImport()?.getText();
|
|
12
|
+
const importNames = [];
|
|
13
|
+
if (namedImports.length > 0) {
|
|
14
|
+
importNames.push(...namedImports);
|
|
15
|
+
}
|
|
16
|
+
if (defaultImport) {
|
|
17
|
+
importNames.push(defaultImport);
|
|
18
|
+
}
|
|
19
|
+
if (namespaceImport) {
|
|
20
|
+
importNames.push(namespaceImport);
|
|
21
|
+
}
|
|
22
|
+
if (importNames.length > 0) {
|
|
23
|
+
if (importMap.has(moduleSpecifier)) {
|
|
24
|
+
const existingImports = importMap.get(moduleSpecifier);
|
|
25
|
+
importMap.set(moduleSpecifier, [...new Set([...existingImports, ...importNames])]);
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
importMap.set(moduleSpecifier, importNames);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
return importMap;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.ImportAnalyzer = ImportAnalyzer;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export declare class HMRouterPluginConfig {
|
|
2
|
+
moduleName: string;
|
|
3
|
+
modulePath: string;
|
|
4
|
+
configDir: string;
|
|
5
|
+
scanDir: string[];
|
|
6
|
+
routerMapDir: string;
|
|
7
|
+
builderDir: string;
|
|
8
|
+
defaultPageTemplate: string;
|
|
9
|
+
customPageTemplate: CustomPageTemplateImpl[];
|
|
10
|
+
saveGeneratedFile: boolean;
|
|
11
|
+
autoObfuscation: boolean;
|
|
12
|
+
constructor(moduleName: string, modulePath: string, configDir: string, param: HMRouterPluginConfigParam);
|
|
13
|
+
getScanPath(dir: string): string;
|
|
14
|
+
getRelativeSourcePath(filePath: string): string;
|
|
15
|
+
getRelativeBuilderPath(filePath: string): string;
|
|
16
|
+
getGeneratedFilePath(generatorViewName: string): string;
|
|
17
|
+
getBuilderDir(): string;
|
|
18
|
+
getBuilderFilePath(generatorViewName: string): string;
|
|
19
|
+
getRouterMapDir(): string;
|
|
20
|
+
getModuleRouterMapFilePath(routerMapFileName: string): string;
|
|
21
|
+
getRawFilePath(): string;
|
|
22
|
+
getDefaultTplFilePath(): string;
|
|
23
|
+
getObfuscationFilePath(): string;
|
|
24
|
+
getConsumerRulesFilePath(): string;
|
|
25
|
+
}
|
|
26
|
+
export interface HMRouterPluginConfigParam {
|
|
27
|
+
scanDir?: string[];
|
|
28
|
+
routerMapDir?: string;
|
|
29
|
+
builderDir?: string;
|
|
30
|
+
autoObfuscation?: boolean;
|
|
31
|
+
saveGeneratedFile?: boolean;
|
|
32
|
+
defaultPageTemplate?: string;
|
|
33
|
+
customPageTemplate?: CustomPageTemplateImpl[];
|
|
34
|
+
}
|
|
35
|
+
export interface CustomPageTemplateImpl {
|
|
36
|
+
srcPath: string[];
|
|
37
|
+
templatePath: string;
|
|
38
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.HMRouterPluginConfig = void 0;
|
|
7
|
+
const path_1 = __importDefault(require("path"));
|
|
8
|
+
const framework_1 = require("../../framework");
|
|
9
|
+
const constants_1 = require("../constants");
|
|
10
|
+
class HMRouterPluginConfig {
|
|
11
|
+
constructor(moduleName, modulePath, configDir, param) {
|
|
12
|
+
this.moduleName = moduleName;
|
|
13
|
+
this.modulePath = modulePath;
|
|
14
|
+
this.configDir = configDir;
|
|
15
|
+
this.scanDir = param.scanDir ? [...new Set(param.scanDir)] : [];
|
|
16
|
+
this.routerMapDir = param.routerMapDir || '';
|
|
17
|
+
this.builderDir = param.builderDir || '';
|
|
18
|
+
this.defaultPageTemplate = param.defaultPageTemplate || '';
|
|
19
|
+
this.customPageTemplate = param.customPageTemplate || [];
|
|
20
|
+
this.saveGeneratedFile = !!param.saveGeneratedFile;
|
|
21
|
+
this.autoObfuscation = !!param.autoObfuscation;
|
|
22
|
+
}
|
|
23
|
+
getScanPath(dir) {
|
|
24
|
+
return framework_1.PluginFileUtil.pathResolve(this.modulePath, dir);
|
|
25
|
+
}
|
|
26
|
+
getRelativeSourcePath(filePath) {
|
|
27
|
+
return path_1.default.relative(this.modulePath, filePath);
|
|
28
|
+
}
|
|
29
|
+
getRelativeBuilderPath(filePath) {
|
|
30
|
+
return path_1.default.relative(this.builderDir, filePath);
|
|
31
|
+
}
|
|
32
|
+
getGeneratedFilePath(generatorViewName) {
|
|
33
|
+
return framework_1.PluginFileUtil.pathResolve(this.modulePath, this.builderDir, generatorViewName + constants_1.FilePathConstants.ETS_SUFFIX);
|
|
34
|
+
}
|
|
35
|
+
getBuilderDir() {
|
|
36
|
+
return framework_1.PluginFileUtil.pathResolve(this.modulePath, this.builderDir);
|
|
37
|
+
}
|
|
38
|
+
getBuilderFilePath(generatorViewName) {
|
|
39
|
+
return path_1.default.join(this.builderDir, generatorViewName + constants_1.FilePathConstants.ETS_SUFFIX);
|
|
40
|
+
}
|
|
41
|
+
getRouterMapDir() {
|
|
42
|
+
return framework_1.PluginFileUtil.pathResolve(this.modulePath, this.routerMapDir, constants_1.RouterMapConstants.ROUTER_MAP_NAME);
|
|
43
|
+
}
|
|
44
|
+
getModuleRouterMapFilePath(routerMapFileName) {
|
|
45
|
+
return framework_1.PluginFileUtil.pathResolve(this.modulePath, this.routerMapDir, routerMapFileName + constants_1.FilePathConstants.JSON_SUFFIX);
|
|
46
|
+
}
|
|
47
|
+
getRawFilePath() {
|
|
48
|
+
return framework_1.PluginFileUtil.pathResolve(this.modulePath, constants_1.FilePathConstants.RAWFILE_DIR);
|
|
49
|
+
}
|
|
50
|
+
getDefaultTplFilePath() {
|
|
51
|
+
let templateFilePath = framework_1.PluginFileUtil.pathResolve(this.configDir, this.defaultPageTemplate);
|
|
52
|
+
if (framework_1.PluginFileUtil.exist(templateFilePath)) {
|
|
53
|
+
return templateFilePath;
|
|
54
|
+
}
|
|
55
|
+
return framework_1.PluginFileUtil.pathResolve(__dirname, constants_1.FilePathConstants.PARENT_DELIMITER.repeat(3) + this.defaultPageTemplate);
|
|
56
|
+
}
|
|
57
|
+
getObfuscationFilePath() {
|
|
58
|
+
return framework_1.PluginFileUtil.pathResolve(this.modulePath, constants_1.FilePathConstants.OBFUSCATION_FILE_NAME);
|
|
59
|
+
}
|
|
60
|
+
getConsumerRulesFilePath() {
|
|
61
|
+
return framework_1.PluginFileUtil.pathResolve(this.modulePath, constants_1.FilePathConstants.CONSUMER_FILE_NAME);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
exports.HMRouterPluginConfig = HMRouterPluginConfig;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export default class AnnotationConstants {
|
|
2
|
+
static readonly ROUTER_ANNOTATION = "HMRouter";
|
|
3
|
+
static readonly ANIMATOR_ANNOTATION = "HMAnimator";
|
|
4
|
+
static readonly INTERCEPTOR_ANNOTATION = "HMInterceptor";
|
|
5
|
+
static readonly LIFECYCLE_ANNOTATION = "HMLifecycle";
|
|
6
|
+
static readonly SERVICE_ANNOTATION = "HMService";
|
|
7
|
+
static readonly SERVICE_PROVIDE_ANNOTATION = "HMServiceProvider";
|
|
8
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class AnnotationConstants {
|
|
4
|
+
}
|
|
5
|
+
exports.default = AnnotationConstants;
|
|
6
|
+
AnnotationConstants.ROUTER_ANNOTATION = 'HMRouter';
|
|
7
|
+
AnnotationConstants.ANIMATOR_ANNOTATION = 'HMAnimator';
|
|
8
|
+
AnnotationConstants.INTERCEPTOR_ANNOTATION = 'HMInterceptor';
|
|
9
|
+
AnnotationConstants.LIFECYCLE_ANNOTATION = 'HMLifecycle';
|
|
10
|
+
AnnotationConstants.SERVICE_ANNOTATION = 'HMService';
|
|
11
|
+
AnnotationConstants.SERVICE_PROVIDE_ANNOTATION = 'HMServiceProvider';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export default class FilePathConstants {
|
|
2
|
+
static readonly OBFUSCATION_FILE_NAME = "hmrouter-obfuscation-rules.txt";
|
|
3
|
+
static readonly CONSUMER_FILE_NAME = "hmrouter-consumer-rules.txt";
|
|
4
|
+
static readonly FILE_SEPARATOR: "\\" | "/";
|
|
5
|
+
static readonly DELIMITER = "/";
|
|
6
|
+
static readonly TEMP_ROUTER_MAP_PATH = "../../intermediates/router_map";
|
|
7
|
+
static readonly RAWFILE_DIR = "src/main/resources/rawfile/hm_router_map.json";
|
|
8
|
+
static readonly ETS_SUFFIX = ".ets";
|
|
9
|
+
static readonly JSON_SUFFIX = ".json";
|
|
10
|
+
static readonly CONFIG_FILE_NAME = "hmrouter_config.json";
|
|
11
|
+
static readonly PARENT_DELIMITER = "../";
|
|
12
|
+
static readonly CURRENT_DELIMITER = "./";
|
|
13
|
+
static readonly OH_MODULE_PATH = "oh_modules";
|
|
14
|
+
static readonly OH_PACKAGE_FILE_NAME = "oh-package.json5";
|
|
15
|
+
static readonly LINE_BREAK = "\n";
|
|
16
|
+
static readonly DEFAULT_SCAN_DIR = "src/main/ets";
|
|
17
|
+
static readonly DEFAULT_ROUTER_MAP_DIR = "src/main/resources/base/profile";
|
|
18
|
+
static readonly DEFAULT_BUILD_DIR = "src/main/ets/generated";
|
|
19
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const path_1 = __importDefault(require("path"));
|
|
7
|
+
class FilePathConstants {
|
|
8
|
+
}
|
|
9
|
+
exports.default = FilePathConstants;
|
|
10
|
+
FilePathConstants.OBFUSCATION_FILE_NAME = 'hmrouter-obfuscation-rules.txt';
|
|
11
|
+
FilePathConstants.CONSUMER_FILE_NAME = 'hmrouter-consumer-rules.txt';
|
|
12
|
+
FilePathConstants.FILE_SEPARATOR = path_1.default.sep;
|
|
13
|
+
FilePathConstants.DELIMITER = '/';
|
|
14
|
+
FilePathConstants.TEMP_ROUTER_MAP_PATH = '../../intermediates/router_map';
|
|
15
|
+
FilePathConstants.RAWFILE_DIR = 'src/main/resources/rawfile/hm_router_map.json';
|
|
16
|
+
FilePathConstants.ETS_SUFFIX = '.ets';
|
|
17
|
+
FilePathConstants.JSON_SUFFIX = '.json';
|
|
18
|
+
FilePathConstants.CONFIG_FILE_NAME = 'hmrouter_config.json';
|
|
19
|
+
FilePathConstants.PARENT_DELIMITER = '../';
|
|
20
|
+
FilePathConstants.CURRENT_DELIMITER = './';
|
|
21
|
+
FilePathConstants.OH_MODULE_PATH = 'oh_modules';
|
|
22
|
+
FilePathConstants.OH_PACKAGE_FILE_NAME = 'oh-package.json5';
|
|
23
|
+
FilePathConstants.LINE_BREAK = '\n';
|
|
24
|
+
FilePathConstants.DEFAULT_SCAN_DIR = 'src/main/ets';
|
|
25
|
+
FilePathConstants.DEFAULT_ROUTER_MAP_DIR = 'src/main/resources/base/profile';
|
|
26
|
+
FilePathConstants.DEFAULT_BUILD_DIR = 'src/main/ets/generated';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class ObfuscationConstants {
|
|
4
|
+
}
|
|
5
|
+
exports.default = ObfuscationConstants;
|
|
6
|
+
ObfuscationConstants.KEEP_FILE_NAME = '-keep-file-name';
|
|
7
|
+
ObfuscationConstants.KEEP_PROPERTY_NAME = '-keep-property-name';
|
|
8
|
+
ObfuscationConstants.KEEP_GLOBAL_NAME = '-keep-global-name';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class PluginConstants {
|
|
4
|
+
}
|
|
5
|
+
exports.default = PluginConstants;
|
|
6
|
+
PluginConstants.HAP_PLUGIN_ID = 'HAP_HMROUTER_PLUGIN';
|
|
7
|
+
PluginConstants.HSP_PLUGIN_ID = 'HSP_HMROUTER_PLUGIN';
|
|
8
|
+
PluginConstants.HAR_PLUGIN_ID = 'HAR_HMROUTER_PLUGIN';
|
|
9
|
+
PluginConstants.HAR_MODULE_NAME = 'har';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export default class PrefixConstants {
|
|
2
|
+
static readonly ANIMATOR_PREFIX = "__animator__";
|
|
3
|
+
static readonly INTERCEPTOR_PREFIX = "__interceptor__";
|
|
4
|
+
static readonly LIFECYCLE_PREFIX = "__lifecycle__";
|
|
5
|
+
static readonly SERVICE_PREFIX = "__service__";
|
|
6
|
+
static readonly SERVICE_PROVIDE_PREFIX = "__service_provider__";
|
|
7
|
+
static readonly VIEW_NAME_PREFIX = "HM";
|
|
8
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class PrefixConstants {
|
|
4
|
+
}
|
|
5
|
+
exports.default = PrefixConstants;
|
|
6
|
+
PrefixConstants.ANIMATOR_PREFIX = '__animator__';
|
|
7
|
+
PrefixConstants.INTERCEPTOR_PREFIX = '__interceptor__';
|
|
8
|
+
PrefixConstants.LIFECYCLE_PREFIX = '__lifecycle__';
|
|
9
|
+
PrefixConstants.SERVICE_PREFIX = '__service__';
|
|
10
|
+
PrefixConstants.SERVICE_PROVIDE_PREFIX = '__service_provider__';
|
|
11
|
+
PrefixConstants.VIEW_NAME_PREFIX = 'HM';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class RouterMapConstants {
|
|
4
|
+
}
|
|
5
|
+
exports.default = RouterMapConstants;
|
|
6
|
+
RouterMapConstants.ROUTER_MAP_KEY = 'routerMap';
|
|
7
|
+
RouterMapConstants.MODULE_ROUTER_MAP_NAME = '$profile:hm_router_map';
|
|
8
|
+
RouterMapConstants.ROUTER_MAP_NAME = 'hm_router_map.json';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export default class TemplateConstants {
|
|
2
|
+
static readonly CUSTOM_BUILDER_TEMPLATE = "template/customBuilder.ejs";
|
|
3
|
+
static readonly VIEW_BUILDER_TEMPLATE = "template/viewBuilder.ejs";
|
|
4
|
+
static readonly V1_TEMPLATE = "template/viewBuilder_v1.ejs";
|
|
5
|
+
static readonly WARP_BUILDER = "WrapBuilder";
|
|
6
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class TemplateConstants {
|
|
4
|
+
}
|
|
5
|
+
exports.default = TemplateConstants;
|
|
6
|
+
TemplateConstants.CUSTOM_BUILDER_TEMPLATE = 'template/customBuilder.ejs';
|
|
7
|
+
TemplateConstants.VIEW_BUILDER_TEMPLATE = 'template/viewBuilder.ejs';
|
|
8
|
+
TemplateConstants.V1_TEMPLATE = 'template/viewBuilder_v1.ejs';
|
|
9
|
+
TemplateConstants.WARP_BUILDER = 'WrapBuilder';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class VersionConstants {
|
|
4
|
+
}
|
|
5
|
+
exports.default = VersionConstants;
|
|
6
|
+
VersionConstants.HMROUTER_ORGANIZATION = '@hadss';
|
|
7
|
+
VersionConstants.HMROUTER_LIB_NAME = 'hmrouter';
|
|
8
|
+
VersionConstants.HMROUTER_VERSION_KEY = 'version';
|
|
9
|
+
VersionConstants.HMROUTER_VERSION_V1 = '1.0.0';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { default as AnnotationConstants } from './AnnotationConstants';
|
|
2
|
+
export { default as PrefixConstants } from './PrefixConstants';
|
|
3
|
+
export { default as FilePathConstants } from './FilePathConstants';
|
|
4
|
+
export { default as TemplateConstants } from './TemplateConstants';
|
|
5
|
+
export { default as RouterMapConstants } from './RouterMapConstants';
|
|
6
|
+
export { default as PluginConstants } from './PluginConstants';
|
|
7
|
+
export { default as ObfuscationConstants } from './ObfuscationConstants';
|
|
8
|
+
export { default as VersionConstants } from './VersionConstants';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.VersionConstants = exports.ObfuscationConstants = exports.PluginConstants = exports.RouterMapConstants = exports.TemplateConstants = exports.FilePathConstants = exports.PrefixConstants = exports.AnnotationConstants = void 0;
|
|
7
|
+
var AnnotationConstants_1 = require("./AnnotationConstants");
|
|
8
|
+
Object.defineProperty(exports, "AnnotationConstants", { enumerable: true, get: function () { return __importDefault(AnnotationConstants_1).default; } });
|
|
9
|
+
var PrefixConstants_1 = require("./PrefixConstants");
|
|
10
|
+
Object.defineProperty(exports, "PrefixConstants", { enumerable: true, get: function () { return __importDefault(PrefixConstants_1).default; } });
|
|
11
|
+
var FilePathConstants_1 = require("./FilePathConstants");
|
|
12
|
+
Object.defineProperty(exports, "FilePathConstants", { enumerable: true, get: function () { return __importDefault(FilePathConstants_1).default; } });
|
|
13
|
+
var TemplateConstants_1 = require("./TemplateConstants");
|
|
14
|
+
Object.defineProperty(exports, "TemplateConstants", { enumerable: true, get: function () { return __importDefault(TemplateConstants_1).default; } });
|
|
15
|
+
var RouterMapConstants_1 = require("./RouterMapConstants");
|
|
16
|
+
Object.defineProperty(exports, "RouterMapConstants", { enumerable: true, get: function () { return __importDefault(RouterMapConstants_1).default; } });
|
|
17
|
+
var PluginConstants_1 = require("./PluginConstants");
|
|
18
|
+
Object.defineProperty(exports, "PluginConstants", { enumerable: true, get: function () { return __importDefault(PluginConstants_1).default; } });
|
|
19
|
+
var ObfuscationConstants_1 = require("./ObfuscationConstants");
|
|
20
|
+
Object.defineProperty(exports, "ObfuscationConstants", { enumerable: true, get: function () { return __importDefault(ObfuscationConstants_1).default; } });
|
|
21
|
+
var VersionConstants_1 = require("./VersionConstants");
|
|
22
|
+
Object.defineProperty(exports, "VersionConstants", { enumerable: true, get: function () { return __importDefault(VersionConstants_1).default; } });
|