-
Notifications
You must be signed in to change notification settings - Fork 609
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor angular wrappers popupService files generation (#28761)
Co-authored-by: alexlavrov <[email protected]>
- Loading branch information
1 parent
30b618c
commit 74b9d4c
Showing
4 changed files
with
396 additions
and
421 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,82 +1,81 @@ | ||
module.exports = { | ||
tools: { | ||
metadataGenerator: { | ||
sourceMetadataFilePath: './metadata/NGMetaData.json', | ||
imdMetadataFilePath: './metadata/integration-data.json', | ||
outputFolderPath: './metadata/generated', | ||
nestedPathPart: 'nested', | ||
basePathPart: 'base', | ||
widgetPackageName: "devextreme", | ||
wrapperPackageName: 'devextreme-angular', | ||
generateReexports: true, | ||
}, | ||
componentGenerator: { | ||
metadataFolderPath: './metadata/generated/', | ||
outputFolderPath: './src/ui/', | ||
nestedPathPart: 'nested', | ||
basePathPart: 'base' | ||
}, | ||
facadeGenerator: { | ||
facades: { | ||
'./src/index.ts': { | ||
sourceDirectories: [ | ||
'./metadata/generated' | ||
] | ||
} | ||
}, | ||
commonImports: [ | ||
'./common', | ||
'./common/grids', | ||
'./common/charts', | ||
] | ||
}, | ||
moduleFacadeGenerator: { | ||
moduleFacades: { | ||
'./src/ui/all.ts': { | ||
sourceComponentDirectories: [ | ||
'./src/ui' | ||
], | ||
additionalImports: { | ||
'DxTemplateModule': 'import { DxTemplateModule } from \'devextreme-angular/core\'' | ||
} | ||
} | ||
} | ||
}, | ||
componentNamesGenerator: { | ||
componentFilesPath: './src/ui/', | ||
excludedFileNames: [ | ||
'nested', | ||
'validation-group', | ||
'validation-summary', | ||
'validator', | ||
'button-group', | ||
'drop-down-button', | ||
'file-manager' ], | ||
outputFileName: 'tests/src/server/component-names.ts' | ||
}, | ||
commonReexportsGenerator: { | ||
imdMetadataFilePath: './metadata/integration-data.json', | ||
outputPath: './src/' | ||
tools: { | ||
metadataGenerator: { | ||
sourceMetadataFilePath: './metadata/NGMetaData.json', | ||
imdMetadataFilePath: './metadata/integration-data.json', | ||
outputFolderPath: './metadata/generated', | ||
nestedPathPart: 'nested', | ||
basePathPart: 'base', | ||
widgetPackageName: 'devextreme', | ||
wrapperPackageName: 'devextreme-angular', | ||
generateReexports: true, | ||
}, | ||
componentGenerator: { | ||
metadataFolderPath: './metadata/generated/', | ||
outputFolderPath: './src/ui/', | ||
entryFileNames: { | ||
popup: 'component.ts', | ||
}, | ||
nestedPathPart: 'nested', | ||
basePathPart: 'base', | ||
}, | ||
facadeGenerator: { | ||
facades: { | ||
'./src/index.ts': { | ||
sourceDirectories: [ | ||
'./metadata/generated', | ||
], | ||
}, | ||
}, | ||
commonImports: [ | ||
'./common', | ||
'./common/grids', | ||
'./common/charts', | ||
], | ||
}, | ||
afterGenerate: { | ||
preserveComponentFiles: ['popup/service', 'popup/index.ts'], | ||
renameGeneratedFiles: [{ path: 'popup/index.ts', newName: 'component.ts' }], | ||
temporaryFolderForPreserved: './tmp-preserved/' | ||
moduleFacadeGenerator: { | ||
moduleFacades: { | ||
'./src/ui/all.ts': { | ||
sourceComponentDirectories: [ | ||
'./src/ui', | ||
], | ||
additionalImports: { | ||
DxTemplateModule: 'import { DxTemplateModule } from \'devextreme-angular/core\'', | ||
}, | ||
}, | ||
}, | ||
}, | ||
components: { | ||
srcFilesPattern: '**/*.ts', | ||
tsTestSrc: ['tests/src/**/*.spec.ts', 'tests/src/**/component-names.ts'], | ||
testsPath: 'tests/dist', | ||
sourcesGlobs: ['src/**/*.*', './package.json', './ng-package.json'], | ||
tsSourcesGlob: 'src/**/*.ts', | ||
outputPath: 'dist' | ||
componentNamesGenerator: { | ||
componentFilesPath: './src/ui/', | ||
excludedFileNames: [ | ||
'nested', | ||
'validation-group', | ||
'validation-summary', | ||
'validator', | ||
'button-group', | ||
'drop-down-button', | ||
'file-manager'], | ||
outputFileName: 'tests/src/server/component-names.ts', | ||
}, | ||
tests: { | ||
tsConfigPath: "tsconfig.tests.json" | ||
commonReexportsGenerator: { | ||
imdMetadataFilePath: './metadata/integration-data.json', | ||
outputPath: './src/', | ||
}, | ||
npm: { | ||
distPath: "npm/dist", | ||
content: [ "./LICENSE", "./README.md" ] | ||
} | ||
}, | ||
components: { | ||
srcFilesPattern: '**/*.ts', | ||
tsTestSrc: ['tests/src/**/*.spec.ts', 'tests/src/**/component-names.ts'], | ||
testsPath: 'tests/dist', | ||
sourcesGlobs: ['src/**/*.*', './package.json', './ng-package.json'], | ||
skipFromCleaningFiles: ['popup/service/**', 'popup/index.ts'], | ||
tsSourcesGlob: 'src/**/*.ts', | ||
outputPath: 'dist', | ||
}, | ||
tests: { | ||
tsConfigPath: 'tsconfig.tests.json', | ||
}, | ||
npm: { | ||
distPath: 'npm/dist', | ||
content: ['./LICENSE', './README.md'], | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.