@rxap/schematics-ts-morph 16.0.0-dev.1 → 16.0.0-dev.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.
- package/CHANGELOG.md +95 -267
- package/README.md +7 -6
- package/package.json +32 -28
- package/src/index.d.ts +4 -55
- package/src/index.js +4 -57
- package/src/index.js.map +1 -1
- package/src/lib/add-class-method.js.map +1 -1
- package/src/lib/add-component-animations.js +3 -2
- package/src/lib/add-component-animations.js.map +1 -1
- package/src/lib/add-component-fake-provider.d.ts +1 -1
- package/src/lib/add-component-fake-provider.js.map +1 -1
- package/src/lib/add-component-input.js +7 -4
- package/src/lib/add-component-input.js.map +1 -1
- package/src/lib/add-component-provider.d.ts +1 -1
- package/src/lib/add-component-provider.js +2 -1
- package/src/lib/add-component-provider.js.map +1 -1
- package/src/lib/add-control-validator.js +1 -1
- package/src/lib/add-control-validator.js.map +1 -1
- package/src/lib/add-dependency-injection.js +5 -4
- package/src/lib/add-dependency-injection.js.map +1 -1
- package/src/lib/add-dir.js.map +1 -1
- package/src/lib/add-fake-provider.js +6 -5
- package/src/lib/add-fake-provider.js.map +1 -1
- package/src/lib/add-method-class.js +16 -10
- package/src/lib/add-method-class.js.map +1 -1
- package/src/lib/add-ng-module-import.js +3 -2
- package/src/lib/add-ng-module-import.js.map +1 -1
- package/src/lib/add-ng-module-provider.d.ts +1 -1
- package/src/lib/add-ng-module-provider.js +2 -1
- package/src/lib/add-ng-module-provider.js.map +1 -1
- package/src/lib/add-operation-to-controller.d.ts +33 -0
- package/src/lib/add-operation-to-controller.js +209 -0
- package/src/lib/add-operation-to-controller.js.map +1 -0
- package/src/lib/add-provider-to-array.js +6 -2
- package/src/lib/add-provider-to-array.js.map +1 -1
- package/src/lib/add-to-array.js +1 -1
- package/src/lib/add-to-array.js.map +1 -1
- package/src/lib/add-variable-fake-provider.d.ts +1 -1
- package/src/lib/add-variable-fake-provider.js.map +1 -1
- package/src/lib/add-variable-provider.d.ts +1 -1
- package/src/lib/add-variable-provider.js +5 -4
- package/src/lib/add-variable-provider.js.map +1 -1
- package/src/lib/angular/build-angular-base-path.d.ts +8 -0
- package/src/lib/angular/build-angular-base-path.js +15 -0
- package/src/lib/angular/build-angular-base-path.js.map +1 -0
- package/src/lib/angular/coerce-accordion-component.d.ts +7 -0
- package/src/lib/angular/coerce-accordion-component.js +22 -0
- package/src/lib/angular/coerce-accordion-component.js.map +1 -0
- package/src/lib/angular/coerce-component-class.d.ts +8 -0
- package/src/lib/angular/coerce-component-class.js +40 -0
- package/src/lib/angular/coerce-component-class.js.map +1 -0
- package/src/lib/angular/coerce-component.d.ts +15 -0
- package/src/lib/angular/coerce-component.js +41 -0
- package/src/lib/angular/coerce-component.js.map +1 -0
- package/src/lib/angular/coerce-data-source-class.d.ts +10 -0
- package/src/lib/angular/coerce-data-source-class.js +41 -0
- package/src/lib/angular/coerce-data-source-class.js.map +1 -0
- package/src/lib/angular/coerce-form-builder-provider.d.ts +10 -0
- package/src/lib/angular/coerce-form-builder-provider.js +35 -0
- package/src/lib/angular/coerce-form-builder-provider.js.map +1 -0
- package/src/lib/angular/coerce-form-component-provider.d.ts +10 -0
- package/src/lib/angular/coerce-form-component-provider.js +37 -0
- package/src/lib/angular/coerce-form-component-provider.js.map +1 -0
- package/src/lib/angular/coerce-form-definition.d.ts +19 -0
- package/src/lib/angular/coerce-form-definition.js +93 -0
- package/src/lib/angular/coerce-form-definition.js.map +1 -0
- package/src/lib/angular/coerce-form-provider.d.ts +10 -0
- package/src/lib/angular/coerce-form-provider.js +36 -0
- package/src/lib/angular/coerce-form-provider.js.map +1 -0
- package/src/lib/angular/coerce-form-providers-file.d.ts +7 -0
- package/src/lib/angular/coerce-form-providers-file.js +84 -0
- package/src/lib/angular/coerce-form-providers-file.js.map +1 -0
- package/src/lib/angular/coerce-form-table-action.d.ts +5 -0
- package/src/lib/angular/coerce-form-table-action.js +86 -0
- package/src/lib/angular/coerce-form-table-action.js.map +1 -0
- package/src/lib/angular/coerce-method-class.d.ts +11 -0
- package/src/lib/angular/coerce-method-class.js +58 -0
- package/src/lib/angular/coerce-method-class.js.map +1 -0
- package/src/lib/angular/coerce-navigation-table-action.d.ts +5 -0
- package/src/lib/angular/coerce-navigation-table-action.js +64 -0
- package/src/lib/angular/coerce-navigation-table-action.js.map +1 -0
- package/src/lib/angular/coerce-operation-table-action.d.ts +5 -0
- package/src/lib/angular/coerce-operation-table-action.js +33 -0
- package/src/lib/angular/coerce-operation-table-action.js.map +1 -0
- package/src/lib/angular/coerce-project-feature.d.ts +6 -0
- package/src/lib/angular/coerce-project-feature.js +20 -0
- package/src/lib/angular/coerce-project-feature.js.map +1 -0
- package/src/lib/angular/coerce-proxy-remote-method-class.d.ts +13 -0
- package/src/lib/angular/coerce-proxy-remote-method-class.js +101 -0
- package/src/lib/angular/coerce-proxy-remote-method-class.js.map +1 -0
- package/src/lib/angular/coerce-table-action-index-provider.d.ts +5 -0
- package/src/lib/angular/coerce-table-action-index-provider.js +27 -0
- package/src/lib/angular/coerce-table-action-index-provider.js.map +1 -0
- package/src/lib/angular/coerce-table-action-index.d.ts +3 -0
- package/src/lib/angular/coerce-table-action-index.js +16 -0
- package/src/lib/angular/coerce-table-action-index.js.map +1 -0
- package/src/lib/angular/coerce-table-action-provider.d.ts +8 -0
- package/src/lib/angular/coerce-table-action-provider.js +49 -0
- package/src/lib/angular/coerce-table-action-provider.js.map +1 -0
- package/src/lib/angular/coerce-table-action.d.ts +13 -0
- package/src/lib/angular/coerce-table-action.js +76 -0
- package/src/lib/angular/coerce-table-action.js.map +1 -0
- package/src/lib/angular/coerce-table-parameters-from-route.d.ts +6 -0
- package/src/lib/angular/coerce-table-parameters-from-route.js +52 -0
- package/src/lib/angular/coerce-table-parameters-from-route.js.map +1 -0
- package/src/lib/angular/coerce-tree-table-children-proxy-remote-method-class.d.ts +5 -0
- package/src/lib/angular/coerce-tree-table-children-proxy-remote-method-class.js +31 -0
- package/src/lib/angular/coerce-tree-table-children-proxy-remote-method-class.js.map +1 -0
- package/src/lib/angular/coerce-tree-table-root-proxy-remote-method-class.d.ts +5 -0
- package/src/lib/angular/coerce-tree-table-root-proxy-remote-method-class.js +31 -0
- package/src/lib/angular/coerce-tree-table-root-proxy-remote-method-class.js.map +1 -0
- package/src/lib/angular/has-accordion-component.d.ts +6 -0
- package/src/lib/angular/has-accordion-component.js +20 -0
- package/src/lib/angular/has-accordion-component.js.map +1 -0
- package/src/lib/angular/has-component.d.ts +8 -0
- package/src/lib/angular/has-component.js +26 -0
- package/src/lib/angular/has-component.js.map +1 -0
- package/src/lib/angular/has-project-feature.d.ts +5 -0
- package/src/lib/angular/has-project-feature.js +15 -0
- package/src/lib/angular/has-project-feature.js.map +1 -0
- package/src/lib/angular/has-table-component.d.ts +8 -0
- package/src/lib/angular/has-table-component.js +19 -0
- package/src/lib/angular/has-table-component.js.map +1 -0
- package/src/lib/angular/index.d.ts +26 -0
- package/src/lib/angular/index.js +30 -0
- package/src/lib/angular/index.js.map +1 -0
- package/src/lib/auto-import.js +5 -3
- package/src/lib/auto-import.js.map +1 -1
- package/src/lib/coerce-class-constructor.js.map +1 -1
- package/src/lib/coerce-class-method.d.ts +1 -1
- package/src/lib/coerce-class-method.js +3 -2
- package/src/lib/coerce-class-method.js.map +1 -1
- package/src/lib/coerce-class.js.map +1 -1
- package/src/lib/coerce-property-key.js.map +1 -1
- package/src/lib/coerce-source-file.js.map +1 -1
- package/src/lib/coerce-variable-declaration.d.ts +1 -1
- package/src/lib/coerce-variable-declaration.js +1 -1
- package/src/lib/coerce-variable-declaration.js.map +1 -1
- package/src/lib/create-dto-class.d.ts +10 -0
- package/src/lib/create-dto-class.js +194 -0
- package/src/lib/create-dto-class.js.map +1 -0
- package/src/lib/find-component-module-source-file.js.map +1 -1
- package/src/lib/find-component-source-file.js.map +1 -1
- package/src/lib/find-routing-module.js.map +1 -1
- package/src/lib/fix-missing-imports.js +2 -2
- package/src/lib/fix-missing-imports.js.map +1 -1
- package/src/lib/get-array-declaration.js +1 -1
- package/src/lib/get-array-declaration.js.map +1 -1
- package/src/lib/get-class-decorator-arguments.js.map +1 -1
- package/src/lib/get-coerce-array-literal-form-object-literal.d.ts +1 -1
- package/src/lib/get-coerce-array-literal-form-object-literal.js +1 -1
- package/src/lib/get-coerce-array-literal-form-object-literal.js.map +1 -1
- package/src/lib/get-component-class.d.ts +1 -1
- package/src/lib/get-component-class.js.map +1 -1
- package/src/lib/get-component-options-object.d.ts +1 -1
- package/src/lib/get-component-options-object.js.map +1 -1
- package/src/lib/get-form-providers-source-file.js +3 -2
- package/src/lib/get-form-providers-source-file.js.map +1 -1
- package/src/lib/get-ng-module-options-object.d.ts +1 -1
- package/src/lib/get-ng-module-options-object.js.map +1 -1
- package/src/lib/get-variable-declaration.js.map +1 -1
- package/src/lib/handle-component-module.js.map +1 -1
- package/src/lib/handle-component.js.map +1 -1
- package/src/lib/index.d.ts +48 -0
- package/src/lib/index.js +52 -0
- package/src/lib/index.js.map +1 -0
- package/src/lib/is-array-literal-expression.js.map +1 -1
- package/src/lib/merge-ts-morph-project.js.map +1 -1
- package/src/lib/{nestjs → nest}/add-nest-controller.js +7 -6
- package/src/lib/nest/add-nest-controller.js.map +1 -0
- package/src/lib/{nestjs → nest}/add-nest-module-controller.js +2 -1
- package/src/lib/nest/add-nest-module-controller.js.map +1 -0
- package/src/lib/{nestjs → nest}/add-nest-module-import.js +2 -1
- package/src/lib/nest/add-nest-module-import.js.map +1 -0
- package/src/lib/{nestjs → nest}/add-nest-module-provider.js +2 -1
- package/src/lib/nest/add-nest-module-provider.js.map +1 -0
- package/src/lib/nest/add-nest-module-to-app-module.d.ts +8 -0
- package/src/lib/nest/add-nest-module-to-app-module.js +20 -0
- package/src/lib/nest/add-nest-module-to-app-module.js.map +1 -0
- package/src/lib/{nestjs → nest}/add-nest-provider-to-array.js +3 -1
- package/src/lib/nest/add-nest-provider-to-array.js.map +1 -0
- package/src/lib/nest/build-nest-base-path.d.ts +8 -0
- package/src/lib/nest/build-nest-base-path.js +17 -0
- package/src/lib/nest/build-nest-base-path.js.map +1 -0
- package/src/lib/nest/build-nest-controller-name.d.ts +9 -0
- package/src/lib/nest/build-nest-controller-name.js +23 -0
- package/src/lib/nest/build-nest-controller-name.js.map +1 -0
- package/src/lib/nest/coerce-dto-class.d.ts +9 -0
- package/src/lib/nest/coerce-dto-class.js +185 -0
- package/src/lib/nest/coerce-dto-class.js.map +1 -0
- package/src/lib/nest/coerce-form-submit-operation.d.ts +6 -0
- package/src/lib/nest/coerce-form-submit-operation.js +22 -0
- package/src/lib/nest/coerce-form-submit-operation.js.map +1 -0
- package/src/lib/nest/coerce-get-by-id-operation.d.ts +17 -0
- package/src/lib/nest/coerce-get-by-id-operation.js +69 -0
- package/src/lib/nest/coerce-get-by-id-operation.js.map +1 -0
- package/src/lib/nest/coerce-get-children-operation.d.ts +3 -0
- package/src/lib/nest/coerce-get-children-operation.js +64 -0
- package/src/lib/nest/coerce-get-children-operation.js.map +1 -0
- package/src/lib/nest/coerce-get-data-grid-operation.d.ts +7 -0
- package/src/lib/nest/coerce-get-data-grid-operation.js +33 -0
- package/src/lib/nest/coerce-get-data-grid-operation.js.map +1 -0
- package/src/lib/nest/coerce-get-page-operation.d.ts +8 -0
- package/src/lib/nest/coerce-get-page-operation.js +117 -0
- package/src/lib/nest/coerce-get-page-operation.js.map +1 -0
- package/src/lib/nest/coerce-get-root-operation.d.ts +3 -0
- package/src/lib/nest/coerce-get-root-operation.js +56 -0
- package/src/lib/nest/coerce-get-root-operation.js.map +1 -0
- package/src/lib/nest/coerce-nest-controller.d.ts +10 -0
- package/src/lib/nest/coerce-nest-controller.js +35 -0
- package/src/lib/nest/coerce-nest-controller.js.map +1 -0
- package/src/lib/nest/coerce-nest-module.d.ts +8 -0
- package/src/lib/nest/coerce-nest-module.js +29 -0
- package/src/lib/nest/coerce-nest-module.js.map +1 -0
- package/src/lib/nest/coerce-nest-service-project.d.ts +7 -0
- package/src/lib/nest/coerce-nest-service-project.js +34 -0
- package/src/lib/nest/coerce-nest-service-project.js.map +1 -0
- package/src/lib/nest/coerce-operation.d.ts +27 -0
- package/src/lib/nest/coerce-operation.js +87 -0
- package/src/lib/nest/coerce-operation.js.map +1 -0
- package/src/lib/nest/coerce-page-dto-class.d.ts +12 -0
- package/src/lib/nest/coerce-page-dto-class.js +31 -0
- package/src/lib/nest/coerce-page-dto-class.js.map +1 -0
- package/src/lib/nest/coerce-row-dto-class.d.ts +10 -0
- package/src/lib/nest/coerce-row-dto-class.js +23 -0
- package/src/lib/nest/coerce-row-dto-class.js.map +1 -0
- package/src/lib/nest/coerce-submit-data-grid-operation.d.ts +5 -0
- package/src/lib/nest/coerce-submit-data-grid-operation.js +23 -0
- package/src/lib/nest/coerce-submit-data-grid-operation.js.map +1 -0
- package/src/lib/nest/find-nest-module-declaration.js.map +1 -0
- package/src/lib/nest/find-nest-module-source-file.js.map +1 -0
- package/src/lib/nest/get-nest-module-metadata.js.map +1 -0
- package/src/lib/nest/has-nest-controller.d.ts +10 -0
- package/src/lib/nest/has-nest-controller.js +17 -0
- package/src/lib/nest/has-nest-controller.js.map +1 -0
- package/src/lib/nest/has-nest-module-class.js.map +1 -0
- package/src/lib/nest/has-nest-module.d.ts +8 -0
- package/src/lib/nest/has-nest-module.js +18 -0
- package/src/lib/nest/has-nest-module.js.map +1 -0
- package/src/lib/nest/index.d.ts +31 -0
- package/src/lib/nest/index.js +35 -0
- package/src/lib/nest/index.js.map +1 -0
- package/src/lib/nest/is-nest-module-class.js.map +1 -0
- package/src/lib/nest/nest-provider-object.js.map +1 -0
- package/src/lib/nest/project-utilities.d.ts +11 -0
- package/src/lib/nest/project-utilities.js +24 -0
- package/src/lib/nest/project-utilities.js.map +1 -0
- package/src/lib/operation-id-utilities.d.ts +14 -0
- package/src/lib/operation-id-utilities.js +59 -0
- package/src/lib/operation-id-utilities.js.map +1 -0
- package/src/lib/organize-imports.js +2 -2
- package/src/lib/organize-imports.js.map +1 -1
- package/src/lib/overwrite-decorator.d.ts +1 -1
- package/src/lib/overwrite-decorator.js.map +1 -1
- package/src/lib/overwrite-property.js +1 -1
- package/src/lib/overwrite-property.js.map +1 -1
- package/src/lib/provider-object.js.map +1 -1
- package/src/lib/to-value-context.js.map +1 -1
- package/src/lib/{apply-ts-morph-project.js → ts-morph/apply-ts-morph-project.js} +1 -1
- package/src/lib/ts-morph/apply-ts-morph-project.js.map +1 -0
- package/src/lib/ts-morph/coerce-class-implementation.d.ts +2 -0
- package/src/lib/ts-morph/coerce-class-implementation.js +10 -0
- package/src/lib/ts-morph/coerce-class-implementation.js.map +1 -0
- package/src/lib/ts-morph/coerce-class-property.d.ts +2 -0
- package/src/lib/ts-morph/coerce-class-property.js +12 -0
- package/src/lib/ts-morph/coerce-class-property.js.map +1 -0
- package/src/lib/ts-morph/coerce-decorator.d.ts +9 -0
- package/src/lib/ts-morph/coerce-decorator.js +22 -0
- package/src/lib/ts-morph/coerce-decorator.js.map +1 -0
- package/src/lib/ts-morph/coerce-function.d.ts +2 -0
- package/src/lib/ts-morph/coerce-function.js +10 -0
- package/src/lib/ts-morph/coerce-function.js.map +1 -0
- package/src/lib/ts-morph/coerce-imports.d.ts +2 -0
- package/src/lib/ts-morph/coerce-imports.js +25 -0
- package/src/lib/ts-morph/coerce-imports.js.map +1 -0
- package/src/lib/ts-morph/coerce-interface.d.ts +2 -0
- package/src/lib/ts-morph/coerce-interface.js +15 -0
- package/src/lib/ts-morph/coerce-interface.js.map +1 -0
- package/src/lib/ts-morph/coerce-parameter-declaration.d.ts +2 -0
- package/src/lib/ts-morph/coerce-parameter-declaration.js +13 -0
- package/src/lib/ts-morph/coerce-parameter-declaration.js.map +1 -0
- package/src/lib/ts-morph/coerce-statements.d.ts +2 -0
- package/src/lib/ts-morph/coerce-statements.js +11 -0
- package/src/lib/ts-morph/coerce-statements.js.map +1 -0
- package/src/lib/ts-morph/find-function.d.ts +6 -0
- package/src/lib/ts-morph/find-function.js +8 -0
- package/src/lib/ts-morph/find-function.js.map +1 -0
- package/src/lib/ts-morph/index.d.ts +10 -0
- package/src/lib/ts-morph/index.js +14 -0
- package/src/lib/ts-morph/index.js.map +1 -0
- package/src/lib/ts-morph-transform.d.ts +15 -0
- package/src/lib/ts-morph-transform.js +46 -0
- package/src/lib/ts-morph-transform.js.map +1 -0
- package/LICENSE +0 -630
- package/migration.json +0 -4
- package/src/lib/apply-ts-morph-project.js.map +0 -1
- package/src/lib/coerce-method-class.d.ts +0 -3
- package/src/lib/coerce-method-class.js +0 -14
- package/src/lib/coerce-method-class.js.map +0 -1
- package/src/lib/nestjs/add-nest-controller.js.map +0 -1
- package/src/lib/nestjs/add-nest-module-controller.js.map +0 -1
- package/src/lib/nestjs/add-nest-module-import.js.map +0 -1
- package/src/lib/nestjs/add-nest-module-provider.js.map +0 -1
- package/src/lib/nestjs/add-nest-provider-to-array.js.map +0 -1
- package/src/lib/nestjs/find-nest-module-declaration.js.map +0 -1
- package/src/lib/nestjs/find-nest-module-source-file.js.map +0 -1
- package/src/lib/nestjs/get-nest-module-metadata.js.map +0 -1
- package/src/lib/nestjs/has-nest-module-class.js.map +0 -1
- package/src/lib/nestjs/is-nest-module-class.js.map +0 -1
- package/src/lib/nestjs/nest-provider-object.js.map +0 -1
- /package/src/lib/{nestjs → nest}/add-nest-controller.d.ts +0 -0
- /package/src/lib/{nestjs → nest}/add-nest-module-controller.d.ts +0 -0
- /package/src/lib/{nestjs → nest}/add-nest-module-import.d.ts +0 -0
- /package/src/lib/{nestjs → nest}/add-nest-module-provider.d.ts +0 -0
- /package/src/lib/{nestjs → nest}/add-nest-provider-to-array.d.ts +0 -0
- /package/src/lib/{nestjs → nest}/find-nest-module-declaration.d.ts +0 -0
- /package/src/lib/{nestjs → nest}/find-nest-module-declaration.js +0 -0
- /package/src/lib/{nestjs → nest}/find-nest-module-source-file.d.ts +0 -0
- /package/src/lib/{nestjs → nest}/find-nest-module-source-file.js +0 -0
- /package/src/lib/{nestjs → nest}/get-nest-module-metadata.d.ts +0 -0
- /package/src/lib/{nestjs → nest}/get-nest-module-metadata.js +0 -0
- /package/src/lib/{nestjs → nest}/has-nest-module-class.d.ts +0 -0
- /package/src/lib/{nestjs → nest}/has-nest-module-class.js +0 -0
- /package/src/lib/{nestjs → nest}/is-nest-module-class.d.ts +0 -0
- /package/src/lib/{nestjs → nest}/is-nest-module-class.js +0 -0
- /package/src/lib/{nestjs → nest}/nest-provider-object.d.ts +0 -0
- /package/src/lib/{nestjs → nest}/nest-provider-object.js +0 -0
- /package/src/lib/{apply-ts-morph-project.d.ts → ts-morph/apply-ts-morph-project.d.ts} +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CoerceClassImplementation = void 0;
|
|
4
|
+
function CoerceClassImplementation(classDeclaration, implementation) {
|
|
5
|
+
if (!classDeclaration.getImplements().some(impl => impl.getText() === implementation)) {
|
|
6
|
+
classDeclaration.addImplements(implementation);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
exports.CoerceClassImplementation = CoerceClassImplementation;
|
|
10
|
+
//# sourceMappingURL=coerce-class-implementation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coerce-class-implementation.js","sourceRoot":"","sources":["../../../../../../../packages/schematic/ts-morph/src/lib/ts-morph/coerce-class-implementation.ts"],"names":[],"mappings":";;;AAEA,SAAgB,yBAAyB,CAAC,gBAAkC,EAAE,cAAsB;IAClG,IAAI,CAAC,gBAAgB,CAAC,aAAa,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,cAAc,CAAC,EAAE;QACrF,gBAAgB,CAAC,aAAa,CAAC,cAAc,CAAC,CAAC;KAChD;AACH,CAAC;AAJD,8DAIC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { ClassDeclaration, OptionalKind, PropertyDeclarationStructure } from 'ts-morph';
|
|
2
|
+
export declare function CoerceClassProperty(classDeclaration: ClassDeclaration, propertyName: string, propertyStructure: Omit<OptionalKind<PropertyDeclarationStructure>, 'name'>): import("ts-morph").PropertyDeclaration;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CoerceClassProperty = void 0;
|
|
4
|
+
function CoerceClassProperty(classDeclaration, propertyName, propertyStructure) {
|
|
5
|
+
let propertyDeclaration = classDeclaration.getProperty(propertyName);
|
|
6
|
+
if (!propertyDeclaration) {
|
|
7
|
+
propertyDeclaration = classDeclaration.addProperty(Object.assign(Object.assign({}, propertyStructure), { name: propertyName }));
|
|
8
|
+
}
|
|
9
|
+
return propertyDeclaration;
|
|
10
|
+
}
|
|
11
|
+
exports.CoerceClassProperty = CoerceClassProperty;
|
|
12
|
+
//# sourceMappingURL=coerce-class-property.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coerce-class-property.js","sourceRoot":"","sources":["../../../../../../../packages/schematic/ts-morph/src/lib/ts-morph/coerce-class-property.ts"],"names":[],"mappings":";;;AAMA,SAAgB,mBAAmB,CACjC,gBAAkC,EAClC,YAAoB,EACpB,iBAA2E;IAG3E,IAAI,mBAAmB,GAAG,gBAAgB,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;IAErE,IAAI,CAAC,mBAAmB,EAAE;QACxB,mBAAmB,GAAG,gBAAgB,CAAC,WAAW,iCAC7C,iBAAiB,KACpB,IAAI,EAAE,YAAY,IAClB,CAAC;KACJ;IAED,OAAO,mBAAmB,CAAC;AAC7B,CAAC;AAhBD,kDAgBC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DecoratableNode, Decorator, DecoratorStructure, OptionalKind } from 'ts-morph';
|
|
2
|
+
import { FindFunctionFactory } from './find-function';
|
|
3
|
+
export declare function CoerceDecorator(decoratableNode: DecoratableNode, name: string, structure?: Partial<Omit<OptionalKind<DecoratorStructure>, 'name'>>, compareTo?: FindFunctionFactory<Partial<DecoratorStructure>, Decorator>): Decorator;
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated Use the overload with the name parameter
|
|
6
|
+
*/
|
|
7
|
+
export declare function CoerceDecorator(decoratableNode: DecoratableNode, structure: Partial<OptionalKind<DecoratorStructure>> & {
|
|
8
|
+
name: string;
|
|
9
|
+
}): Decorator;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CoerceDecorator = void 0;
|
|
4
|
+
const find_function_1 = require("./find-function");
|
|
5
|
+
function CoerceDecorator(decoratableNode, structureOrName, structure = {}, compareTo = find_function_1.FindByNameFunction) {
|
|
6
|
+
let name;
|
|
7
|
+
if (typeof structureOrName === 'string') {
|
|
8
|
+
name = structureOrName;
|
|
9
|
+
}
|
|
10
|
+
else {
|
|
11
|
+
name = structureOrName.name;
|
|
12
|
+
structure = structureOrName !== null && structureOrName !== void 0 ? structureOrName : structure;
|
|
13
|
+
}
|
|
14
|
+
let decorator = decoratableNode.getDecorator(compareTo(Object.assign(Object.assign({}, structure), { name })));
|
|
15
|
+
if (!decorator) {
|
|
16
|
+
decorator = decoratableNode.addDecorator({ name });
|
|
17
|
+
decorator.set(structure);
|
|
18
|
+
}
|
|
19
|
+
return decorator;
|
|
20
|
+
}
|
|
21
|
+
exports.CoerceDecorator = CoerceDecorator;
|
|
22
|
+
//# sourceMappingURL=coerce-decorator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coerce-decorator.js","sourceRoot":"","sources":["../../../../../../../packages/schematic/ts-morph/src/lib/ts-morph/coerce-decorator.ts"],"names":[],"mappings":";;;AAMA,mDAGyB;AAezB,SAAgB,eAAe,CAC7B,eAAgC,EAChC,eAA0D,EAC1D,YAAuD,EAAE,EACzD,YAA4F,kCAAkB;IAE9G,IAAI,IAAY,CAAC;IACjB,IAAI,OAAO,eAAe,KAAK,QAAQ,EAAE;QACvC,IAAI,GAAG,eAAe,CAAC;KACxB;SAAM;QACL,IAAI,GAAG,eAAe,CAAC,IAAI,CAAC;QAC5B,SAAS,GAAG,eAAe,aAAf,eAAe,cAAf,eAAe,GAAI,SAAS,CAAC;KAC1C;IACD,IAAI,SAAS,GAAG,eAAe,CAAC,YAAY,CAAC,SAAS,iCACjD,SAAS,KACZ,IAAI,IACJ,CAAC,CAAC;IACJ,IAAI,CAAC,SAAS,EAAE;QACd,SAAS,GAAG,eAAe,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;QACnD,SAAS,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;KAC1B;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAtBD,0CAsBC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CoerceFunction = void 0;
|
|
4
|
+
function CoerceFunction(sourceFile, name, structure = {}) {
|
|
5
|
+
const functionDeclaration = sourceFile.getFunction(name) || sourceFile.addFunction({ name });
|
|
6
|
+
functionDeclaration.set(structure);
|
|
7
|
+
return functionDeclaration;
|
|
8
|
+
}
|
|
9
|
+
exports.CoerceFunction = CoerceFunction;
|
|
10
|
+
//# sourceMappingURL=coerce-function.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coerce-function.js","sourceRoot":"","sources":["../../../../../../../packages/schematic/ts-morph/src/lib/ts-morph/coerce-function.ts"],"names":[],"mappings":";;;AAKA,SAAgB,cAAc,CAC5B,UAAsB,EACtB,IAAY,EACZ,YAAiE,EAAE;IAEnE,MAAM,mBAAmB,GAAG,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,UAAU,CAAC,WAAW,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;IAC7F,mBAAmB,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IACnC,OAAO,mBAAmB,CAAC;AAC7B,CAAC;AARD,wCAQC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CoerceImports = void 0;
|
|
4
|
+
function CoerceImports(sourceFile, structures) {
|
|
5
|
+
for (const structure of Array.isArray(structures) ? structures : [structures]) {
|
|
6
|
+
const moduleSpecifier = structure.moduleSpecifier;
|
|
7
|
+
const namedImports = structure.namedImports;
|
|
8
|
+
if (!moduleSpecifier ||
|
|
9
|
+
!(Array.isArray(namedImports) && namedImports.every((named) => typeof named === 'string')) ||
|
|
10
|
+
!sourceFile.getImportDeclaration(moduleSpecifier)) {
|
|
11
|
+
sourceFile.addImportDeclaration(structure);
|
|
12
|
+
}
|
|
13
|
+
else {
|
|
14
|
+
const importDeclaration = sourceFile.getImportDeclaration(moduleSpecifier);
|
|
15
|
+
const existingImports = importDeclaration.getNamedImports();
|
|
16
|
+
for (const named of namedImports) {
|
|
17
|
+
if (!existingImports.some((existing) => existing.getName() === named)) {
|
|
18
|
+
importDeclaration.addNamedImport(named);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.CoerceImports = CoerceImports;
|
|
25
|
+
//# sourceMappingURL=coerce-imports.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coerce-imports.js","sourceRoot":"","sources":["../../../../../../../packages/schematic/ts-morph/src/lib/ts-morph/coerce-imports.ts"],"names":[],"mappings":";;;AAMA,SAAgB,aAAa,CAC3B,UAAsB,EACtB,UAA8G;IAG9G,KAAK,MAAM,SAAS,IAAI,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAE,UAAU,CAAE,EAAE;QAE/E,MAAM,eAAe,GAAG,SAAS,CAAC,eAAe,CAAC;QAClD,MAAM,YAAY,GAAG,SAAS,CAAC,YAAY,CAAC;QAE5C,IAAI,CAAC,eAAe;YAClB,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,YAAY,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC;YAC1F,CAAC,UAAU,CAAC,oBAAoB,CAAC,eAAe,CAAC,EAAE;YACnD,UAAU,CAAC,oBAAoB,CAAC,SAAS,CAAC,CAAC;SAC5C;aAAM;YACL,MAAM,iBAAiB,GAAG,UAAU,CAAC,oBAAoB,CAAC,eAAe,CAAE,CAAC;YAC5E,MAAM,eAAe,GAAG,iBAAiB,CAAC,eAAe,EAAE,CAAC;YAC5D,KAAK,MAAM,KAAK,IAAI,YAAY,EAAE;gBAChC,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,OAAO,EAAE,KAAK,KAAK,CAAC,EAAE;oBACrE,iBAAiB,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;iBACzC;aACF;SACF;KAEF;AAEH,CAAC;AA1BD,sCA0BC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { InterfaceDeclarationStructure, OptionalKind, SourceFile } from 'ts-morph';
|
|
2
|
+
export declare function CoerceInterface(sourceFile: SourceFile, interfaceName: string, structure?: Omit<OptionalKind<InterfaceDeclarationStructure>, 'name'>): import("ts-morph").InterfaceDeclaration;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CoerceInterface = void 0;
|
|
4
|
+
function CoerceInterface(sourceFile, interfaceName, structure = {}) {
|
|
5
|
+
let interfaceDeclaration = sourceFile.getInterface(interfaceName);
|
|
6
|
+
if (!interfaceDeclaration) {
|
|
7
|
+
interfaceDeclaration = sourceFile.addInterface({
|
|
8
|
+
name: interfaceName,
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
interfaceDeclaration.set(structure);
|
|
12
|
+
return interfaceDeclaration;
|
|
13
|
+
}
|
|
14
|
+
exports.CoerceInterface = CoerceInterface;
|
|
15
|
+
//# sourceMappingURL=coerce-interface.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coerce-interface.js","sourceRoot":"","sources":["../../../../../../../packages/schematic/ts-morph/src/lib/ts-morph/coerce-interface.ts"],"names":[],"mappings":";;;AAMA,SAAgB,eAAe,CAC7B,UAAsB,EACtB,aAAqB,EACrB,YAAuE,EAAE;IAEzE,IAAI,oBAAoB,GAAG,UAAU,CAAC,YAAY,CAAC,aAAa,CAAC,CAAC;IAClE,IAAI,CAAC,oBAAoB,EAAE;QACzB,oBAAoB,GAAG,UAAU,CAAC,YAAY,CAAC;YAC7C,IAAI,EAAE,aAAa;SACpB,CAAC,CAAC;KACJ;IACD,oBAAoB,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IACpC,OAAO,oBAAoB,CAAC;AAC9B,CAAC;AAbD,0CAaC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { OptionalKind, ParameterDeclarationStructure, ParameteredNode } from 'ts-morph';
|
|
2
|
+
export declare function CoerceParameterDeclaration(node: ParameteredNode, name: string, structure?: Omit<OptionalKind<ParameterDeclarationStructure>, 'name'>): import("ts-morph").ParameterDeclaration;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CoerceParameterDeclaration = void 0;
|
|
4
|
+
function CoerceParameterDeclaration(node, name, structure) {
|
|
5
|
+
let parameterDeclaration = node.getParameter(name);
|
|
6
|
+
if (!parameterDeclaration) {
|
|
7
|
+
parameterDeclaration = node.addParameter({ name });
|
|
8
|
+
parameterDeclaration.set(structure !== null && structure !== void 0 ? structure : {});
|
|
9
|
+
}
|
|
10
|
+
return parameterDeclaration;
|
|
11
|
+
}
|
|
12
|
+
exports.CoerceParameterDeclaration = CoerceParameterDeclaration;
|
|
13
|
+
//# sourceMappingURL=coerce-parameter-declaration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coerce-parameter-declaration.js","sourceRoot":"","sources":["../../../../../../../packages/schematic/ts-morph/src/lib/ts-morph/coerce-parameter-declaration.ts"],"names":[],"mappings":";;;AAMA,SAAgB,0BAA0B,CACxC,IAAqB,EACrB,IAAY,EACZ,SAAqE;IAErE,IAAI,oBAAoB,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;IACnD,IAAI,CAAC,oBAAoB,EAAE;QACzB,oBAAoB,GAAG,IAAI,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;QACnD,oBAAoB,CAAC,GAAG,CAAC,SAAS,aAAT,SAAS,cAAT,SAAS,GAChC,EAAE,CAAC,CAAC;KACP;IACD,OAAO,oBAAoB,CAAC;AAC9B,CAAC;AAZD,gEAYC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CoerceStatements = void 0;
|
|
4
|
+
function CoerceStatements(node, statements) {
|
|
5
|
+
if (node.getStatements().length ===
|
|
6
|
+
0) {
|
|
7
|
+
node.addStatements(statements);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.CoerceStatements = CoerceStatements;
|
|
11
|
+
//# sourceMappingURL=coerce-statements.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coerce-statements.js","sourceRoot":"","sources":["../../../../../../../packages/schematic/ts-morph/src/lib/ts-morph/coerce-statements.ts"],"names":[],"mappings":";;;AAMA,SAAgB,gBAAgB,CAC9B,IAAqB,EACrB,UAAuF;IAEvF,IAAI,IAAI,CAAC,aAAa,EAAE,CAAC,MAAM;QAC7B,CAAC,EAAE;QACH,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;KAChC;AACH,CAAC;AARD,4CAQC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export type FindFunctionFactory<CompareTo, Node> = (compareTo: CompareTo) => (node: Node) => boolean;
|
|
2
|
+
export declare function FindByNameFunction<CompareTo extends {
|
|
3
|
+
name: string;
|
|
4
|
+
}, Node extends {
|
|
5
|
+
getName(): string;
|
|
6
|
+
}>(compareTo: CompareTo): (node: Node) => boolean;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FindByNameFunction = void 0;
|
|
4
|
+
function FindByNameFunction(compareTo) {
|
|
5
|
+
return node => node.getName() === compareTo.name;
|
|
6
|
+
}
|
|
7
|
+
exports.FindByNameFunction = FindByNameFunction;
|
|
8
|
+
//# sourceMappingURL=find-function.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"find-function.js","sourceRoot":"","sources":["../../../../../../../packages/schematic/ts-morph/src/lib/ts-morph/find-function.ts"],"names":[],"mappings":";;;AAEA,SAAgB,kBAAkB,CAE/B,SAAoB;IACrB,OAAO,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,SAAS,CAAC,IAAI,CAAC;AACnD,CAAC;AAJD,gDAIC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './apply-ts-morph-project';
|
|
2
|
+
export * from './coerce-class-implementation';
|
|
3
|
+
export * from './coerce-class-property';
|
|
4
|
+
export * from './coerce-decorator';
|
|
5
|
+
export * from './coerce-function';
|
|
6
|
+
export * from './coerce-imports';
|
|
7
|
+
export * from './coerce-interface';
|
|
8
|
+
export * from './coerce-parameter-declaration';
|
|
9
|
+
export * from './coerce-statements';
|
|
10
|
+
export * from './find-function';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./apply-ts-morph-project"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./coerce-class-implementation"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./coerce-class-property"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./coerce-decorator"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./coerce-function"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./coerce-imports"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./coerce-interface"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./coerce-parameter-declaration"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./coerce-statements"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./find-function"), exports);
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/schematic/ts-morph/src/lib/ts-morph/index.ts"],"names":[],"mappings":";;;AAAA,mEAAyC;AACzC,wEAA8C;AAC9C,kEAAwC;AACxC,6DAAmC;AACnC,4DAAkC;AAClC,2DAAiC;AACjC,6DAAmC;AACnC,yEAA+C;AAC/C,8DAAoC;AACpC,0DAAgC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Rule } from '@angular-devkit/schematics';
|
|
2
|
+
import { Project, ProjectOptions } from 'ts-morph';
|
|
3
|
+
export declare function TsMorphTransform(sourceRoot: string, cb: (project: Project) => void, options?: Partial<ProjectOptions>): Rule;
|
|
4
|
+
export declare function TsMorphNestProjectTransform(options: {
|
|
5
|
+
project: string;
|
|
6
|
+
feature?: string;
|
|
7
|
+
shared?: boolean;
|
|
8
|
+
directory?: string;
|
|
9
|
+
}, cb: (project: Project) => void): Rule;
|
|
10
|
+
export interface TsMorphAngularProjectTransformOptions {
|
|
11
|
+
project: string;
|
|
12
|
+
feature: string;
|
|
13
|
+
directory?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare function TsMorphAngularProjectTransform(options: Readonly<TsMorphAngularProjectTransformOptions>, cb: (project: Project) => void): Rule;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TsMorphAngularProjectTransform = exports.TsMorphNestProjectTransform = exports.TsMorphTransform = void 0;
|
|
4
|
+
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
|
+
const ts_morph_1 = require("ts-morph");
|
|
6
|
+
const schematics_utilities_1 = require("@rxap/schematics-utilities");
|
|
7
|
+
const coerce_nest_service_project_1 = require("./nest/coerce-nest-service-project");
|
|
8
|
+
const build_angular_base_path_1 = require("./angular/build-angular-base-path");
|
|
9
|
+
const build_nest_base_path_1 = require("./nest/build-nest-base-path");
|
|
10
|
+
const apply_ts_morph_project_1 = require("./ts-morph/apply-ts-morph-project");
|
|
11
|
+
const add_dir_1 = require("./add-dir");
|
|
12
|
+
function TsMorphTransform(sourceRoot, cb, options = {}) {
|
|
13
|
+
return tree => {
|
|
14
|
+
const project = new ts_morph_1.Project((0, schematics_utilities_1.deepMerge)({
|
|
15
|
+
manipulationSettings: {
|
|
16
|
+
indentationText: ts_morph_1.IndentationText.TwoSpaces,
|
|
17
|
+
quoteKind: ts_morph_1.QuoteKind.Single,
|
|
18
|
+
},
|
|
19
|
+
useInMemoryFileSystem: true,
|
|
20
|
+
}, options));
|
|
21
|
+
(0, add_dir_1.AddDir)(tree.getDir(sourceRoot), project);
|
|
22
|
+
cb(project);
|
|
23
|
+
return (0, apply_ts_morph_project_1.ApplyTsMorphProject)(project, sourceRoot, false);
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
exports.TsMorphTransform = TsMorphTransform;
|
|
27
|
+
function TsMorphNestProjectTransform(options, cb) {
|
|
28
|
+
return (0, schematics_1.chain)([
|
|
29
|
+
(0, coerce_nest_service_project_1.CoerceNestServiceProject)(options),
|
|
30
|
+
tree => {
|
|
31
|
+
const basePath = (0, build_nest_base_path_1.BuildNestBasePath)(tree, options);
|
|
32
|
+
return TsMorphTransform(basePath, cb);
|
|
33
|
+
},
|
|
34
|
+
]);
|
|
35
|
+
}
|
|
36
|
+
exports.TsMorphNestProjectTransform = TsMorphNestProjectTransform;
|
|
37
|
+
function TsMorphAngularProjectTransform(options, cb) {
|
|
38
|
+
return (0, schematics_1.chain)([
|
|
39
|
+
tree => {
|
|
40
|
+
const basePath = (0, build_angular_base_path_1.BuildAngularBasePath)(tree, options);
|
|
41
|
+
return TsMorphTransform(basePath, cb);
|
|
42
|
+
},
|
|
43
|
+
]);
|
|
44
|
+
}
|
|
45
|
+
exports.TsMorphAngularProjectTransform = TsMorphAngularProjectTransform;
|
|
46
|
+
//# sourceMappingURL=ts-morph-transform.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ts-morph-transform.js","sourceRoot":"","sources":["../../../../../../packages/schematic/ts-morph/src/lib/ts-morph-transform.ts"],"names":[],"mappings":";;;AAAA,2DAGoC;AACpC,uCAKkB;AAClB,qEAAuD;AACvD,oFAA8E;AAC9E,+EAAyE;AACzE,sEAAgE;AAChE,8EAAwE;AACxE,uCAAmC;AAEnC,SAAgB,gBAAgB,CAC9B,UAAkB,EAClB,EAA8B,EAC9B,UAAmC,EAAE;IAErC,OAAO,IAAI,CAAC,EAAE;QAEZ,MAAM,OAAO,GAAG,IAAI,kBAAO,CAAC,IAAA,gCAAS,EAAC;YACpC,oBAAoB,EAAE;gBACpB,eAAe,EAAE,0BAAe,CAAC,SAAS;gBAC1C,SAAS,EAAE,oBAAS,CAAC,MAAM;aAC5B;YACD,qBAAqB,EAAE,IAAI;SAC5B,EAAE,OAAO,CAAC,CAAC,CAAC;QAEb,IAAA,gBAAM,EAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC,CAAC;QAEzC,EAAE,CAAC,OAAO,CAAC,CAAC;QAEZ,OAAO,IAAA,4CAAmB,EAAC,OAAO,EAAE,UAAU,EAAE,KAAK,CAAC,CAAC;IACzD,CAAC,CAAC;AACJ,CAAC;AArBD,4CAqBC;AAED,SAAgB,2BAA2B,CACzC,OAAoF,EACpF,EAA8B;IAE9B,OAAO,IAAA,kBAAK,EAAC;QACX,IAAA,sDAAwB,EAAC,OAAO,CAAC;QACjC,IAAI,CAAC,EAAE;YACL,MAAM,QAAQ,GAAG,IAAA,wCAAiB,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;YAClD,OAAO,gBAAgB,CACrB,QAAQ,EACR,EAAE,CACH,CAAC;QACJ,CAAC;KACF,CAAC,CAAC;AACL,CAAC;AAdD,kEAcC;AAQD,SAAgB,8BAA8B,CAC5C,OAAwD,EACxD,EAA8B;IAE9B,OAAO,IAAA,kBAAK,EAAC;QACX,IAAI,CAAC,EAAE;YACL,MAAM,QAAQ,GAAG,IAAA,8CAAoB,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;YACrD,OAAO,gBAAgB,CACrB,QAAQ,EACR,EAAE,CACH,CAAC;QACJ,CAAC;KACF,CAAC,CAAC;AACL,CAAC;AAbD,wEAaC"}
|