@emfts/codegen 0.0.1-next.2 → 0.0.1-next.3

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,132 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3
+ xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="genconfig" nsURI="http://www.emfts.org/genconfig/1.0" nsPrefix="genconfig">
4
+
5
+ <!-- ============================================ -->
6
+ <!-- ROOT: GenConfig -->
7
+ <!-- ============================================ -->
8
+ <eClassifiers xsi:type="ecore:EClass" name="GenConfig">
9
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
10
+ <details key="documentation" value="Root configuration for TypeScript code generation from Ecore models"/>
11
+ </eAnnotations>
12
+ <eStructuralFeatures xsi:type="ecore:EReference" name="ecorePackage" lowerBound="1" eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EPackage">
13
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
14
+ <details key="documentation" value="Reference to the EPackage to generate code for (resolved via nsURI)"/>
15
+ </eAnnotations>
16
+ </eStructuralFeatures>
17
+ <eStructuralFeatures xsi:type="ecore:EReference" name="generation" lowerBound="1" eType="#//GenerationSettings" containment="true"/>
18
+ <eStructuralFeatures xsi:type="ecore:EReference" name="package" lowerBound="1" eType="#//PackageSettings" containment="true"/>
19
+ <eStructuralFeatures xsi:type="ecore:EReference" name="classDefaults" eType="#//ClassDefaults" containment="true"/>
20
+ <eStructuralFeatures xsi:type="ecore:EReference" name="featureDefaults" eType="#//FeatureDefaults" containment="true"/>
21
+ <eStructuralFeatures xsi:type="ecore:EReference" name="classOverrides" upperBound="-1" eType="#//ClassOverride" containment="true"/>
22
+ </eClassifiers>
23
+
24
+ <!-- ============================================ -->
25
+ <!-- GENERATION SETTINGS -->
26
+ <!-- ============================================ -->
27
+ <eClassifiers xsi:type="ecore:EClass" name="GenerationSettings">
28
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
29
+ <details key="documentation" value="Settings controlling how code is generated"/>
30
+ </eAnnotations>
31
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="mode" lowerBound="1" eType="#//GenerationMode" defaultValueLiteral="emf"/>
32
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="outputDir" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString" defaultValueLiteral="./generated"/>
33
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="fileExtension" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString" defaultValueLiteral=".ts"/>
34
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="headerComment" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
35
+ </eClassifiers>
36
+
37
+ <eClassifiers xsi:type="ecore:EEnum" name="GenerationMode">
38
+ <eLiterals name="emf" value="0" literal="emf"/>
39
+ <eLiterals name="decorator" value="1" literal="decorator"/>
40
+ <eLiterals name="plain" value="2" literal="plain"/>
41
+ </eClassifiers>
42
+
43
+ <!-- ============================================ -->
44
+ <!-- PACKAGE SETTINGS -->
45
+ <!-- ============================================ -->
46
+ <eClassifiers xsi:type="ecore:EClass" name="PackageSettings">
47
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
48
+ <details key="documentation" value="Settings for package structure and generated package artifacts"/>
49
+ </eAnnotations>
50
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="prefix" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
51
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
52
+ <details key="documentation" value="Prefix for generated Package and Factory classes (e.g. 'Library' -> LibraryPackage)"/>
53
+ </eAnnotations>
54
+ </eStructuralFeatures>
55
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="basePackage" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
56
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
57
+ <details key="documentation" value="Base package path (e.g. 'org.example' -> org/example/)"/>
58
+ </eAnnotations>
59
+ </eStructuralFeatures>
60
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="generateFactory" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean" defaultValueLiteral="true"/>
61
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="generatePackage" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean" defaultValueLiteral="true"/>
62
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="generateIndex" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean" defaultValueLiteral="true"/>
63
+ </eClassifiers>
64
+
65
+ <!-- ============================================ -->
66
+ <!-- CLASS DEFAULTS -->
67
+ <!-- ============================================ -->
68
+ <eClassifiers xsi:type="ecore:EClass" name="ClassDefaults">
69
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
70
+ <details key="documentation" value="Default settings applied to all generated classes"/>
71
+ </eAnnotations>
72
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="generateInterface" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean" defaultValueLiteral="true"/>
73
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="generateImpl" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean" defaultValueLiteral="true"/>
74
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="rootExtendsClass" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString" defaultValueLiteral="BasicEObject"/>
75
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="rootExtendsInterface" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString" defaultValueLiteral="EObject"/>
76
+ </eClassifiers>
77
+
78
+ <!-- ============================================ -->
79
+ <!-- FEATURE DEFAULTS -->
80
+ <!-- ============================================ -->
81
+ <eClassifiers xsi:type="ecore:EClass" name="FeatureDefaults">
82
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
83
+ <details key="documentation" value="Default settings applied to all generated features"/>
84
+ </eAnnotations>
85
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="notify" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean" defaultValueLiteral="true"/>
86
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="property" eType="#//PropertyMode" defaultValueLiteral="editable"/>
87
+ </eClassifiers>
88
+
89
+ <eClassifiers xsi:type="ecore:EEnum" name="PropertyMode">
90
+ <eLiterals name="editable" value="0" literal="editable"/>
91
+ <eLiterals name="readonly" value="1" literal="readonly"/>
92
+ <eLiterals name="none" value="2" literal="none"/>
93
+ </eClassifiers>
94
+
95
+ <!-- ============================================ -->
96
+ <!-- CLASS OVERRIDE -->
97
+ <!-- ============================================ -->
98
+ <eClassifiers xsi:type="ecore:EClass" name="ClassOverride">
99
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
100
+ <details key="documentation" value="Override settings for a specific EClass"/>
101
+ </eAnnotations>
102
+ <eStructuralFeatures xsi:type="ecore:EReference" name="ecoreClass" lowerBound="1" eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EClass">
103
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
104
+ <details key="documentation" value="Reference to the EClass (via nsURI#//ClassName)"/>
105
+ </eAnnotations>
106
+ </eStructuralFeatures>
107
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="generateInterface" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBooleanObject"/>
108
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="generateImpl" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBooleanObject"/>
109
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="extendsClass" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
110
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="implementsInterfaces" upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
111
+ <eStructuralFeatures xsi:type="ecore:EReference" name="featureOverrides" upperBound="-1" eType="#//FeatureOverride" containment="true"/>
112
+ </eClassifiers>
113
+
114
+ <!-- ============================================ -->
115
+ <!-- FEATURE OVERRIDE -->
116
+ <!-- ============================================ -->
117
+ <eClassifiers xsi:type="ecore:EClass" name="FeatureOverride">
118
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
119
+ <details key="documentation" value="Override settings for a specific EStructuralFeature"/>
120
+ </eAnnotations>
121
+ <eStructuralFeatures xsi:type="ecore:EReference" name="ecoreFeature" lowerBound="1" eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EStructuralFeature">
122
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
123
+ <details key="documentation" value="Reference to the EStructuralFeature (via nsURI#//ClassName/featureName)"/>
124
+ </eAnnotations>
125
+ </eStructuralFeatures>
126
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="notify" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBooleanObject"/>
127
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="property" eType="#//PropertyMode"/>
128
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="customGetter" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
129
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="customSetter" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
130
+ </eClassifiers>
131
+
132
+ </ecore:EPackage>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emfts/codegen",
3
- "version": "0.0.1-next.2",
3
+ "version": "0.0.1-next.3",
4
4
  "description": "TypeScript code generator for Ecore models using emfts",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -39,7 +39,8 @@
39
39
  "url": "https://github.com/eclipse-fennec/emf.ts.codegen"
40
40
  },
41
41
  "files": [
42
- "dist"
42
+ "dist",
43
+ "model"
43
44
  ],
44
45
  "dependencies": {
45
46
  "commander": "^12.0.0",