@dative-gpi/foundation-core-components 0.0.2

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.
@@ -0,0 +1,26 @@
1
+ <template>
2
+ <div>
3
+ <FSButton
4
+ label="ThisIsACoreButton"
5
+ />
6
+ </div>
7
+ </template>
8
+
9
+ <script lang="ts">
10
+ import { defineComponent, PropType, toRefs } from "vue";
11
+ import FSButton from "@dative-gpi/foundation-shared-components/components/FSButton.vue";
12
+
13
+ export default defineComponent({
14
+ name: "FSCoreButton",
15
+ components: {
16
+ FSButton
17
+ },
18
+ props: {
19
+ },
20
+ setup(props) {
21
+ return {
22
+ };
23
+ }
24
+ });
25
+ </script>
26
+
package/importMap.json ADDED
@@ -0,0 +1,8 @@
1
+ {
2
+ "components": {
3
+ "FSCoreButton": {
4
+ "from": "@dative-gpi/foundation-core-components/components/FSCoreButton.vue"
5
+ }
6
+ },
7
+ "directives": []
8
+ }
@@ -0,0 +1,39 @@
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()
package/package.json ADDED
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "@dative-gpi/foundation-core-components",
3
+ "version": "0.0.2",
4
+ "description": "",
5
+ "publishConfig": {
6
+ "access": "public"
7
+ },
8
+ "main": "index.ts",
9
+ "author": "",
10
+ "license": "ISC",
11
+ "dependencies": {
12
+ "@dative-gpi/foundation-core-domain": "0.0.2",
13
+ "@dative-gpi/foundation-core-services": "0.0.2",
14
+ "@dative-gpi/foundation-shared-domain": "0.0.2",
15
+ "@dative-gpi/foundation-shared-services": "0.0.2",
16
+ "color": "^4.2.3",
17
+ "vue": "^3.2.0"
18
+ },
19
+ "devDependencies": {
20
+ "@types/color": "^3.0.6",
21
+ "sass": "^1.69.5",
22
+ "sass-loader": "^13.3.2"
23
+ },
24
+ "gitHead": "44e9629c836e0cd06289b208b53120f07775ea5e"
25
+ }