@dative-gpi/foundation-core-components 0.0.2 → 0.0.5
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/package.json +6 -6
- package/importMap.json +0 -8
- package/importsGenerator.py +0 -39
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dative-gpi/foundation-core-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"description": "",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
"author": "",
|
|
10
10
|
"license": "ISC",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@dative-gpi/foundation-core-domain": "0.0.
|
|
13
|
-
"@dative-gpi/foundation-core-services": "0.0.
|
|
14
|
-
"@dative-gpi/foundation-shared-domain": "0.0.
|
|
15
|
-
"@dative-gpi/foundation-shared-services": "0.0.
|
|
12
|
+
"@dative-gpi/foundation-core-domain": "0.0.5",
|
|
13
|
+
"@dative-gpi/foundation-core-services": "0.0.5",
|
|
14
|
+
"@dative-gpi/foundation-shared-domain": "0.0.5",
|
|
15
|
+
"@dative-gpi/foundation-shared-services": "0.0.5",
|
|
16
16
|
"color": "^4.2.3",
|
|
17
17
|
"vue": "^3.2.0"
|
|
18
18
|
},
|
|
@@ -21,5 +21,5 @@
|
|
|
21
21
|
"sass": "^1.69.5",
|
|
22
22
|
"sass-loader": "^13.3.2"
|
|
23
23
|
},
|
|
24
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "609abe1b97549b28ff83dffe858030604df27a2e"
|
|
25
25
|
}
|
package/importMap.json
DELETED
package/importsGenerator.py
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import os
|
|
2
|
-
import json
|
|
3
|
-
|
|
4
|
-
PROJECT = "@dative-gpi/foundation-core-components"
|
|
5
|
-
|
|
6
|
-
def find_vue_files(directory):
|
|
7
|
-
"""
|
|
8
|
-
Parcourt récursivement le répertoire donné et retourne un dictionnaire de fichiers .vue
|
|
9
|
-
"""
|
|
10
|
-
components_dict = {}
|
|
11
|
-
|
|
12
|
-
for root, dirs, files in os.walk(directory):
|
|
13
|
-
for file in files:
|
|
14
|
-
if file.endswith(".vue"):
|
|
15
|
-
# Récupérer le chemin relatif du fichier par rapport au répertoire racine du projet
|
|
16
|
-
full_relative_path = os.path.relpath(os.path.join(root, file), project_root)
|
|
17
|
-
|
|
18
|
-
file_name_without_extension = os.path.splitext(file)[0]
|
|
19
|
-
components_dict[file_name_without_extension] = {
|
|
20
|
-
"from": PROJECT + '/' + full_relative_path
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
return components_dict
|
|
24
|
-
|
|
25
|
-
def main():
|
|
26
|
-
global project_root
|
|
27
|
-
project_root = "." # Vous pouvez remplacer '.' par le chemin absolu ou relatif de votre projet
|
|
28
|
-
components = find_vue_files(os.path.join(project_root, "components"))
|
|
29
|
-
|
|
30
|
-
data = {
|
|
31
|
-
"components": components,
|
|
32
|
-
"directives": []
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
with open("importMap.json", "w", encoding="utf-8") as f:
|
|
36
|
-
json.dump(data, f, ensure_ascii=False, indent=4)
|
|
37
|
-
|
|
38
|
-
if __name__ == "__main__":
|
|
39
|
-
main()
|