ts2famix 1.3.0 → 1.3.1
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.
|
@@ -61,7 +61,7 @@ class Class extends type_1.Type {
|
|
|
61
61
|
addPropertiesToExporter(exporter) {
|
|
62
62
|
super.addPropertiesToExporter(exporter);
|
|
63
63
|
exporter.addProperty("isAbstract", this.getIsAbstract());
|
|
64
|
-
exporter.addProperty("
|
|
64
|
+
exporter.addProperty("attributes", this.getProperties()); // Moose (10) codes them as attributes
|
|
65
65
|
exporter.addProperty("methods", this.getMethods());
|
|
66
66
|
exporter.addProperty("superInheritances", this.getSuperInheritances());
|
|
67
67
|
exporter.addProperty("subInheritances", this.getSubInheritances());
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ts2famix",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "A TypeScript to JSON importer for Moose 10.",
|
|
5
5
|
"main": "dist/ts2famix-cli.js",
|
|
6
6
|
"scripts": {
|
|
@@ -33,17 +33,17 @@
|
|
|
33
33
|
"@typescript-eslint/parser": "^7.0.1",
|
|
34
34
|
"eslint": "^8.56.0",
|
|
35
35
|
"jest": "^29.7.0",
|
|
36
|
-
"tplant": "
|
|
36
|
+
"tplant": "3.1.0",
|
|
37
37
|
"ts-jest": "^29.1.2",
|
|
38
38
|
"ts-node": "^10.9.2",
|
|
39
|
-
"typedoc": "^0.25.8"
|
|
40
|
-
"typescript": "^5.3.3"
|
|
39
|
+
"typedoc": "^0.25.8"
|
|
41
40
|
},
|
|
42
41
|
"dependencies": {
|
|
43
42
|
"grapheme-splitter": "^1.0.4",
|
|
44
43
|
"ts-morph": "^21.0.1",
|
|
45
44
|
"tslog": "^4.9.2",
|
|
46
45
|
"tsutils": "^3.21.0",
|
|
46
|
+
"typescript": "^5.3.3",
|
|
47
47
|
"yargs": "^17.7.2"
|
|
48
48
|
}
|
|
49
49
|
}
|
package/src/generate_uml.sh
CHANGED
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
# Gets latest plantuml
|
|
3
3
|
rm -f plantuml.jar
|
|
4
4
|
wget --no-verbose https://downloads.sourceforge.net/project/plantuml/plantuml.jar
|
|
5
|
+
# echo the version
|
|
6
|
+
echo "PlantUML version: $(java -jar plantuml.jar -version)"
|
|
7
|
+
echo "tplant version: $(npx tplant --version)"
|
|
5
8
|
# Builds metamodel plantuml from TypeScript sources
|
|
6
9
|
npx tplant -i src/lib/famix/**/*.ts -o doc-metamodel/famix-typescript-model.puml
|
|
7
10
|
sed -i 's/@startuml/& metamodel/' doc-metamodel/famix-typescript-model.puml
|
|
@@ -78,7 +78,7 @@ export class Class extends Type {
|
|
|
78
78
|
public addPropertiesToExporter(exporter: FamixJSONExporter): void {
|
|
79
79
|
super.addPropertiesToExporter(exporter);
|
|
80
80
|
exporter.addProperty("isAbstract", this.getIsAbstract());
|
|
81
|
-
exporter.addProperty("
|
|
81
|
+
exporter.addProperty("attributes", this.getProperties()); // Moose (10) codes them as attributes
|
|
82
82
|
exporter.addProperty("methods", this.getMethods());
|
|
83
83
|
exporter.addProperty("superInheritances", this.getSuperInheritances());
|
|
84
84
|
exporter.addProperty("subInheritances", this.getSubInheritances());
|