devextreme-internal-tools 12.0.0-beta.4 → 12.0.0-beta.6
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/bin/DevExtreme.Declarations.Discoverer.dll +0 -0
- package/bin/DevExtreme.Declarations.Discoverer.exe +0 -0
- package/bin/DevExtreme.Declarations.Discoverer.runtimeconfig.json +11 -11
- package/bin/DevExtreme.Declarations.IntegrityValidator.dll +0 -0
- package/bin/DevExtreme.Declarations.IntegrityValidator.exe +0 -0
- package/bin/DevExtreme.Declarations.IntegrityValidator.runtimeconfig.json +11 -11
- package/bin/DevExtreme.Declarations.dll +0 -0
- package/bin/DevExtreme.Descriptions.Injector.dll +0 -0
- package/bin/DevExtreme.Descriptions.Injector.exe +0 -0
- package/bin/DevExtreme.Descriptions.Injector.runtimeconfig.json +11 -11
- package/bin/DevExtreme.Infrastructure.dll +0 -0
- package/bin/DevExtreme.IntegrationDataGenerator.dll +0 -0
- package/bin/DevExtreme.IntegrationDataGenerator.exe +0 -0
- package/bin/DevExtreme.IntegrationDataGenerator.runtimeconfig.json +11 -11
- package/bin/DevExtreme.NgSmdGenerator.dll +0 -0
- package/bin/DevExtreme.NgSmdGenerator.exe +0 -0
- package/bin/DevExtreme.NgSmdGenerator.runtimeconfig.json +11 -11
- package/bin/DevExtreme.SmdCommon.dll +0 -0
- package/bin/DevExtreme.StrongMetaDataGenerator.dll +0 -0
- package/bin/DevExtreme.StrongMetaDataGenerator.exe +0 -0
- package/bin/DevExtreme.StrongMetaDataGenerator.runtimeconfig.json +11 -11
- package/bin/DevExtreme.Topics.ExtraFilesGenerator.dll +0 -0
- package/bin/DevExtreme.Topics.ExtraFilesGenerator.exe +0 -0
- package/bin/DevExtreme.Topics.ExtraFilesGenerator.runtimeconfig.json +11 -11
- package/bin/DevExtreme.Topics.Generator.dll +0 -0
- package/bin/DevExtreme.Topics.Generator.exe +0 -0
- package/bin/DevExtreme.Topics.Generator.runtimeconfig.json +11 -11
- package/bin/DevExtreme.Topics.ModulesGuideValidator.dll +0 -0
- package/bin/DevExtreme.Topics.ModulesGuideValidator.exe +0 -0
- package/bin/DevExtreme.Topics.ModulesGuideValidator.runtimeconfig.json +11 -11
- package/bin/DevExtreme.Topics.Validation.dll +0 -0
- package/bin/DevExtreme.Topics.Validation.exe +0 -0
- package/bin/DevExtreme.Topics.Validation.runtimeconfig.json +11 -11
- package/bin/DevExtreme.Topics.dll +0 -0
- package/bin/DevExtreme.WebSite.ContentMapCreator.dll +0 -0
- package/bin/DevExtreme.WebSite.ContentMapCreator.exe +0 -0
- package/bin/DevExtreme.WebSite.ContentMapCreator.runtimeconfig.json +11 -11
- package/bin/DevExtreme.WebSite.LinksConverter.dll +0 -0
- package/bin/DevExtreme.WebSite.LinksConverter.exe +0 -0
- package/bin/DevExtreme.WebSite.LinksConverter.runtimeconfig.json +11 -11
- package/bin/DevExtreme.WebSite.SyntaxDataGenerator.dll +0 -0
- package/bin/DevExtreme.WebSite.SyntaxDataGenerator.exe +0 -0
- package/bin/DevExtreme.WebSite.SyntaxDataGenerator.runtimeconfig.json +11 -11
- package/bin/Microsoft.Extensions.DependencyInjection.Abstractions.dll +0 -0
- package/bin/Microsoft.Extensions.DependencyInjection.dll +0 -0
- package/bin/NLog.dll +0 -0
- package/bin/Newtonsoft.Json.dll +0 -0
- package/bin/System.IO.Abstractions.dll +0 -0
- package/package.json +6 -13
- package/ts/angular-components-generator/dot-generator.js +13 -13
- package/ts/angular-components-generator/dot-generator.js.map +1 -1
- package/ts/angular-components-generator/facade-generator.js +9 -4
- package/ts/angular-components-generator/facade-generator.js.map +1 -1
- package/ts/angular-components-generator/templates/component.tst +6 -4
- package/ts/components-generation/reexports-generator.d.ts +10 -0
- package/ts/components-generation/reexports-generator.js +18 -0
- package/ts/components-generation/reexports-generator.js.map +1 -0
- package/ts/components-generation/template.d.ts +22 -0
- package/ts/{vue-components-generator → components-generation}/template.js +19 -7
- package/ts/components-generation/template.js.map +1 -0
- package/ts/react-components-generator/component-generator.js +1 -1
- package/ts/react-components-generator/component-generator.js.map +1 -1
- package/ts/react-components-generator/generator.js +8 -3
- package/ts/react-components-generator/generator.js.map +1 -1
- package/ts/react-components-generator/import-overrides.json +0 -1
- package/ts/react-components-generator/index-generator.d.ts +1 -5
- package/ts/react-components-generator/index-generator.js +16 -4
- package/ts/react-components-generator/index-generator.js.map +1 -1
- package/ts/vue-components-generator/component-generator.js +3 -3
- package/ts/vue-components-generator/component-generator.js.map +1 -1
- package/ts/vue-components-generator/generator.js +9 -5
- package/ts/vue-components-generator/generator.js.map +1 -1
- package/bin/DevExtreme.Declarations.Discoverer +0 -0
- package/bin/DevExtreme.Declarations.IntegrityValidator +0 -0
- package/bin/DevExtreme.Descriptions.Injector +0 -0
- package/bin/DevExtreme.IntegrationDataGenerator +0 -0
- package/bin/DevExtreme.NgSmdGenerator +0 -0
- package/bin/DevExtreme.StrongMetaDataGenerator +0 -0
- package/bin/DevExtreme.Topics.ExtraFilesGenerator +0 -0
- package/bin/DevExtreme.Topics.Generator +0 -0
- package/bin/DevExtreme.Topics.ModulesGuideValidator +0 -0
- package/bin/DevExtreme.Topics.Validation +0 -0
- package/bin/DevExtreme.WebSite.ContentMapCreator +0 -0
- package/bin/DevExtreme.WebSite.LinksConverter +0 -0
- package/bin/DevExtreme.WebSite.SyntaxDataGenerator +0 -0
- package/ts/react-components-generator/common-reexports-generator.d.ts +0 -2
- package/ts/react-components-generator/common-reexports-generator.js +0 -10
- package/ts/react-components-generator/common-reexports-generator.js.map +0 -1
- package/ts/react-components-generator/template.d.ts +0 -10
- package/ts/react-components-generator/template.js +0 -43
- package/ts/react-components-generator/template.js.map +0 -1
- package/ts/vue-components-generator/common-reexports-generator.d.ts +0 -2
- package/ts/vue-components-generator/common-reexports-generator.js +0 -10
- package/ts/vue-components-generator/common-reexports-generator.js.map +0 -1
- package/ts/vue-components-generator/index-generator.d.ts +0 -7
- package/ts/vue-components-generator/index-generator.js +0 -9
- package/ts/vue-components-generator/index-generator.js.map +0 -1
- package/ts/vue-components-generator/template.d.ts +0 -11
- package/ts/vue-components-generator/template.js.map +0 -1
Binary file
|
Binary file
|
@@ -1,12 +1,12 @@
|
|
1
|
-
{
|
2
|
-
"runtimeOptions": {
|
3
|
-
"tfm": "net6.0",
|
4
|
-
"framework": {
|
5
|
-
"name": "Microsoft.NETCore.App",
|
6
|
-
"version": "6.0.0"
|
7
|
-
},
|
8
|
-
"configProperties": {
|
9
|
-
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false
|
10
|
-
}
|
11
|
-
}
|
1
|
+
{
|
2
|
+
"runtimeOptions": {
|
3
|
+
"tfm": "net6.0",
|
4
|
+
"framework": {
|
5
|
+
"name": "Microsoft.NETCore.App",
|
6
|
+
"version": "6.0.0"
|
7
|
+
},
|
8
|
+
"configProperties": {
|
9
|
+
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false
|
10
|
+
}
|
11
|
+
}
|
12
12
|
}
|
Binary file
|
Binary file
|
@@ -1,12 +1,12 @@
|
|
1
|
-
{
|
2
|
-
"runtimeOptions": {
|
3
|
-
"tfm": "net6.0",
|
4
|
-
"framework": {
|
5
|
-
"name": "Microsoft.NETCore.App",
|
6
|
-
"version": "6.0.0"
|
7
|
-
},
|
8
|
-
"configProperties": {
|
9
|
-
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false
|
10
|
-
}
|
11
|
-
}
|
1
|
+
{
|
2
|
+
"runtimeOptions": {
|
3
|
+
"tfm": "net6.0",
|
4
|
+
"framework": {
|
5
|
+
"name": "Microsoft.NETCore.App",
|
6
|
+
"version": "6.0.0"
|
7
|
+
},
|
8
|
+
"configProperties": {
|
9
|
+
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false
|
10
|
+
}
|
11
|
+
}
|
12
12
|
}
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,12 +1,12 @@
|
|
1
|
-
{
|
2
|
-
"runtimeOptions": {
|
3
|
-
"tfm": "net6.0",
|
4
|
-
"framework": {
|
5
|
-
"name": "Microsoft.NETCore.App",
|
6
|
-
"version": "6.0.0"
|
7
|
-
},
|
8
|
-
"configProperties": {
|
9
|
-
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false
|
10
|
-
}
|
11
|
-
}
|
1
|
+
{
|
2
|
+
"runtimeOptions": {
|
3
|
+
"tfm": "net6.0",
|
4
|
+
"framework": {
|
5
|
+
"name": "Microsoft.NETCore.App",
|
6
|
+
"version": "6.0.0"
|
7
|
+
},
|
8
|
+
"configProperties": {
|
9
|
+
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false
|
10
|
+
}
|
11
|
+
}
|
12
12
|
}
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,12 +1,12 @@
|
|
1
|
-
{
|
2
|
-
"runtimeOptions": {
|
3
|
-
"tfm": "net6.0",
|
4
|
-
"framework": {
|
5
|
-
"name": "Microsoft.NETCore.App",
|
6
|
-
"version": "6.0.0"
|
7
|
-
},
|
8
|
-
"configProperties": {
|
9
|
-
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false
|
10
|
-
}
|
11
|
-
}
|
1
|
+
{
|
2
|
+
"runtimeOptions": {
|
3
|
+
"tfm": "net6.0",
|
4
|
+
"framework": {
|
5
|
+
"name": "Microsoft.NETCore.App",
|
6
|
+
"version": "6.0.0"
|
7
|
+
},
|
8
|
+
"configProperties": {
|
9
|
+
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false
|
10
|
+
}
|
11
|
+
}
|
12
12
|
}
|
Binary file
|
Binary file
|
@@ -1,12 +1,12 @@
|
|
1
|
-
{
|
2
|
-
"runtimeOptions": {
|
3
|
-
"tfm": "net6.0",
|
4
|
-
"framework": {
|
5
|
-
"name": "Microsoft.NETCore.App",
|
6
|
-
"version": "6.0.0"
|
7
|
-
},
|
8
|
-
"configProperties": {
|
9
|
-
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false
|
10
|
-
}
|
11
|
-
}
|
1
|
+
{
|
2
|
+
"runtimeOptions": {
|
3
|
+
"tfm": "net6.0",
|
4
|
+
"framework": {
|
5
|
+
"name": "Microsoft.NETCore.App",
|
6
|
+
"version": "6.0.0"
|
7
|
+
},
|
8
|
+
"configProperties": {
|
9
|
+
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false
|
10
|
+
}
|
11
|
+
}
|
12
12
|
}
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,12 +1,12 @@
|
|
1
|
-
{
|
2
|
-
"runtimeOptions": {
|
3
|
-
"tfm": "net6.0",
|
4
|
-
"framework": {
|
5
|
-
"name": "Microsoft.NETCore.App",
|
6
|
-
"version": "6.0.0"
|
7
|
-
},
|
8
|
-
"configProperties": {
|
9
|
-
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false
|
10
|
-
}
|
11
|
-
}
|
1
|
+
{
|
2
|
+
"runtimeOptions": {
|
3
|
+
"tfm": "net6.0",
|
4
|
+
"framework": {
|
5
|
+
"name": "Microsoft.NETCore.App",
|
6
|
+
"version": "6.0.0"
|
7
|
+
},
|
8
|
+
"configProperties": {
|
9
|
+
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false
|
10
|
+
}
|
11
|
+
}
|
12
12
|
}
|
Binary file
|
Binary file
|
@@ -1,12 +1,12 @@
|
|
1
|
-
{
|
2
|
-
"runtimeOptions": {
|
3
|
-
"tfm": "net6.0",
|
4
|
-
"framework": {
|
5
|
-
"name": "Microsoft.NETCore.App",
|
6
|
-
"version": "6.0.0"
|
7
|
-
},
|
8
|
-
"configProperties": {
|
9
|
-
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false
|
10
|
-
}
|
11
|
-
}
|
1
|
+
{
|
2
|
+
"runtimeOptions": {
|
3
|
+
"tfm": "net6.0",
|
4
|
+
"framework": {
|
5
|
+
"name": "Microsoft.NETCore.App",
|
6
|
+
"version": "6.0.0"
|
7
|
+
},
|
8
|
+
"configProperties": {
|
9
|
+
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false
|
10
|
+
}
|
11
|
+
}
|
12
12
|
}
|
Binary file
|
Binary file
|
@@ -1,12 +1,12 @@
|
|
1
|
-
{
|
2
|
-
"runtimeOptions": {
|
3
|
-
"tfm": "net6.0",
|
4
|
-
"framework": {
|
5
|
-
"name": "Microsoft.NETCore.App",
|
6
|
-
"version": "6.0.0"
|
7
|
-
},
|
8
|
-
"configProperties": {
|
9
|
-
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false
|
10
|
-
}
|
11
|
-
}
|
1
|
+
{
|
2
|
+
"runtimeOptions": {
|
3
|
+
"tfm": "net6.0",
|
4
|
+
"framework": {
|
5
|
+
"name": "Microsoft.NETCore.App",
|
6
|
+
"version": "6.0.0"
|
7
|
+
},
|
8
|
+
"configProperties": {
|
9
|
+
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false
|
10
|
+
}
|
11
|
+
}
|
12
12
|
}
|
Binary file
|
Binary file
|
@@ -1,12 +1,12 @@
|
|
1
|
-
{
|
2
|
-
"runtimeOptions": {
|
3
|
-
"tfm": "net6.0",
|
4
|
-
"framework": {
|
5
|
-
"name": "Microsoft.NETCore.App",
|
6
|
-
"version": "6.0.0"
|
7
|
-
},
|
8
|
-
"configProperties": {
|
9
|
-
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false
|
10
|
-
}
|
11
|
-
}
|
1
|
+
{
|
2
|
+
"runtimeOptions": {
|
3
|
+
"tfm": "net6.0",
|
4
|
+
"framework": {
|
5
|
+
"name": "Microsoft.NETCore.App",
|
6
|
+
"version": "6.0.0"
|
7
|
+
},
|
8
|
+
"configProperties": {
|
9
|
+
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false
|
10
|
+
}
|
11
|
+
}
|
12
12
|
}
|
Binary file
|
Binary file
|
@@ -1,12 +1,12 @@
|
|
1
|
-
{
|
2
|
-
"runtimeOptions": {
|
3
|
-
"tfm": "net6.0",
|
4
|
-
"framework": {
|
5
|
-
"name": "Microsoft.NETCore.App",
|
6
|
-
"version": "6.0.0"
|
7
|
-
},
|
8
|
-
"configProperties": {
|
9
|
-
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false
|
10
|
-
}
|
11
|
-
}
|
1
|
+
{
|
2
|
+
"runtimeOptions": {
|
3
|
+
"tfm": "net6.0",
|
4
|
+
"framework": {
|
5
|
+
"name": "Microsoft.NETCore.App",
|
6
|
+
"version": "6.0.0"
|
7
|
+
},
|
8
|
+
"configProperties": {
|
9
|
+
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false
|
10
|
+
}
|
11
|
+
}
|
12
12
|
}
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,12 +1,12 @@
|
|
1
|
-
{
|
2
|
-
"runtimeOptions": {
|
3
|
-
"tfm": "net6.0",
|
4
|
-
"framework": {
|
5
|
-
"name": "Microsoft.NETCore.App",
|
6
|
-
"version": "6.0.0"
|
7
|
-
},
|
8
|
-
"configProperties": {
|
9
|
-
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false
|
10
|
-
}
|
11
|
-
}
|
1
|
+
{
|
2
|
+
"runtimeOptions": {
|
3
|
+
"tfm": "net6.0",
|
4
|
+
"framework": {
|
5
|
+
"name": "Microsoft.NETCore.App",
|
6
|
+
"version": "6.0.0"
|
7
|
+
},
|
8
|
+
"configProperties": {
|
9
|
+
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false
|
10
|
+
}
|
11
|
+
}
|
12
12
|
}
|
Binary file
|
Binary file
|
@@ -1,12 +1,12 @@
|
|
1
|
-
{
|
2
|
-
"runtimeOptions": {
|
3
|
-
"tfm": "net6.0",
|
4
|
-
"framework": {
|
5
|
-
"name": "Microsoft.NETCore.App",
|
6
|
-
"version": "6.0.0"
|
7
|
-
},
|
8
|
-
"configProperties": {
|
9
|
-
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false
|
10
|
-
}
|
11
|
-
}
|
1
|
+
{
|
2
|
+
"runtimeOptions": {
|
3
|
+
"tfm": "net6.0",
|
4
|
+
"framework": {
|
5
|
+
"name": "Microsoft.NETCore.App",
|
6
|
+
"version": "6.0.0"
|
7
|
+
},
|
8
|
+
"configProperties": {
|
9
|
+
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false
|
10
|
+
}
|
11
|
+
}
|
12
12
|
}
|
Binary file
|
Binary file
|
@@ -1,12 +1,12 @@
|
|
1
|
-
{
|
2
|
-
"runtimeOptions": {
|
3
|
-
"tfm": "net6.0",
|
4
|
-
"framework": {
|
5
|
-
"name": "Microsoft.NETCore.App",
|
6
|
-
"version": "6.0.0"
|
7
|
-
},
|
8
|
-
"configProperties": {
|
9
|
-
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false
|
10
|
-
}
|
11
|
-
}
|
1
|
+
{
|
2
|
+
"runtimeOptions": {
|
3
|
+
"tfm": "net6.0",
|
4
|
+
"framework": {
|
5
|
+
"name": "Microsoft.NETCore.App",
|
6
|
+
"version": "6.0.0"
|
7
|
+
},
|
8
|
+
"configProperties": {
|
9
|
+
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false
|
10
|
+
}
|
11
|
+
}
|
12
12
|
}
|
Binary file
|
Binary file
|
package/bin/NLog.dll
CHANGED
Binary file
|
package/bin/Newtonsoft.Json.dll
CHANGED
Binary file
|
Binary file
|
package/package.json
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
"name": "devextreme-internal-tools",
|
3
3
|
"description": "DevExtreme internal tools",
|
4
4
|
"author": "Developer Express Inc.",
|
5
|
-
"version": "12.0.0-beta.
|
5
|
+
"version": "12.0.0-beta.6",
|
6
6
|
"license": "MIT",
|
7
7
|
"main": "./index.js",
|
8
8
|
"bin": {
|
@@ -36,30 +36,23 @@
|
|
36
36
|
"deepmerge": "4.3.1",
|
37
37
|
"dot": "1.1.3",
|
38
38
|
"inflector-js": "1.0.1",
|
39
|
-
"logform": "2.4.2",
|
40
39
|
"mkdirp": "3.0.1",
|
41
40
|
"prettier": "2.3.2",
|
42
41
|
"shelljs": "^0.8.3",
|
43
42
|
"typescript": "5.1.6",
|
44
|
-
"winston": "~3.
|
43
|
+
"winston": "~3.10.0",
|
45
44
|
"yargs": "17.7.2"
|
46
45
|
},
|
47
46
|
"devDependencies": {
|
48
|
-
"@types/jest": "29.5.
|
49
|
-
"@types/node": "
|
50
|
-
"@types/shelljs": "0.8.
|
51
|
-
"@typescript-eslint/eslint-plugin": "5.62.0",
|
52
|
-
"@typescript-eslint/parser": "5.62.0",
|
47
|
+
"@types/jest": "29.5.5",
|
48
|
+
"@types/node": "18.18.3",
|
49
|
+
"@types/shelljs": "0.8.13",
|
53
50
|
"eslint": "7.32.0",
|
54
|
-
"eslint-config-airbnb-typescript": "12.3.1",
|
55
51
|
"eslint-config-devextreme": "0.1.41",
|
56
|
-
"eslint-plugin-import": "2.28.1",
|
57
|
-
"eslint-plugin-jsx-a11y": "6.7.1",
|
58
52
|
"eslint-plugin-node": "11.1.0",
|
59
|
-
"eslint-plugin-react": "7.33.2",
|
60
53
|
"fs": "0.0.1-security",
|
61
54
|
"jest": "29.7.0",
|
62
|
-
"nodemon": "
|
55
|
+
"nodemon": "3.0.1",
|
63
56
|
"path": "0.12.7",
|
64
57
|
"ts-jest": "29.1.1"
|
65
58
|
}
|
@@ -1,4 +1,15 @@
|
|
1
1
|
"use strict";
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
3
|
+
__assign = Object.assign || function(t) {
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
5
|
+
s = arguments[i];
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
7
|
+
t[p] = s[p];
|
8
|
+
}
|
9
|
+
return t;
|
10
|
+
};
|
11
|
+
return __assign.apply(this, arguments);
|
12
|
+
};
|
2
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
14
|
exports.DotGenerator = exports.createTemplateFromString = void 0;
|
4
15
|
var fs = require("fs");
|
@@ -6,19 +17,8 @@ var path = require("path");
|
|
6
17
|
var mkdirp = require("mkdirp");
|
7
18
|
var doT = require("dot");
|
8
19
|
var logger_1 = require("./logger");
|
9
|
-
|
10
|
-
|
11
|
-
interpolate: /\<#=([\s\S]+?)#\>/g,
|
12
|
-
encode: /\<#!([\s\S]+?)#\>/g,
|
13
|
-
use: /\<##([\s\S]+?)#\>/g,
|
14
|
-
define: /\<###\s*([\w\.$]+)\s*(\:|=)([\s\S]+?)##\>/g,
|
15
|
-
conditional: /\<#\?(\?)?\s*([\s\S]*?)\s*#\>/g,
|
16
|
-
iterate: /\<#~\s*(?:#\>|([\s\S]+?)\s*\:\s*([\w$]+)\s*(?:\:\s*([\w$]+))?\s*#\>)/g,
|
17
|
-
varname: 'it',
|
18
|
-
strip: false,
|
19
|
-
append: true,
|
20
|
-
selfcontained: false,
|
21
|
-
};
|
20
|
+
var template_1 = require("../components-generation/template");
|
21
|
+
doT.templateSettings = __assign({ append: true, selfcontained: false }, template_1.commonTemplateSettings);
|
22
22
|
function createTemplateFromString(templateString) {
|
23
23
|
return doT.template(templateString);
|
24
24
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"dot-generator.js","sourceRoot":"","sources":["../../../ts/angular-components-generator/dot-generator.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"dot-generator.js","sourceRoot":"","sources":["../../../ts/angular-components-generator/dot-generator.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAEA,uBAAyB;AACzB,2BAA6B;AAC7B,+BAAiC;AACjC,yBAA2B;AAC3B,mCAA8B;AAE9B,8DAA2E;AAE3E,GAAG,CAAC,gBAAgB,cAClB,MAAM,EAAE,IAAI,EACZ,aAAa,EAAE,KAAK,IACjB,iCAAsB,CAC1B,CAAC;AAEF,SAAgB,wBAAwB,CAAC,cAAsB;IAC7D,OAAO,GAAG,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC;AACtC,CAAC;AAFD,4DAEC;AAED;IAAA;QACU,cAAS,GAAmB,MAAM,CAAC;IAgF7C,CAAC;IA9EC,qCAAc,GAAd,UAAe,gBAAwB;QACrC,IAAA,gBAAM,EAAC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AC,gBAAgB,CAAC,gBAAgB,EAAE,UAAU,CAAC,CAAC;aACrD;iBAAM;gBACL,cAAc,GAAG,IAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE,UAAG,UAAU,QAAK,CAAC,CAAC;aAClE;YAED,IAAA,gBAAM,EAAC,0BAAmB,cAAc,CAAE,CAAC,CAAC;YAC5C,EAAE,CAAC,aAAa,CAAC,cAAc,EAAE,MAAM,EAAE,EAAE,QAAQ,EAAE,KAAI,CAAC,SAAS,EAAE,CAAC,CAAC;QACzE,CAAC,CAAC,CAAC;QAEL,IAAI,CAAC,qBAAqB,EAAE;YAC1B,EAAE,CAAC,aAAa,CACd,UAAG,gBAAgB,cAAW,EAC9B,UAAG,KAAK,CAAC,GAAG,CAAC,UAAC,IAAI,IAAK,OAAA,2BAAoB,IAAI,SAAM,EAA9B,CAA8B,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,OAAI,EACnE,EAAE,QAAQ,EAAE,IAAI,CAAC,SAAS,EAAE,CAC7B,CAAC;SACH;IACH,CAAC;IAEO,uCAAgB,GAAxB,UAAyB,gBAAwB,EAAE,UAAkB;QACnE,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE,UAAG,UAAU,kBAAe,CAAC,EACxE,IAAI,CAAC,SAAS,CAAC;YACb,SAAS,EAAE;gBACT,GAAG,EAAE;oBACH,SAAS,EAAE,UAAU;iBACtB;aACF;SACF,EAAE,IAAI,EAAE,IAAI,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC;IAClD,CAAC;IACH,mBAAC;AAAD,CAAC,AAjFD,IAiFC;AAjFY,oCAAY"}
|
@@ -5,6 +5,7 @@ var fs = require("fs");
|
|
5
5
|
var path = require("path");
|
6
6
|
var inflector = require("inflector-js");
|
7
7
|
var logger_1 = require("./logger");
|
8
|
+
var reexports_generator_1 = require("../components-generation/reexports-generator");
|
8
9
|
var FacadeGenerator = (function () {
|
9
10
|
function FacadeGenerator() {
|
10
11
|
this.encoding = 'utf8';
|
@@ -20,15 +21,19 @@ var FacadeGenerator = (function () {
|
|
20
21
|
config.commonImports.forEach(function (i) {
|
21
22
|
resultContent += "import '".concat(i, "';\n");
|
22
23
|
});
|
23
|
-
fs.readdirSync(facadeConfig.sourceDirectories[0])
|
24
|
+
var reexports = fs.readdirSync(facadeConfig.sourceDirectories[0])
|
24
25
|
.filter(function (fileName) { return fs
|
25
26
|
.lstatSync(path.join(facadeConfig.sourceDirectories[0], fileName))
|
26
|
-
.isFile(); })
|
27
|
+
.isFile(); })
|
28
|
+
.map(function (fileName) {
|
27
29
|
var name = path.parse(path.join(facadeConfig.sourceDirectories[0], fileName)).name;
|
28
30
|
var formattedName = formatName(name);
|
29
|
-
|
30
|
-
|
31
|
+
return {
|
32
|
+
names: ["Dx".concat(formattedName, "Component"), "Dx".concat(formattedName, "Module")],
|
33
|
+
path: "devextreme-angular/ui/".concat(name),
|
34
|
+
};
|
31
35
|
});
|
36
|
+
resultContent += (0, reexports_generator_1.default)(reexports, { quotes: 'single' });
|
32
37
|
(0, logger_1.default)("Write result to ".concat(facadeFilePath));
|
33
38
|
fs.writeFileSync(facadeFilePath, resultContent, { encoding: _this.encoding });
|
34
39
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"facade-generator.js","sourceRoot":"","sources":["../../../ts/angular-components-generator/facade-generator.ts"],"names":[],"mappings":";;;AAAA,uBAAyB;AACzB,2BAA6B;AAC7B,wCAA0C;AAC1C,mCAA8B;AAE9B;IAAA;QACU,aAAQ,GAAmB,MAAM,CAAC;
|
1
|
+
{"version":3,"file":"facade-generator.js","sourceRoot":"","sources":["../../../ts/angular-components-generator/facade-generator.ts"],"names":[],"mappings":";;;AAAA,uBAAyB;AACzB,2BAA6B;AAC7B,wCAA0C;AAC1C,mCAA8B;AAE9B,oFAA6E;AAE7E;IAAA;QACU,aAAQ,GAAmB,MAAM,CAAC;IAmC5C,CAAC;I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MAAM,EAAE,QAAQ,EAAE,CAAC,CAAC;YAEpE,IAAA,gBAAM,EAAC,0BAAmB,cAAc,CAAE,CAAC,CAAC;YAC5C,EAAE,CAAC,aAAa,CAAC,cAAc,EAAE,aAAa,EAAE,EAAE,QAAQ,EAAE,KAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC/E,CAAC,CAAC,CAAC;IACL,CAAC;IACH,sBAAC;AAAD,CAAC,AApCD,IAoCC;AApCY,0CAAe;AAsC5B,SAAS,UAAU,CAAC,IAAY;IAC9B,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;QACvB,OAAO,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;KACjC;IACD,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,UAAC,CAAC,IAAK,OAAA,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,EAArB,CAAqB,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACpE,CAAC"}
|
@@ -3,7 +3,9 @@
|
|
3
3
|
var collectionProperties = it.properties.filter(item => item.isCollection).map(item => item.name);
|
4
4
|
var collectionNestedComponents = it.nestedComponents.filter(item => item.isCollection && item.root);
|
5
5
|
var baseClass = it.isExtension ? 'DxComponentExtension' : 'DxComponent';
|
6
|
-
var
|
6
|
+
var optionsHaveTypeParams = it.optionsTypeParams && it.optionsTypeParams.length;
|
7
|
+
var componentTypeParams = optionsHaveTypeParams ? '<' + it.optionsTypeParams.map(item => item + ' = any').join(', ') + '>' : '';
|
8
|
+
var instanceTypeParams = optionsHaveTypeParams ? '<' + it.optionsTypeParams.join(', ') + '>' : '';
|
7
9
|
|
8
10
|
var implementedInterfaces = ['OnDestroy'];
|
9
11
|
|
@@ -37,7 +39,7 @@ import {
|
|
37
39
|
QueryList<#?#>
|
38
40
|
} from '@angular/core';
|
39
41
|
|
40
|
-
<#?
|
42
|
+
<#? optionsHaveTypeParams #>export { ExplicitTypes } from '<#= it.module #>';
|
41
43
|
<#?#>
|
42
44
|
<#? it.imports #><#~ it.imports :file #>import <#= file.importString #> from '<#= file.path #>';
|
43
45
|
<#~#><#?#>
|
@@ -88,8 +90,8 @@ const CUSTOM_VALUE_ACCESSOR_PROVIDER = {
|
|
88
90
|
IterableDifferHelper<#?#>
|
89
91
|
]
|
90
92
|
})
|
91
|
-
export class <#= it.className #>Component extends <#= baseClass #> <#? implementedInterfaces.length #>implements <#= implementedInterfaces.join(', ') #> <#?#>{
|
92
|
-
instance: <#= it.className #>;
|
93
|
+
export class <#= it.className #>Component<#= componentTypeParams #> extends <#= baseClass #> <#? implementedInterfaces.length #>implements <#= implementedInterfaces.join(', ') #> <#?#>{
|
94
|
+
instance: <#= it.className #><#= instanceTypeParams #>;
|
93
95
|
<#~ it.properties :prop:i #>
|
94
96
|
/**
|
95
97
|
* [descr:<#= prop.docID #>]
|
@@ -0,0 +1,18 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var template_1 = require("./template");
|
4
|
+
var render = (0, template_1.createTemplate)("<#~ it.reexports :reExport #>export {"
|
5
|
+
+ "<#? it.multiline #>"
|
6
|
+
+ "<#~ reExport.names: name #>".concat(template_1.L2, "<#= name #>") + ","
|
7
|
+
+ "<#~#>"
|
8
|
+
+ "\n"
|
9
|
+
+ '<#??#>'
|
10
|
+
+ ' ' + "<#= reExport.names.join(', ') #>" + ' '
|
11
|
+
+ '<#?#>'
|
12
|
+
+ "} from <#= it.quotesChar #><#= reExport.path #><#= it.quotesChar #>;\n<#~#>\n".trim());
|
13
|
+
function generate(reexports, _a) {
|
14
|
+
var _b = _a === void 0 ? {} : _a, _c = _b.multiline, multiline = _c === void 0 ? false : _c, _d = _b.quotes, quotes = _d === void 0 ? 'double' : _d;
|
15
|
+
return render({ reexports: reexports, multiline: multiline, quotesChar: quotes === 'single' ? "'" : "\"" });
|
16
|
+
}
|
17
|
+
exports.default = generate;
|
18
|
+
//# sourceMappingURL=reexports-generator.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"reexports-generator.js","sourceRoot":"","sources":["../../../ts/components-generation/reexports-generator.ts"],"names":[],"mappings":";;AAAA,uCAAgD;AAYhD,IAAM,MAAM,GAIG,IAAA,yBAAc,EAC7B,uCAAuC;MAErC,qBAAqB;MACnB,qCAA8B,aAAE,gBAAa,GAAG,GAAG;MACnD,OAAO;MACP,IAAI;MACN,QAAQ;MACN,GAAG,GAAG,kCAAkC,GAAG,GAAG;MAChD,OAAO;MAEP,+EAED,CAAC,IAAI,EAAE,CAAC,CAAC;AAOV,SAAS,QAAQ,CACf,SAAsB,EACtB,EAAoG;QAApG,qBAAkG,EAAE,KAAA,EAAlG,iBAAiB,EAAjB,SAAS,mBAAG,KAAK,KAAA,EAAE,cAAiB,EAAjB,MAAM,mBAAG,QAAQ,KAAA;IAGtC,OAAO,MAAM,CAAC,EAAE,SAAS,WAAA,EAAE,SAAS,WAAA,EAAE,UAAU,EAAE,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAG,EAAE,CAAC,CAAC;AACvF,CAAC;AAED,kBAAe,QAAQ,CAAC"}
|