@dative-gpi/foundation-shared-loader 0.0.107 → 0.0.109
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/getImports.js +0 -5
- package/importsGenerator.py +0 -1
- package/package.json +2 -2
- package/plugin/getImports.ts +0 -5
package/dist/getImports.js
CHANGED
|
@@ -28,7 +28,6 @@ const parseTemplate_1 = require("./parseTemplate");
|
|
|
28
28
|
const sharedImportMap = __importStar(require("./mapping/foundation-shared-components-imports-map.json"));
|
|
29
29
|
const coreImportMap = __importStar(require("./mapping/foundation-core-components-imports-map.json"));
|
|
30
30
|
const adminImportMap = __importStar(require("./mapping/foundation-admin-components-imports-map.json"));
|
|
31
|
-
const extensionImportMap = __importStar(require("./mapping/foundation-extension-components-imports-map.json"));
|
|
32
31
|
function getImports(source, skipShared, skipCore, skipAdmin, skipExtension) {
|
|
33
32
|
const { components, directives } = (0, parseTemplate_1.parseTemplate)(source);
|
|
34
33
|
const resolvedComponents = [];
|
|
@@ -48,10 +47,6 @@ function getImports(source, skipShared, skipCore, skipAdmin, skipExtension) {
|
|
|
48
47
|
resolvedComponents.push(component);
|
|
49
48
|
addImport(imports, component.name, component.symbol, adminImportMap.components[component.name].from);
|
|
50
49
|
}
|
|
51
|
-
else if (!skipExtension && component.name in extensionImportMap.components) {
|
|
52
|
-
resolvedComponents.push(component);
|
|
53
|
-
addImport(imports, component.name, component.symbol, extensionImportMap.components[component.name].from);
|
|
54
|
-
}
|
|
55
50
|
});
|
|
56
51
|
// directives.forEach(directive => {
|
|
57
52
|
// if (importMap.directives.includes(directive.name)) {
|
package/importsGenerator.py
CHANGED
|
@@ -5,7 +5,6 @@ PROJECTS = {
|
|
|
5
5
|
"foundation-shared-components": "../foundation-shared-components/components",
|
|
6
6
|
"foundation-admin-components": "../../admin/foundation-admin-components/components",
|
|
7
7
|
"foundation-core-components": "../../core/foundation-core-components/components",
|
|
8
|
-
"foundation-extension-components": "../../extension/foundation-extension-components/components",
|
|
9
8
|
# Ajoutez d'autres projets ici si nécessaire
|
|
10
9
|
}
|
|
11
10
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dative-gpi/foundation-shared-loader",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.109",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -23,5 +23,5 @@
|
|
|
23
23
|
"vite": "^4.5.0",
|
|
24
24
|
"vue": "^3.4.23"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "2d4b8a76e9b8361a8a1e9b327311afef20a53950"
|
|
27
27
|
}
|
package/plugin/getImports.ts
CHANGED
|
@@ -2,7 +2,6 @@ import { parseTemplate, type TemplateMatch } from './parseTemplate'
|
|
|
2
2
|
import * as sharedImportMap from './mapping/foundation-shared-components-imports-map.json'
|
|
3
3
|
import * as coreImportMap from './mapping/foundation-core-components-imports-map.json'
|
|
4
4
|
import * as adminImportMap from './mapping/foundation-admin-components-imports-map.json'
|
|
5
|
-
import * as extensionImportMap from './mapping/foundation-extension-components-imports-map.json'
|
|
6
5
|
|
|
7
6
|
export function getImports (source: string, skipShared: boolean, skipCore: boolean, skipAdmin: boolean, skipExtension: boolean) {
|
|
8
7
|
const { components, directives } = parseTemplate(source)
|
|
@@ -24,10 +23,6 @@ export function getImports (source: string, skipShared: boolean, skipCore: boole
|
|
|
24
23
|
resolvedComponents.push(component)
|
|
25
24
|
addImport(imports, component.name, component.symbol, (adminImportMap.components as any)[component.name].from)
|
|
26
25
|
}
|
|
27
|
-
else if (!skipExtension && component.name in extensionImportMap.components) {
|
|
28
|
-
resolvedComponents.push(component)
|
|
29
|
-
addImport(imports, component.name, component.symbol, (extensionImportMap.components as any)[component.name].from)
|
|
30
|
-
}
|
|
31
26
|
})
|
|
32
27
|
// directives.forEach(directive => {
|
|
33
28
|
// if (importMap.directives.includes(directive.name)) {
|