@o3r/core 10.0.0-next.9 → 11.0.0-next.0
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/README.md +38 -13
- package/builders/app-version/index.d.ts.map +1 -1
- package/builders/app-version/index.js +1 -1
- package/builders/app-version/index.js.map +1 -1
- package/builders/app-version/schema.json +1 -1
- package/builders/lib-build/schema.json +1 -1
- package/builders/multi-watcher/schema.json +1 -1
- package/builders/ngc/schema.json +1 -1
- package/builders/pattern-replacement/index.d.ts.map +1 -1
- package/builders/pattern-replacement/index.js +5 -5
- package/builders/pattern-replacement/index.js.map +1 -1
- package/builders/pattern-replacement/schema.json +1 -1
- package/builders/run-script/index.d.ts +4 -0
- package/builders/run-script/index.d.ts.map +1 -0
- package/builders/run-script/index.js +34 -0
- package/builders/run-script/index.js.map +1 -0
- package/builders/run-script/schema.d.ts +6 -0
- package/builders/run-script/schema.d.ts.map +1 -0
- package/{schematics/library → builders/run-script}/schema.js.map +1 -1
- package/builders/run-script/schema.json +15 -0
- package/builders.json +5 -0
- package/collection.json +0 -23
- package/core/application/dgp.interfaces.d.ts +6 -3
- package/core/application/dgp.interfaces.d.ts.map +1 -1
- package/core/devkit/devtools.interface.d.ts +16 -2
- package/core/devkit/devtools.interface.d.ts.map +1 -1
- package/core/index.d.ts +1 -0
- package/core/index.d.ts.map +1 -1
- package/core/index.js +1 -0
- package/core/index.js.map +1 -1
- package/core/interfaces/configuration.d.ts +39 -17
- package/core/interfaces/configuration.d.ts.map +1 -1
- package/core/interfaces/index.d.ts +0 -3
- package/core/interfaces/index.d.ts.map +1 -1
- package/core/interfaces/index.js +0 -3
- package/core/interfaces/index.js.map +1 -1
- package/core/metadata/component.decorator.d.ts +0 -1
- package/core/metadata/component.decorator.d.ts.map +1 -1
- package/core/metadata/component.decorator.js +0 -1
- package/core/metadata/component.decorator.js.map +1 -1
- package/core/metadata/component.identifier.d.ts +7 -0
- package/core/metadata/component.identifier.d.ts.map +1 -0
- package/core/metadata/component.identifier.js +9 -0
- package/core/metadata/component.identifier.js.map +1 -0
- package/core/metadata/index.d.ts +1 -0
- package/core/metadata/index.d.ts.map +1 -1
- package/core/metadata/index.js +1 -0
- package/core/metadata/index.js.map +1 -1
- package/core/rules-engine/index.d.ts +2 -0
- package/core/rules-engine/index.d.ts.map +1 -0
- package/core/rules-engine/index.js +2 -0
- package/core/rules-engine/index.js.map +1 -0
- package/core/rules-engine/rules-engine.interfaces.d.ts +24 -0
- package/core/rules-engine/rules-engine.interfaces.d.ts.map +1 -0
- package/core/rules-engine/rules-engine.interfaces.js +2 -0
- package/core/rules-engine/rules-engine.interfaces.js.map +1 -0
- package/esm2022/core/application/dgp.interfaces.mjs +1 -1
- package/esm2022/core/devkit/devtools.interface.mjs +1 -1
- package/esm2022/core/index.mjs +2 -1
- package/esm2022/core/interfaces/configuration.mjs +1 -1
- package/esm2022/core/interfaces/index.mjs +1 -4
- package/esm2022/core/metadata/component.decorator.mjs +1 -2
- package/esm2022/core/metadata/component.identifier.mjs +9 -0
- package/esm2022/core/metadata/index.mjs +2 -1
- package/esm2022/core/rules-engine/index.mjs +2 -0
- package/esm2022/core/rules-engine/rules-engine.interfaces.mjs +2 -0
- package/esm2022/log/logger.mjs +1 -1
- package/esm2022/messages/message.helpers.mjs +1 -5
- package/esm2022/store/async/async-entity.adapter.mjs +1 -2
- package/esm2022/store/async/async.adapter.mjs +1 -1
- package/esm2022/store/async/async.helpers.mjs +1 -4
- package/esm2022/store/async/async.operators.mjs +3 -4
- package/esm2022/store/async/async.serializer.mjs +1 -4
- package/esm2022/store/index.mjs +1 -2
- package/esm2022/utils/debug/debug.helper.mjs +1 -3
- package/esm2022/utils/deep-fill/deep-fill.mjs +23 -28
- package/esm2022/utils/rendering/rendering.helpers.mjs +1 -2
- package/fesm2022/o3r-core.mjs +47 -169
- package/fesm2022/o3r-core.mjs.map +1 -1
- package/log/logger.d.ts +0 -5
- package/log/logger.d.ts.map +1 -1
- package/messages/message.helpers.d.ts +0 -3
- package/messages/message.helpers.d.ts.map +1 -1
- package/messages/message.helpers.js +0 -4
- package/messages/message.helpers.js.map +1 -1
- package/migration.json +5 -0
- package/package.json +46 -39
- package/schematics/add-modules/index.d.ts +1 -2
- package/schematics/add-modules/index.d.ts.map +1 -1
- package/schematics/add-modules/index.js +16 -9
- package/schematics/add-modules/index.js.map +1 -1
- package/schematics/add-modules/schema.d.ts +5 -1
- package/schematics/add-modules/schema.d.ts.map +1 -1
- package/schematics/add-modules/schema.json +14 -4
- package/schematics/component/container/index.d.ts +0 -1
- package/schematics/component/container/index.d.ts.map +1 -1
- package/schematics/component/container/index.js +1 -3
- package/schematics/component/container/index.js.map +1 -1
- package/schematics/component/container/schema.json +1 -1
- package/schematics/component/index.d.ts.map +1 -1
- package/schematics/component/index.js +5 -2
- package/schematics/component/index.js.map +1 -1
- package/schematics/component/presenter/index.d.ts +0 -1
- package/schematics/component/presenter/index.d.ts.map +1 -1
- package/schematics/component/presenter/index.js +9 -9
- package/schematics/component/presenter/index.js.map +1 -1
- package/schematics/component/presenter/schema.json +4 -3
- package/schematics/component/schema.json +4 -4
- package/schematics/component/structures.types.d.ts +3 -2
- package/schematics/component/structures.types.d.ts.map +1 -1
- package/schematics/component/structures.types.js +1 -0
- package/schematics/component/structures.types.js.map +1 -1
- package/schematics/context-to-component/index.d.ts.map +1 -1
- package/schematics/context-to-component/index.js +1 -1
- package/schematics/context-to-component/index.js.map +1 -1
- package/schematics/context-to-component/schema.json +1 -1
- package/schematics/convert-component/index.js +2 -2
- package/schematics/convert-component/index.js.map +1 -1
- package/schematics/convert-component/schema.json +1 -1
- package/schematics/ng-add/index.d.ts.map +1 -1
- package/schematics/ng-add/index.js +30 -31
- package/schematics/ng-add/index.js.map +1 -1
- package/schematics/ng-add/project-setup/index.d.ts +0 -1
- package/schematics/ng-add/project-setup/index.d.ts.map +1 -1
- package/schematics/ng-add/project-setup/index.js +16 -65
- package/schematics/ng-add/project-setup/index.js.map +1 -1
- package/schematics/ng-add/schema.d.ts +7 -46
- package/schematics/ng-add/schema.d.ts.map +1 -1
- package/schematics/ng-add/schema.json +16 -86
- package/schematics/ng-add/updates-for-v8/cms-adapters/update-builders-names.d.ts.map +1 -1
- package/schematics/ng-add/updates-for-v8/cms-adapters/update-builders-names.js +7 -3
- package/schematics/ng-add/updates-for-v8/cms-adapters/update-builders-names.js.map +1 -1
- package/schematics/ng-add/updates-for-v8/generators/update-generators-names.d.ts.map +1 -1
- package/schematics/ng-add/updates-for-v8/generators/update-generators-names.js +7 -2
- package/schematics/ng-add/updates-for-v8/generators/update-generators-names.js.map +1 -1
- package/schematics/ng-add-create/schema.json +1 -1
- package/schematics/ng-add-create/templates/schematics/ng-add/schema.json.template +2 -2
- package/schematics/ng-update/index.d.ts +4 -0
- package/schematics/ng-update/index.d.ts.map +1 -1
- package/schematics/ng-update/index.js +14 -1
- package/schematics/ng-update/index.js.map +1 -1
- package/schematics/ng-update/v10.0/configuration.d.ts +9 -0
- package/schematics/ng-update/v10.0/configuration.d.ts.map +1 -0
- package/schematics/ng-update/v10.0/configuration.js +23 -0
- package/schematics/ng-update/v10.0/configuration.js.map +1 -0
- package/schematics/page/index.d.ts +0 -1
- package/schematics/page/index.d.ts.map +1 -1
- package/schematics/page/index.js +6 -11
- package/schematics/page/index.js.map +1 -1
- package/schematics/page/schema.json +1 -1
- package/schematics/renovate/schema.json +1 -1
- package/schematics/renovate/templates/azure-pipelines.ugrade.yml +1 -1
- package/schematics/rule-factories/additional-modules/index.d.ts +0 -1
- package/schematics/rule-factories/additional-modules/index.d.ts.map +1 -1
- package/schematics/rule-factories/additional-modules/index.js +14 -18
- package/schematics/rule-factories/additional-modules/index.js.map +1 -1
- package/schematics/rule-factories/component/common.js +2 -2
- package/schematics/rule-factories/component/common.js.map +1 -1
- package/schematics/rule-factories/customization-environment/index.d.ts +0 -1
- package/schematics/rule-factories/customization-environment/index.d.ts.map +1 -1
- package/schematics/rule-factories/customization-environment/index.js +9 -30
- package/schematics/rule-factories/customization-environment/index.js.map +1 -1
- package/schematics/rule-factories/index.d.ts +0 -3
- package/schematics/rule-factories/index.d.ts.map +1 -1
- package/schematics/rule-factories/index.js +0 -3
- package/schematics/rule-factories/index.js.map +1 -1
- package/schematics/rule-factories/o3r-basic-updates/index.d.ts +1 -2
- package/schematics/rule-factories/o3r-basic-updates/index.d.ts.map +1 -1
- package/schematics/rule-factories/o3r-basic-updates/index.js +7 -4
- package/schematics/rule-factories/o3r-basic-updates/index.js.map +1 -1
- package/schematics/rule-factories/otter-environment/index.d.ts +0 -1
- package/schematics/rule-factories/otter-environment/index.d.ts.map +1 -1
- package/schematics/rule-factories/otter-environment/index.js +8 -13
- package/schematics/rule-factories/otter-environment/index.js.map +1 -1
- package/schematics/rule-factories/store/index.d.ts.map +1 -1
- package/schematics/rule-factories/store/index.js +30 -13
- package/schematics/rule-factories/store/index.js.map +1 -1
- package/schematics/schematics-update/schema.json +1 -1
- package/schematics/service/index.d.ts +0 -1
- package/schematics/service/index.d.ts.map +1 -1
- package/schematics/service/index.js +1 -2
- package/schematics/service/index.js.map +1 -1
- package/schematics/service/schema.json +1 -1
- package/schematics/shared/presets/all.preset.d.ts +10 -0
- package/schematics/shared/presets/all.preset.d.ts.map +1 -0
- package/schematics/shared/presets/all.preset.js +40 -0
- package/schematics/shared/presets/all.preset.js.map +1 -0
- package/schematics/shared/presets/external.preset.d.ts +10 -0
- package/schematics/shared/presets/external.preset.d.ts.map +1 -0
- package/schematics/shared/presets/external.preset.js +25 -0
- package/schematics/shared/presets/external.preset.js.map +1 -0
- package/schematics/shared/presets/helpers.js +1 -1
- package/schematics/shared/presets/helpers.js.map +1 -1
- package/schematics/shared/presets/index.d.ts +1 -0
- package/schematics/shared/presets/index.d.ts.map +1 -1
- package/schematics/shared/presets/index.js +4 -1
- package/schematics/shared/presets/index.js.map +1 -1
- package/schematics/show-modules/index.d.ts +1 -2
- package/schematics/show-modules/index.d.ts.map +1 -1
- package/schematics/show-modules/index.js +3 -5
- package/schematics/show-modules/index.js.map +1 -1
- package/schematics/show-modules/schema.json +1 -1
- package/schematics/store/entity-async/index.d.ts.map +1 -1
- package/schematics/store/entity-async/index.js +4 -0
- package/schematics/store/entity-async/index.js.map +1 -1
- package/schematics/store/entity-async/schema.json +1 -1
- package/schematics/store/entity-async/templates/__storeName@dasherize__.state.ts +1 -1
- package/schematics/store/entity-sync/index.d.ts.map +1 -1
- package/schematics/store/entity-sync/index.js +4 -0
- package/schematics/store/entity-sync/index.js.map +1 -1
- package/schematics/store/entity-sync/schema.json +1 -1
- package/schematics/store/entity-sync/templates/__storeName@dasherize__.state.ts +1 -1
- package/schematics/store/schema.json +1 -1
- package/schematics/store/simple-async/index.d.ts.map +1 -1
- package/schematics/store/simple-async/index.js +2 -0
- package/schematics/store/simple-async/index.js.map +1 -1
- package/schematics/store/simple-async/schema.json +1 -1
- package/schematics/store/simple-sync/index.d.ts.map +1 -1
- package/schematics/store/simple-sync/index.js +1 -0
- package/schematics/store/simple-sync/index.js.map +1 -1
- package/schematics/store/simple-sync/schema.json +1 -1
- package/schematics/store-action/schema.json +1 -1
- package/store/async/async-entity.adapter.d.ts +0 -8
- package/store/async/async-entity.adapter.d.ts.map +1 -1
- package/store/async/async-entity.adapter.js +0 -1
- package/store/async/async-entity.adapter.js.map +1 -1
- package/store/async/async.adapter.d.ts +0 -13
- package/store/async/async.adapter.d.ts.map +1 -1
- package/store/async/async.adapter.js.map +1 -1
- package/store/async/async.helpers.d.ts +0 -3
- package/store/async/async.helpers.d.ts.map +1 -1
- package/store/async/async.helpers.js +0 -3
- package/store/async/async.helpers.js.map +1 -1
- package/store/async/async.operators.d.ts +2 -3
- package/store/async/async.operators.d.ts.map +1 -1
- package/store/async/async.operators.js +2 -3
- package/store/async/async.operators.js.map +1 -1
- package/store/async/async.serializer.d.ts +0 -3
- package/store/async/async.serializer.d.ts.map +1 -1
- package/store/async/async.serializer.js +0 -3
- package/store/async/async.serializer.js.map +1 -1
- package/store/index.d.ts +0 -1
- package/store/index.d.ts.map +1 -1
- package/store/index.js +0 -1
- package/store/index.js.map +1 -1
- package/utils/debug/debug.helper.d.ts +0 -2
- package/utils/debug/debug.helper.d.ts.map +1 -1
- package/utils/debug/debug.helper.js +0 -2
- package/utils/debug/debug.helper.js.map +1 -1
- package/utils/deep-fill/deep-fill.d.ts +17 -12
- package/utils/deep-fill/deep-fill.d.ts.map +1 -1
- package/utils/deep-fill/deep-fill.js +22 -27
- package/utils/deep-fill/deep-fill.js.map +1 -1
- package/utils/rendering/rendering.helpers.d.ts +0 -1
- package/utils/rendering/rendering.helpers.d.ts.map +1 -1
- package/utils/rendering/rendering.helpers.js +0 -1
- package/utils/rendering/rendering.helpers.js.map +1 -1
- package/builders/package.json +0 -3
- package/core/interfaces/block.d.ts +0 -9
- package/core/interfaces/block.d.ts.map +0 -1
- package/core/interfaces/block.js +0 -2
- package/core/interfaces/block.js.map +0 -1
- package/core/interfaces/exposed-component.d.ts +0 -10
- package/core/interfaces/exposed-component.d.ts.map +0 -1
- package/core/interfaces/exposed-component.js +0 -2
- package/core/interfaces/exposed-component.js.map +0 -1
- package/core/interfaces/page.d.ts +0 -9
- package/core/interfaces/page.d.ts.map +0 -1
- package/core/interfaces/page.js +0 -2
- package/core/interfaces/page.js.map +0 -1
- package/esm2022/core/interfaces/block.mjs +0 -2
- package/esm2022/core/interfaces/exposed-component.mjs +0 -2
- package/esm2022/core/interfaces/page.mjs +0 -2
- package/esm2022/store/storage/index.mjs +0 -2
- package/esm2022/store/storage/store-sync.mjs +0 -111
- package/schematics/application/index.d.ts +0 -9
- package/schematics/application/index.d.ts.map +0 -1
- package/schematics/application/index.js +0 -68
- package/schematics/application/index.js.map +0 -1
- package/schematics/application/schema.d.ts +0 -14
- package/schematics/application/schema.d.ts.map +0 -1
- package/schematics/application/schema.js.map +0 -1
- package/schematics/application/schema.json +0 -38
- package/schematics/application/templates/package.json.template +0 -29
- package/schematics/library/index.d.ts +0 -9
- package/schematics/library/index.d.ts.map +0 -1
- package/schematics/library/index.js +0 -41
- package/schematics/library/index.js.map +0 -1
- package/schematics/library/rules/rules.ng.d.ts +0 -11
- package/schematics/library/rules/rules.ng.d.ts.map +0 -1
- package/schematics/library/rules/rules.ng.js +0 -113
- package/schematics/library/rules/rules.ng.js.map +0 -1
- package/schematics/library/rules/rules.nx.d.ts +0 -10
- package/schematics/library/rules/rules.nx.d.ts.map +0 -1
- package/schematics/library/rules/rules.nx.js +0 -126
- package/schematics/library/rules/rules.nx.js.map +0 -1
- package/schematics/library/rules/shared.d.ts +0 -19
- package/schematics/library/rules/shared.d.ts.map +0 -1
- package/schematics/library/rules/shared.js +0 -84
- package/schematics/library/rules/shared.js.map +0 -1
- package/schematics/library/schema.d.ts +0 -18
- package/schematics/library/schema.d.ts.map +0 -1
- package/schematics/library/schema.js +0 -3
- package/schematics/library/schema.json +0 -51
- package/schematics/library/templates/ng/.eslintrc.js.template +0 -19
- package/schematics/library/templates/ng/.gitignore.template +0 -2
- package/schematics/library/templates/ng/.npmignore.template +0 -0
- package/schematics/library/templates/ng/jest.config.js.template +0 -37
- package/schematics/library/templates/ng/testing/setup-jest.ts.template +0 -2
- package/schematics/library/templates/ng/tsconfig.builders.json.template +0 -22
- package/schematics/library/templates/ng/tsconfig.eslint.json.template +0 -8
- package/schematics/library/templates/ng/tsconfig.json.template +0 -12
- package/schematics/library/templates/ng/tsconfig.spec.json.template +0 -17
- package/schematics/library/templates/nx/.eslintrc.js.template +0 -19
- package/schematics/library/templates/nx/.gitignore.template +0 -2
- package/schematics/library/templates/nx/.npmignore.template +0 -0
- package/schematics/library/templates/nx/jest.config.js.template +0 -37
- package/schematics/library/templates/nx/project.json.template +0 -66
- package/schematics/library/templates/nx/testing/setup-jest.ts.template +0 -2
- package/schematics/library/templates/nx/tsconfig.eslint.json.template +0 -8
- package/schematics/package.json +0 -3
- package/schematics/rule-factories/azure-pipeline/index.d.ts +0 -14
- package/schematics/rule-factories/azure-pipeline/index.d.ts.map +0 -1
- package/schematics/rule-factories/azure-pipeline/index.js +0 -64
- package/schematics/rule-factories/azure-pipeline/index.js.map +0 -1
- package/schematics/rule-factories/azure-pipeline/templates/azure/scripts/e2e/attach-files-to-test-results.js.template +0 -147
- package/schematics/rule-factories/azure-pipeline/templates/azure/scripts/e2e/compute-deployment-service-url.js.template +0 -20
- package/schematics/rule-factories/azure-pipeline/templates/azure/scripts/e2e/gen-pckg-json-e2e.js.template +0 -15
- package/schematics/rule-factories/azure-pipeline/templates/azure/scripts/e2e/get-app-version.js.template +0 -36
- package/schematics/rule-factories/azure-pipeline/templates/azure/scripts/e2e/get-major-minor.js.template +0 -8
- package/schematics/rule-factories/azure-pipeline/templates/azure/templates/steps/allure.yml.template +0 -24
- package/schematics/rule-factories/azure-pipeline/templates/azure/templates/steps/cascading.yml.template +0 -8
- package/schematics/rule-factories/azure-pipeline/templates/azure/templates/steps/publish.yml.template +0 -14
- package/schematics/rule-factories/azure-pipeline/templates/azure/templates/steps/set-version-tag.yml.template +0 -13
- package/schematics/rule-factories/azure-pipeline/templates/azure/templates/steps/setup.yml.template +0 -21
- package/schematics/rule-factories/azure-pipeline/templates/azure/templates/steps/versioning.yml.template +0 -8
- package/schematics/rule-factories/azure-pipeline/templates/azure-pipelines.yml.template +0 -252
- package/schematics/rule-factories/module-list/index.d.ts +0 -11
- package/schematics/rule-factories/module-list/index.d.ts.map +0 -1
- package/schematics/rule-factories/module-list/index.js +0 -45
- package/schematics/rule-factories/module-list/index.js.map +0 -1
- package/schematics/rule-factories/monorepo/index.d.ts +0 -16
- package/schematics/rule-factories/monorepo/index.d.ts.map +0 -1
- package/schematics/rule-factories/monorepo/index.js +0 -65
- package/schematics/rule-factories/monorepo/index.js.map +0 -1
- package/schematics/rule-factories/renovate/index.d.ts +0 -8
- package/schematics/rule-factories/renovate/index.d.ts.map +0 -1
- package/schematics/rule-factories/renovate/index.js +0 -27
- package/schematics/rule-factories/renovate/index.js.map +0 -1
- package/schematics/rule-factories/renovate/templates/__dot__renovaterc.json.template +0 -61
- package/schematics/sdk/index.d.ts +0 -8
- package/schematics/sdk/index.d.ts.map +0 -1
- package/schematics/sdk/index.js +0 -62
- package/schematics/sdk/index.js.map +0 -1
- package/schematics/sdk/rules/clean-standalone.rule.d.ts +0 -7
- package/schematics/sdk/rules/clean-standalone.rule.d.ts.map +0 -1
- package/schematics/sdk/rules/clean-standalone.rule.js +0 -28
- package/schematics/sdk/rules/clean-standalone.rule.js.map +0 -1
- package/schematics/sdk/rules/rules.ng.d.ts +0 -11
- package/schematics/sdk/rules/rules.ng.d.ts.map +0 -1
- package/schematics/sdk/rules/rules.ng.js +0 -38
- package/schematics/sdk/rules/rules.ng.js.map +0 -1
- package/schematics/sdk/rules/rules.nx.d.ts +0 -11
- package/schematics/sdk/rules/rules.nx.d.ts.map +0 -1
- package/schematics/sdk/rules/rules.nx.js +0 -60
- package/schematics/sdk/rules/rules.nx.js.map +0 -1
- package/schematics/sdk/rules/update-ts-paths.rule.d.ts +0 -10
- package/schematics/sdk/rules/update-ts-paths.rule.d.ts.map +0 -1
- package/schematics/sdk/rules/update-ts-paths.rule.js +0 -41
- package/schematics/sdk/rules/update-ts-paths.rule.js.map +0 -1
- package/schematics/sdk/schema.d.ts +0 -19
- package/schematics/sdk/schema.d.ts.map +0 -1
- package/schematics/sdk/schema.js +0 -3
- package/schematics/sdk/schema.js.map +0 -1
- package/schematics/sdk/schema.json +0 -46
- package/schematics/sdk/templates/jest.config.js.template +0 -12
- package/schematics/store/common/mocks/example-module.d.ts +0 -2
- package/schematics/store/common/mocks/example-module.d.ts.map +0 -1
- package/schematics/store/common/mocks/example-module.js +0 -40
- package/schematics/store/common/mocks/example-module.js.map +0 -1
- package/schematics/store/common/mocks/index.d.ts +0 -2
- package/schematics/store/common/mocks/index.d.ts.map +0 -1
- package/schematics/store/common/mocks/index.js +0 -12
- package/schematics/store/common/mocks/index.js.map +0 -1
- package/schematics/store/entity-async/mocks/example-actions.d.ts +0 -2
- package/schematics/store/entity-async/mocks/example-actions.d.ts.map +0 -1
- package/schematics/store/entity-async/mocks/example-actions.js +0 -82
- package/schematics/store/entity-async/mocks/example-actions.js.map +0 -1
- package/schematics/store/entity-async/mocks/example-effect-spec.d.ts +0 -2
- package/schematics/store/entity-async/mocks/example-effect-spec.d.ts.map +0 -1
- package/schematics/store/entity-async/mocks/example-effect-spec.js +0 -45
- package/schematics/store/entity-async/mocks/example-effect-spec.js.map +0 -1
- package/schematics/store/entity-async/mocks/example-effect.d.ts +0 -2
- package/schematics/store/entity-async/mocks/example-effect.d.ts.map +0 -1
- package/schematics/store/entity-async/mocks/example-effect.js +0 -72
- package/schematics/store/entity-async/mocks/example-effect.js.map +0 -1
- package/schematics/store/entity-async/mocks/example-reducer-spec.d.ts +0 -2
- package/schematics/store/entity-async/mocks/example-reducer-spec.d.ts.map +0 -1
- package/schematics/store/entity-async/mocks/example-reducer-spec.js +0 -127
- package/schematics/store/entity-async/mocks/example-reducer-spec.js.map +0 -1
- package/schematics/store/entity-async/mocks/example-reducer.d.ts +0 -2
- package/schematics/store/entity-async/mocks/example-reducer.d.ts.map +0 -1
- package/schematics/store/entity-async/mocks/example-reducer.js +0 -69
- package/schematics/store/entity-async/mocks/example-reducer.js.map +0 -1
- package/schematics/store/entity-async/mocks/example-selectors-spec.d.ts +0 -2
- package/schematics/store/entity-async/mocks/example-selectors-spec.d.ts.map +0 -1
- package/schematics/store/entity-async/mocks/example-selectors-spec.js +0 -16
- package/schematics/store/entity-async/mocks/example-selectors-spec.js.map +0 -1
- package/schematics/store/entity-async/mocks/example-selectors.d.ts +0 -2
- package/schematics/store/entity-async/mocks/example-selectors.d.ts.map +0 -1
- package/schematics/store/entity-async/mocks/example-selectors.js +0 -28
- package/schematics/store/entity-async/mocks/example-selectors.js.map +0 -1
- package/schematics/store/entity-async/mocks/example-state.d.ts +0 -2
- package/schematics/store/entity-async/mocks/example-state.d.ts.map +0 -1
- package/schematics/store/entity-async/mocks/example-state.js +0 -39
- package/schematics/store/entity-async/mocks/example-state.js.map +0 -1
- package/schematics/store/entity-async/mocks/example-sync.d.ts +0 -2
- package/schematics/store/entity-async/mocks/example-sync.d.ts.map +0 -1
- package/schematics/store/entity-async/mocks/example-sync.js +0 -29
- package/schematics/store/entity-async/mocks/example-sync.js.map +0 -1
- package/schematics/store/entity-sync/mocks/example-actions.d.ts +0 -2
- package/schematics/store/entity-sync/mocks/example-actions.d.ts.map +0 -1
- package/schematics/store/entity-sync/mocks/example-actions.js +0 -56
- package/schematics/store/entity-sync/mocks/example-actions.js.map +0 -1
- package/schematics/store/entity-sync/mocks/example-reducer-spec.d.ts +0 -2
- package/schematics/store/entity-sync/mocks/example-reducer-spec.d.ts.map +0 -1
- package/schematics/store/entity-sync/mocks/example-reducer-spec.js +0 -85
- package/schematics/store/entity-sync/mocks/example-reducer-spec.js.map +0 -1
- package/schematics/store/entity-sync/mocks/example-reducer.d.ts +0 -2
- package/schematics/store/entity-sync/mocks/example-reducer.d.ts.map +0 -1
- package/schematics/store/entity-sync/mocks/example-reducer.js +0 -51
- package/schematics/store/entity-sync/mocks/example-reducer.js.map +0 -1
- package/schematics/store/entity-sync/mocks/example-selectors-spec.d.ts +0 -2
- package/schematics/store/entity-sync/mocks/example-selectors-spec.d.ts.map +0 -1
- package/schematics/store/entity-sync/mocks/example-selectors-spec.js +0 -10
- package/schematics/store/entity-sync/mocks/example-selectors-spec.js.map +0 -1
- package/schematics/store/entity-sync/mocks/example-selectors.d.ts +0 -2
- package/schematics/store/entity-sync/mocks/example-selectors.d.ts.map +0 -1
- package/schematics/store/entity-sync/mocks/example-selectors.js +0 -25
- package/schematics/store/entity-sync/mocks/example-selectors.js.map +0 -1
- package/schematics/store/entity-sync/mocks/example-state.d.ts +0 -2
- package/schematics/store/entity-sync/mocks/example-state.d.ts.map +0 -1
- package/schematics/store/entity-sync/mocks/example-state.js +0 -37
- package/schematics/store/entity-sync/mocks/example-state.js.map +0 -1
- package/schematics/store/simple-async/mocks/example-actions.d.ts +0 -2
- package/schematics/store/simple-async/mocks/example-actions.d.ts.map +0 -1
- package/schematics/store/simple-async/mocks/example-actions.js +0 -56
- package/schematics/store/simple-async/mocks/example-actions.js.map +0 -1
- package/schematics/store/simple-async/mocks/example-effect-spec.d.ts +0 -2
- package/schematics/store/simple-async/mocks/example-effect-spec.d.ts.map +0 -1
- package/schematics/store/simple-async/mocks/example-effect-spec.js +0 -45
- package/schematics/store/simple-async/mocks/example-effect-spec.js.map +0 -1
- package/schematics/store/simple-async/mocks/example-effect.d.ts +0 -2
- package/schematics/store/simple-async/mocks/example-effect.d.ts.map +0 -1
- package/schematics/store/simple-async/mocks/example-effect.js +0 -54
- package/schematics/store/simple-async/mocks/example-effect.js.map +0 -1
- package/schematics/store/simple-async/mocks/example-reducer-spec.d.ts +0 -2
- package/schematics/store/simple-async/mocks/example-reducer-spec.d.ts.map +0 -1
- package/schematics/store/simple-async/mocks/example-reducer-spec.js +0 -58
- package/schematics/store/simple-async/mocks/example-reducer-spec.js.map +0 -1
- package/schematics/store/simple-async/mocks/example-reducer.d.ts +0 -2
- package/schematics/store/simple-async/mocks/example-reducer.d.ts.map +0 -1
- package/schematics/store/simple-async/mocks/example-reducer.js +0 -46
- package/schematics/store/simple-async/mocks/example-reducer.js.map +0 -1
- package/schematics/store/simple-async/mocks/example-state.d.ts +0 -2
- package/schematics/store/simple-async/mocks/example-state.d.ts.map +0 -1
- package/schematics/store/simple-async/mocks/example-state.js +0 -39
- package/schematics/store/simple-async/mocks/example-state.js.map +0 -1
- package/schematics/store/simple-async/mocks/example-sync.d.ts +0 -2
- package/schematics/store/simple-async/mocks/example-sync.d.ts.map +0 -1
- package/schematics/store/simple-async/mocks/example-sync.js +0 -22
- package/schematics/store/simple-async/mocks/example-sync.js.map +0 -1
- package/schematics/store/simple-sync/mocks/example-actions.d.ts +0 -2
- package/schematics/store/simple-sync/mocks/example-actions.d.ts.map +0 -1
- package/schematics/store/simple-sync/mocks/example-actions.js +0 -28
- package/schematics/store/simple-sync/mocks/example-actions.js.map +0 -1
- package/schematics/store/simple-sync/mocks/example-reducer-spec.d.ts +0 -2
- package/schematics/store/simple-sync/mocks/example-reducer-spec.d.ts.map +0 -1
- package/schematics/store/simple-sync/mocks/example-reducer-spec.js +0 -38
- package/schematics/store/simple-sync/mocks/example-reducer-spec.js.map +0 -1
- package/schematics/store/simple-sync/mocks/example-reducer.d.ts +0 -2
- package/schematics/store/simple-sync/mocks/example-reducer.d.ts.map +0 -1
- package/schematics/store/simple-sync/mocks/example-reducer.js +0 -32
- package/schematics/store/simple-sync/mocks/example-reducer.js.map +0 -1
- package/schematics/store/simple-sync/mocks/example-state.d.ts +0 -2
- package/schematics/store/simple-sync/mocks/example-state.d.ts.map +0 -1
- package/schematics/store/simple-sync/mocks/example-state.js +0 -22
- package/schematics/store/simple-sync/mocks/example-state.js.map +0 -1
- package/store/storage/index.d.ts +0 -2
- package/store/storage/index.d.ts.map +0 -1
- package/store/storage/index.js +0 -2
- package/store/storage/index.js.map +0 -1
- package/store/storage/store-sync.d.ts +0 -113
- package/store/storage/store-sync.d.ts.map +0 -1
- package/store/storage/store-sync.js +0 -111
- package/store/storage/store-sync.js.map +0 -1
- /package/{schematics/application → builders/run-script}/schema.js +0 -0
|
@@ -1,252 +0,0 @@
|
|
|
1
|
-
trigger:
|
|
2
|
-
batch: true
|
|
3
|
-
branches:
|
|
4
|
-
include:
|
|
5
|
-
- release/*
|
|
6
|
-
|
|
7
|
-
pr:
|
|
8
|
-
branches:
|
|
9
|
-
include:
|
|
10
|
-
- release/*
|
|
11
|
-
|
|
12
|
-
pool:
|
|
13
|
-
vmImage: 'ubuntu-latest'
|
|
14
|
-
|
|
15
|
-
variables:
|
|
16
|
-
- name: YARN_CACHE_FOLDER
|
|
17
|
-
value: $(Pipeline.Workspace)/.cache/yarn
|
|
18
|
-
- name: PACKAGE_NAME
|
|
19
|
-
value: "<%= projectName %>" # Name of the created blueprint, could be different from the project name
|
|
20
|
-
- group: "variables for <%= projectName %>"
|
|
21
|
-
- name: DS_PRIVATE_KEY
|
|
22
|
-
value: "private-DS_KEY_<code>_CICD_<env>_01.pem" # TODO: replace with airline specific private key file
|
|
23
|
-
- name: DS_KEY_ID
|
|
24
|
-
value: "DS_KEY<code>_CICD_<env>_01" # TODO: replace with airline specific private key ID
|
|
25
|
-
- name: DS_URL
|
|
26
|
-
value: "<Deployment Service URL>"
|
|
27
|
-
- name: DS_DEPLOY_URL
|
|
28
|
-
value: "<Deploy URL>"
|
|
29
|
-
- name: AIRLINE_CODE
|
|
30
|
-
value: "<%= projectName %>"
|
|
31
|
-
- name: APPLICATION_NAME
|
|
32
|
-
value: "demo-app"
|
|
33
|
-
- name: DEPLOY_ENV
|
|
34
|
-
value: "DEV"
|
|
35
|
-
- name: IS_PR
|
|
36
|
-
value: 'true'
|
|
37
|
-
- name: YARN_CACHE_FOLDER
|
|
38
|
-
value: $(Pipeline.Workspace)/.cache/yarn
|
|
39
|
-
|
|
40
|
-
stages:
|
|
41
|
-
- stage: versioning
|
|
42
|
-
jobs:
|
|
43
|
-
- job: versioning
|
|
44
|
-
steps:
|
|
45
|
-
- template: azure/templates/steps/versioning.yml
|
|
46
|
-
|
|
47
|
-
- stage: build
|
|
48
|
-
dependsOn: [versioning]
|
|
49
|
-
jobs:
|
|
50
|
-
|
|
51
|
-
- job: build
|
|
52
|
-
steps:
|
|
53
|
-
|
|
54
|
-
- template: azure/templates/steps/setup.yml
|
|
55
|
-
|
|
56
|
-
- script: yarn version --new-version $(Build.BuildNumber) --no-git-tag-version
|
|
57
|
-
displayName: 'Set version'
|
|
58
|
-
|
|
59
|
-
- script: yarn build:prod
|
|
60
|
-
displayName: 'Build production'
|
|
61
|
-
|
|
62
|
-
- script: yarn cms-adapters:metadata
|
|
63
|
-
displayName: 'Extract metadata'
|
|
64
|
-
|
|
65
|
-
- template: azure/templates/steps/publish.yml
|
|
66
|
-
|
|
67
|
-
- script: yarn pack -f package.tgz
|
|
68
|
-
displayName: 'Package application'
|
|
69
|
-
|
|
70
|
-
- publish: package.tgz
|
|
71
|
-
condition: succeeded()
|
|
72
|
-
artifact: packagedApp
|
|
73
|
-
<% if (enableStorybook) { %>
|
|
74
|
-
- stage: Storybook
|
|
75
|
-
dependsOn: []
|
|
76
|
-
jobs:
|
|
77
|
-
- job: storybook
|
|
78
|
-
steps:
|
|
79
|
-
- template: azure/templates/steps/setup.yml
|
|
80
|
-
|
|
81
|
-
- script: yarn cms-adapters:metadata
|
|
82
|
-
displayName: 'Extract metadata'
|
|
83
|
-
|
|
84
|
-
- script: yarn storybook
|
|
85
|
-
displayName: 'Build Storybook'
|
|
86
|
-
|
|
87
|
-
- task: PublishBuildArtifacts@1
|
|
88
|
-
displayName: 'Publish Storybook static files'
|
|
89
|
-
condition: succeeded()
|
|
90
|
-
inputs:
|
|
91
|
-
pathToPublish: $(System.DefaultWorkingDirectory)/storybook-static
|
|
92
|
-
artifactName: storybook
|
|
93
|
-
<% } %>
|
|
94
|
-
- stage: Test
|
|
95
|
-
dependsOn: []
|
|
96
|
-
jobs:
|
|
97
|
-
- job: test
|
|
98
|
-
steps:
|
|
99
|
-
- template: azure/templates/steps/setup.yml
|
|
100
|
-
|
|
101
|
-
- script: yarn test
|
|
102
|
-
displayName: 'Unit Test'
|
|
103
|
-
|
|
104
|
-
- task: PublishTestResults@2
|
|
105
|
-
displayName: 'Publish Test Results'
|
|
106
|
-
inputs:
|
|
107
|
-
testResultsFiles: '**/*.xml'
|
|
108
|
-
searchFolder: '$(System.DefaultWorkingDirectory)/dist-test'
|
|
109
|
-
failTaskOnFailedTests: true
|
|
110
|
-
testRunTitle: '<%= projectName %> - Unit Tests'
|
|
111
|
-
condition: succeededOrFailed()
|
|
112
|
-
|
|
113
|
-
- stage: RepositoryUpdate
|
|
114
|
-
dependsOn: [build, Test, Storybook]
|
|
115
|
-
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
|
|
116
|
-
jobs:
|
|
117
|
-
- job: RepositoryReporting
|
|
118
|
-
steps:
|
|
119
|
-
- checkout: self
|
|
120
|
-
persistCredentials: true
|
|
121
|
-
clean: false
|
|
122
|
-
|
|
123
|
-
- template: azure/templates/steps/set-version-tag.yml
|
|
124
|
-
parameters:
|
|
125
|
-
semVer: $(Build.BuildNumber)
|
|
126
|
-
|
|
127
|
-
- stage: Deploy
|
|
128
|
-
dependsOn: [build, Test]
|
|
129
|
-
condition: succeeded()
|
|
130
|
-
jobs:
|
|
131
|
-
- job: retrieveArtifact
|
|
132
|
-
steps:
|
|
133
|
-
- checkout: none
|
|
134
|
-
|
|
135
|
-
- task: DownloadPipelineArtifact@2
|
|
136
|
-
inputs:
|
|
137
|
-
source: current
|
|
138
|
-
artifact: 'packagedApp'
|
|
139
|
-
path: '$(System.DefaultWorkingDirectory)'
|
|
140
|
-
|
|
141
|
-
- script: ls -la $(System.DefaultWorkingDirectory)
|
|
142
|
-
displayName: 'check content'
|
|
143
|
-
|
|
144
|
-
- script: echo "##vso[task.setvariable variable=IS_PR]false"
|
|
145
|
-
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
|
|
146
|
-
displayName: 'check if not a pull request'
|
|
147
|
-
|
|
148
|
-
- task: deployment-service-plugin-appdeploy@5
|
|
149
|
-
name: 'deploymentservice'
|
|
150
|
-
displayName: 'Deploy Application'
|
|
151
|
-
inputs:
|
|
152
|
-
clientSecret: '$(DS_PDT_CLIENT_SECRET)'
|
|
153
|
-
secureFile: '$(DS_PRIVATE_KEY)'
|
|
154
|
-
clientID: '$(DS_PDT_CLIENT_ID)'
|
|
155
|
-
dsKEYID: '$(DS_KEY_ID)'
|
|
156
|
-
environment: '$(DEPLOY_ENV)'
|
|
157
|
-
blueprintName: '$(PACKAGE_NAME)'
|
|
158
|
-
airlineCode: '$(AIRLINE_CODE)'
|
|
159
|
-
applicationName: '$(APPLICATION_NAME)'
|
|
160
|
-
deployUrl: '$(DS_DEPLOY_URL)'
|
|
161
|
-
sourcePath: '$(System.DefaultWorkingDirectory)/package.tgz'
|
|
162
|
-
isdeployPR: $(IS_PR)
|
|
163
|
-
isactivateRelease: true
|
|
164
|
-
contentSourcePath: 'NA'
|
|
165
|
-
env:
|
|
166
|
-
RELEASE_REQUESTEDFOR: $(Build.RequestedFor)
|
|
167
|
-
|
|
168
|
-
- job: commentPr
|
|
169
|
-
dependsOn: [retrieveArtifact]
|
|
170
|
-
condition: and(succeeded(), eq(variables['Build.Reason'], 'PullRequest'))
|
|
171
|
-
variables:
|
|
172
|
-
deploymentURL: $[ dependencies.retrieveArtifact.outputs['deploymentservice.deploymentURL'] ]
|
|
173
|
-
steps:
|
|
174
|
-
- checkout: self
|
|
175
|
-
clean: false
|
|
176
|
-
persistCredentials: true
|
|
177
|
-
|
|
178
|
-
- template: azure/templates/steps/setup.yml
|
|
179
|
-
|
|
180
|
-
- script: |
|
|
181
|
-
yarn comment-pr "[App deployed]($(deploymentURL))" -s Closed -I app-link -m Replace -T $(System.AccessToken)
|
|
182
|
-
displayName: Comment PR
|
|
183
|
-
continueOnError: true
|
|
184
|
-
|
|
185
|
-
- stage: E2eSanity
|
|
186
|
-
dependsOn: [Deploy]
|
|
187
|
-
pool:
|
|
188
|
-
vmImage: 'ubuntu-20.04'
|
|
189
|
-
condition: succeeded()
|
|
190
|
-
jobs:
|
|
191
|
-
- job: Test
|
|
192
|
-
steps:
|
|
193
|
-
- checkout: self
|
|
194
|
-
clean: false
|
|
195
|
-
persistCredentials: true
|
|
196
|
-
|
|
197
|
-
- template: azure/templates/steps/setup.yml
|
|
198
|
-
|
|
199
|
-
- script: |
|
|
200
|
-
yarn playwright install
|
|
201
|
-
yarn playwright install-deps
|
|
202
|
-
displayName: 'Prepare playwright'
|
|
203
|
-
|
|
204
|
-
- script: |
|
|
205
|
-
appUrl=$(yarn --silent node azure/scripts/e2e/compute-deployment-service-url.js --isPR "$(IS_PR)" --buildNumber $(Build.BuildNumber) --deployUrl $(DS_DEPLOY_URL) --airlineCode $(AIRLINE_CODE) --appName $(APPLICATION_NAME))
|
|
206
|
-
echo "##vso[task.setvariable variable=appUrl;isOutput=true]$appUrl"
|
|
207
|
-
name: targetUrl
|
|
208
|
-
displayName: 'Compute target URL'
|
|
209
|
-
|
|
210
|
-
- script: |
|
|
211
|
-
yarn run test:playwright:sanity
|
|
212
|
-
env:
|
|
213
|
-
PLAYWRIGHT_TARGET_URL: "$(targetUrl.appUrl)"
|
|
214
|
-
displayName: 'Run e2e scenarios'
|
|
215
|
-
name: runTests
|
|
216
|
-
continueOnError: true
|
|
217
|
-
|
|
218
|
-
- template: azure/templates/steps/allure.yml
|
|
219
|
-
|
|
220
|
-
- publish: '$(System.DefaultWorkingDirectory)/playwright-reports/html'
|
|
221
|
-
condition: succeededOrFailed()
|
|
222
|
-
artifact: 'html-report'
|
|
223
|
-
|
|
224
|
-
- script: |
|
|
225
|
-
echo "##vso[task.logissue type=error;]Sanity e2e failed. Please check the report to identify the reasons ( published items > allure-report)."
|
|
226
|
-
condition: eq(variables['Agent.JobStatus'], 'SucceededWithIssues')
|
|
227
|
-
|
|
228
|
-
- task: PublishTestResults@2
|
|
229
|
-
condition: succeededOrFailed()
|
|
230
|
-
inputs:
|
|
231
|
-
testResultsFiles: 'reporter.xml'
|
|
232
|
-
testRunTitle: '<%= projectName %> - sanity e2e'
|
|
233
|
-
searchFolder: '$(System.DefaultWorkingDirectory)/playwright-reports/junit'
|
|
234
|
-
|
|
235
|
-
- script: |
|
|
236
|
-
cd $(System.DefaultWorkingDirectory)/playwright-reports
|
|
237
|
-
mkdir to-attach
|
|
238
|
-
zip -r to-attach/allure-report.zip allure/*
|
|
239
|
-
zip -r to-attach/html.zip html/*
|
|
240
|
-
cd $(System.DefaultWorkingDirectory)
|
|
241
|
-
organization=$(basename "$(System.CollectionUri)")
|
|
242
|
-
yarn node azure/scripts/e2e/attach-files-to-test-results.js --organization ${organization} --project $(System.TeamProject) --pat $(System.AccessToken) --runName '<%= projectName %> - sanity e2e' --reportsFolder '$(System.DefaultWorkingDirectory)/playwright-reports/to-attach'
|
|
243
|
-
displayName: Zip and attach files to tests
|
|
244
|
-
condition: succeededOrFailed()
|
|
245
|
-
|
|
246
|
-
- stage: Cascading
|
|
247
|
-
condition: ne(variables['Build.Reason'], 'PullRequest')
|
|
248
|
-
dependsOn: [RepositoryUpdate]
|
|
249
|
-
jobs:
|
|
250
|
-
- job: cascading
|
|
251
|
-
steps:
|
|
252
|
-
- template: azure/templates/steps/cascading.yml
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Rule } from '@angular-devkit/schematics';
|
|
2
|
-
/**
|
|
3
|
-
* Display the list of available Otter modules
|
|
4
|
-
*
|
|
5
|
-
* @param keyword Keyword to search for Otter modules
|
|
6
|
-
* @param scopeWhitelist List of whitelisted scopes
|
|
7
|
-
* @param onlyCmsModules Display only the Otter modules with CMS administration
|
|
8
|
-
* @param onlyNotInstalledModules Display only the Otter modules that are not already installed
|
|
9
|
-
*/
|
|
10
|
-
export declare function displayModuleList(keyword: string, scopeWhitelist: string[] | readonly string[], onlyCmsModules?: boolean, onlyNotInstalledModules?: boolean): Rule;
|
|
11
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/rule-factories/module-list/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAGvD;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,GAAG,SAAS,MAAM,EAAE,EAAE,cAAc,UAAQ,EAAE,uBAAuB,UAAQ,GAAG,IAAI,CA8B9J"}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.displayModuleList = void 0;
|
|
4
|
-
const node_os_1 = require("node:os");
|
|
5
|
-
/**
|
|
6
|
-
* Display the list of available Otter modules
|
|
7
|
-
*
|
|
8
|
-
* @param keyword Keyword to search for Otter modules
|
|
9
|
-
* @param scopeWhitelist List of whitelisted scopes
|
|
10
|
-
* @param onlyCmsModules Display only the Otter modules with CMS administration
|
|
11
|
-
* @param onlyNotInstalledModules Display only the Otter modules that are not already installed
|
|
12
|
-
*/
|
|
13
|
-
function displayModuleList(keyword, scopeWhitelist, onlyCmsModules = false, onlyNotInstalledModules = false) {
|
|
14
|
-
return async (tree, context) => {
|
|
15
|
-
const { OTTER_KEYWORD_CMS } = await Promise.resolve().then(() => require('@o3r/schematics'));
|
|
16
|
-
const tagMap = { [OTTER_KEYWORD_CMS]: 'CMS enabler' };
|
|
17
|
-
const { getAvailableModulesWithLatestPackage, formatModuleDescription, getWorkspaceConfig, getPackageManagerExecutor } = await Promise.resolve().then(() => require('@o3r/schematics'));
|
|
18
|
-
const workspaceConfig = getWorkspaceConfig(tree);
|
|
19
|
-
try {
|
|
20
|
-
const modules = await getAvailableModulesWithLatestPackage(keyword, {
|
|
21
|
-
scopeWhitelist,
|
|
22
|
-
onlyNotInstalled: onlyNotInstalledModules,
|
|
23
|
-
logger: context.logger,
|
|
24
|
-
workspaceConfig
|
|
25
|
-
});
|
|
26
|
-
const message = modules
|
|
27
|
-
.filter((mod) => !onlyCmsModules || mod.keywords?.includes(OTTER_KEYWORD_CMS))
|
|
28
|
-
.map((mod) => formatModuleDescription(mod, getPackageManagerExecutor(workspaceConfig), tagMap))
|
|
29
|
-
.filter((msg) => !!msg)
|
|
30
|
-
.join(node_os_1.EOL + node_os_1.EOL);
|
|
31
|
-
if (message) {
|
|
32
|
-
context.logger.info('The following modules are now available for your application, add them according to your needs:');
|
|
33
|
-
// eslint-disable-next-line @typescript-eslint/restrict-plus-operands
|
|
34
|
-
context.logger.info(node_os_1.EOL + message);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
catch (e) {
|
|
38
|
-
context.logger.debug('Error during the module discovery', e);
|
|
39
|
-
context.logger.error('List of Otter modules unavailable');
|
|
40
|
-
}
|
|
41
|
-
return () => tree;
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
exports.displayModuleList = displayModuleList;
|
|
45
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../schematics/rule-factories/module-list/index.ts"],"names":[],"mappings":";;;AACA,qCAA8B;AAE9B;;;;;;;GAOG;AACH,SAAgB,iBAAiB,CAAC,OAAe,EAAE,cAA4C,EAAE,cAAc,GAAG,KAAK,EAAE,uBAAuB,GAAG,KAAK;IACtJ,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;QAC7B,MAAM,EAAE,iBAAiB,EAAE,GAAG,2CAAa,iBAAiB,EAAC,CAAC;QAC9D,MAAM,MAAM,GAA2B,EAAE,CAAC,iBAAiB,CAAC,EAAE,aAAa,EAAE,CAAC;QAE9E,MAAM,EAAE,oCAAoC,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,GAAG,2CAAa,iBAAiB,EAAC,CAAC;QACzJ,MAAM,eAAe,GAAG,kBAAkB,CAAC,IAAI,CAAC,CAAC;QACjD,IAAI;YACF,MAAM,OAAO,GAAG,MAAM,oCAAoC,CAAC,OAAO,EAAE;gBAClE,cAAc;gBACd,gBAAgB,EAAE,uBAAuB;gBACzC,MAAM,EAAE,OAAO,CAAC,MAAM;gBACtB,eAAe;aAChB,CAAC,CAAC;YACH,MAAM,OAAO,GAAG,OAAO;iBACpB,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,cAAc,IAAI,GAAG,CAAC,QAAQ,EAAE,QAAQ,CAAC,iBAAiB,CAAC,CAAC;iBAC7E,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,uBAAuB,CAAC,GAAG,EAAE,yBAAyB,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC,CAAC;iBAC9F,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC;iBACtB,IAAI,CAAC,aAAG,GAAG,aAAG,CAAC,CAAC;YACnB,IAAI,OAAO,EAAE;gBACX,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,iGAAiG,CAAC,CAAC;gBACvH,qEAAqE;gBACrE,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,aAAG,GAAG,OAAO,CAAC,CAAC;aACpC;SACF;QAAC,OAAO,CAAM,EAAE;YACf,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,mCAAmC,EAAE,CAAC,CAAC,CAAC;YAC7D,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,mCAAmC,CAAC,CAAC;SAC3D;QACD,OAAO,GAAG,EAAE,CAAC,IAAI,CAAC;IACpB,CAAC,CAAC;AACJ,CAAC;AA9BD,8CA8BC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { Rule, SchematicContext, Tree } from '@angular-devkit/schematics';
|
|
2
|
-
import { WorkspaceLayout } from '@o3r/schematics';
|
|
3
|
-
/**
|
|
4
|
-
* Update root package.json to include workspaces
|
|
5
|
-
* if ng context Update angular.json to include the workspaces definitions into schematics default params
|
|
6
|
-
* if nx context update nx.json workspacelayout
|
|
7
|
-
* @param directories workspaces directories to include in package.json
|
|
8
|
-
*/
|
|
9
|
-
export declare function addWorkspacesToProject(directories?: WorkspaceLayout): Rule;
|
|
10
|
-
/**
|
|
11
|
-
* Remove wrongly generated scripts by ng new for root package.json in case of monorepo
|
|
12
|
-
* @param tree
|
|
13
|
-
* @param _context
|
|
14
|
-
*/
|
|
15
|
-
export declare function filterPackageJsonScripts(tree: Tree, _context: SchematicContext): import("@angular-devkit/schematics/src/tree/interface").Tree;
|
|
16
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/rule-factories/monorepo/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAG/E,OAAO,EAAmE,eAAe,EAAuB,MAAM,iBAAiB,CAAC;AAExI;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,WAAW,GAAE,eAAsC,GAAG,IAAI,CAqChG;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,gBAAgB,gEAoB9E"}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.filterPackageJsonScripts = exports.addWorkspacesToProject = void 0;
|
|
4
|
-
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
|
-
const schematics_2 = require("@angular-devkit/schematics");
|
|
6
|
-
const schematics_3 = require("@o3r/schematics");
|
|
7
|
-
/**
|
|
8
|
-
* Update root package.json to include workspaces
|
|
9
|
-
* if ng context Update angular.json to include the workspaces definitions into schematics default params
|
|
10
|
-
* if nx context update nx.json workspacelayout
|
|
11
|
-
* @param directories workspaces directories to include in package.json
|
|
12
|
-
*/
|
|
13
|
-
function addWorkspacesToProject(directories = schematics_3.DEFAULT_ROOT_FOLDERS) {
|
|
14
|
-
const updatePackageJson = (tree, _context) => {
|
|
15
|
-
const rootPackageJsonPath = '/package.json';
|
|
16
|
-
if (!tree.exists(rootPackageJsonPath)) {
|
|
17
|
-
throw new schematics_2.SchematicsException('Root package.json does not exist');
|
|
18
|
-
}
|
|
19
|
-
const rootPackageJsonObject = tree.readJson(rootPackageJsonPath);
|
|
20
|
-
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
|
|
21
|
-
rootPackageJsonObject.workspaces = [...new Set(Object.values(directories).map(d => `${d}/*`).concat(rootPackageJsonObject.workspaces || []))];
|
|
22
|
-
tree.overwrite(rootPackageJsonPath, JSON.stringify(rootPackageJsonObject, null, 2));
|
|
23
|
-
return tree;
|
|
24
|
-
};
|
|
25
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
26
|
-
const updateAngularJson = (0, schematics_3.setupSchematicsDefaultParams)({ '*:*': directories });
|
|
27
|
-
const updateNxWorkspaceLayout = (tree, _context) => {
|
|
28
|
-
const nxJson = tree.readJson('/nx.json');
|
|
29
|
-
nxJson.workspaceLayout ||= {};
|
|
30
|
-
nxJson.workspaceLayout.libsDir = directories.libsDir;
|
|
31
|
-
nxJson.workspaceLayout.appsDir = directories.appsDir;
|
|
32
|
-
tree.overwrite('/nx.json', JSON.stringify(nxJson, null, 2));
|
|
33
|
-
return tree;
|
|
34
|
-
};
|
|
35
|
-
return (tree, _context) => {
|
|
36
|
-
return (0, schematics_1.chain)([
|
|
37
|
-
updatePackageJson,
|
|
38
|
-
(0, schematics_3.isNxContext)(tree) ? updateNxWorkspaceLayout : updateAngularJson
|
|
39
|
-
]);
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
exports.addWorkspacesToProject = addWorkspacesToProject;
|
|
43
|
-
/**
|
|
44
|
-
* Remove wrongly generated scripts by ng new for root package.json in case of monorepo
|
|
45
|
-
* @param tree
|
|
46
|
-
* @param _context
|
|
47
|
-
*/
|
|
48
|
-
function filterPackageJsonScripts(tree, _context) {
|
|
49
|
-
const rootPackageJsonPath = '/package.json';
|
|
50
|
-
if (!tree.exists(rootPackageJsonPath)) {
|
|
51
|
-
throw new schematics_2.SchematicsException('Root package.json does not exist');
|
|
52
|
-
}
|
|
53
|
-
const defaultScriptToRemove = {
|
|
54
|
-
build: 'ng build',
|
|
55
|
-
test: 'ng test',
|
|
56
|
-
start: 'ng serve',
|
|
57
|
-
watch: 'ng build --watch --configuration development'
|
|
58
|
-
};
|
|
59
|
-
const rootPackageJsonObject = tree.readJson(rootPackageJsonPath);
|
|
60
|
-
rootPackageJsonObject.scripts = Object.fromEntries(Object.entries(rootPackageJsonObject.scripts || {}).filter(([scriptName, scriptValue]) => scriptValue !== defaultScriptToRemove[scriptName]));
|
|
61
|
-
tree.overwrite(rootPackageJsonPath, JSON.stringify(rootPackageJsonObject, null, 2));
|
|
62
|
-
return tree;
|
|
63
|
-
}
|
|
64
|
-
exports.filterPackageJsonScripts = filterPackageJsonScripts;
|
|
65
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../schematics/rule-factories/monorepo/index.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Rule } from '@angular-devkit/schematics';
|
|
2
|
-
/**
|
|
3
|
-
* Add renovate configuration to Otter application
|
|
4
|
-
*
|
|
5
|
-
* @param rootPath @see RuleFactory.rootPath
|
|
6
|
-
*/
|
|
7
|
-
export declare function generateRenovateConfig(rootPath: string): Rule;
|
|
8
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/rule-factories/renovate/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwD,IAAI,EAAyC,MAAM,4BAA4B,CAAC;AAG/I;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAe7D"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.generateRenovateConfig = void 0;
|
|
4
|
-
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
|
-
const schematics_2 = require("@o3r/schematics");
|
|
6
|
-
/**
|
|
7
|
-
* Add renovate configuration to Otter application
|
|
8
|
-
*
|
|
9
|
-
* @param rootPath @see RuleFactory.rootPath
|
|
10
|
-
*/
|
|
11
|
-
function generateRenovateConfig(rootPath) {
|
|
12
|
-
return (tree, context) => {
|
|
13
|
-
if (tree.exists('.renovaterc.json')) {
|
|
14
|
-
return tree;
|
|
15
|
-
}
|
|
16
|
-
const templateSource = (0, schematics_1.apply)((0, schematics_1.url)((0, schematics_2.getTemplateFolder)(rootPath, __dirname)), [
|
|
17
|
-
(0, schematics_1.template)({
|
|
18
|
-
dot: '.'
|
|
19
|
-
}),
|
|
20
|
-
(0, schematics_1.renameTemplateFiles)()
|
|
21
|
-
]);
|
|
22
|
-
const rule = (0, schematics_1.mergeWith)(templateSource, schematics_1.MergeStrategy.Overwrite);
|
|
23
|
-
return rule(tree, context);
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
exports.generateRenovateConfig = generateRenovateConfig;
|
|
27
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../schematics/rule-factories/renovate/index.ts"],"names":[],"mappings":";;;AAAA,2DAA+I;AAC/I,gDAAoD;AAEpD;;;;GAIG;AACH,SAAgB,sBAAsB,CAAC,QAAgB;IACrD,OAAO,CAAC,IAAU,EAAE,OAAyB,EAAE,EAAE;QAC/C,IAAI,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAAC,EAAE;YACnC,OAAO,IAAI,CAAC;SACb;QACD,MAAM,cAAc,GAAG,IAAA,kBAAK,EAAC,IAAA,gBAAG,EAAC,IAAA,8BAAiB,EAAC,QAAQ,EAAE,SAAS,CAAC,CAAC,EAAE;YACxE,IAAA,qBAAQ,EAAC;gBACP,GAAG,EAAE,GAAG;aACT,CAAC;YACF,IAAA,gCAAmB,GAAE;SACtB,CAAC,CAAC;QAEH,MAAM,IAAI,GAAG,IAAA,sBAAS,EAAC,cAAc,EAAE,0BAAa,CAAC,SAAS,CAAC,CAAC;QAChE,OAAO,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC7B,CAAC,CAAC;AACJ,CAAC;AAfD,wDAeC"}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
|
3
|
-
"extends": [
|
|
4
|
-
"config:base",
|
|
5
|
-
"group:allNonMajor",
|
|
6
|
-
"group:monorepos",
|
|
7
|
-
"group:recommended",
|
|
8
|
-
"group:test"
|
|
9
|
-
],
|
|
10
|
-
"prConcurrentLimit": 0,
|
|
11
|
-
"prHourlyLimit": 0,
|
|
12
|
-
"baseBranches": [
|
|
13
|
-
"master"
|
|
14
|
-
],
|
|
15
|
-
"platform": "azure",
|
|
16
|
-
"enabledManagers": [
|
|
17
|
-
"npm"
|
|
18
|
-
],
|
|
19
|
-
"npm": {
|
|
20
|
-
"stabilityDays": 0
|
|
21
|
-
},
|
|
22
|
-
"labels": [
|
|
23
|
-
"upgrade"
|
|
24
|
-
],
|
|
25
|
-
"updateInternalDeps": true,
|
|
26
|
-
"automerge": true,
|
|
27
|
-
"platformAutomerge": true,
|
|
28
|
-
"packageRules": [
|
|
29
|
-
{
|
|
30
|
-
"matchPackageNames": [
|
|
31
|
-
"@o3r/core"
|
|
32
|
-
],
|
|
33
|
-
"postUpgradeTasks": {
|
|
34
|
-
"commands": [
|
|
35
|
-
"npm install",
|
|
36
|
-
"npm run ng update {{{depName}}} --from={{{currentVersion}}} --to={{{newVersion}}} --migrate-only --allow-dirty --force"
|
|
37
|
-
],
|
|
38
|
-
"fileFilters": [
|
|
39
|
-
"**"
|
|
40
|
-
],
|
|
41
|
-
"executionMode": "branch"
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"matchPackagePrefixes": [
|
|
46
|
-
"@otter",
|
|
47
|
-
"@o3r",
|
|
48
|
-
"@ama-sdk",
|
|
49
|
-
"@ama-terasu"
|
|
50
|
-
],
|
|
51
|
-
"groupName": "Otter dependencies",
|
|
52
|
-
"groupSlug": "otter-dependencies"
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"matchPackagePatterns": [
|
|
56
|
-
"*"
|
|
57
|
-
],
|
|
58
|
-
"rangeStrategy": "replace"
|
|
59
|
-
}
|
|
60
|
-
]
|
|
61
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Rule } from '@angular-devkit/schematics';
|
|
2
|
-
import { NgGenerateSdkSchema } from './schema';
|
|
3
|
-
/**
|
|
4
|
-
* Add an Otter compatible SDK to a monorepo
|
|
5
|
-
* @param options Schematic options
|
|
6
|
-
*/
|
|
7
|
-
export declare function generateSdk(options: NgGenerateSdkSchema): Rule;
|
|
8
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/sdk/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8F,IAAI,EAAkD,MAAM,4BAA4B,CAAC;AAG9L,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAS/C;;;GAGG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,mBAAmB,GAAG,IAAI,CAgD9D"}
|
package/schematics/sdk/index.js
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.generateSdk = void 0;
|
|
4
|
-
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
|
-
const path = require("node:path");
|
|
6
|
-
const schematics_2 = require("@o3r/schematics");
|
|
7
|
-
const rules_ng_1 = require("./rules/rules.ng");
|
|
8
|
-
const rules_nx_1 = require("./rules/rules.nx");
|
|
9
|
-
const update_ts_paths_rule_1 = require("./rules/update-ts-paths.rule");
|
|
10
|
-
const clean_standalone_rule_1 = require("./rules/clean-standalone.rule");
|
|
11
|
-
const tasks_1 = require("@angular-devkit/schematics/tasks");
|
|
12
|
-
/**
|
|
13
|
-
* Add an Otter compatible SDK to a monorepo
|
|
14
|
-
* @param options Schematic options
|
|
15
|
-
*/
|
|
16
|
-
function generateSdk(options) {
|
|
17
|
-
const cleanName = schematics_1.strings.dasherize(options.name);
|
|
18
|
-
return (tree, context) => {
|
|
19
|
-
const isNx = (0, schematics_2.isNxContext)(tree);
|
|
20
|
-
const workspaceConfig = (0, schematics_2.getWorkspaceConfig)(tree);
|
|
21
|
-
if (!workspaceConfig) {
|
|
22
|
-
throw new Error('No workspace configuration file found');
|
|
23
|
-
}
|
|
24
|
-
const defaultRoot = (0, schematics_2.getPackagesBaseRootFolder)(tree, context, workspaceConfig, 'library');
|
|
25
|
-
const scope = tree.exists('/package.json') && tree.readJson('/package.json').name?.split('/')?.[0]?.replace(/^@/, '') || 'sdk';
|
|
26
|
-
/** Path to the folder where generate the new SDK */
|
|
27
|
-
const targetPath = path.posix.join(options.path || defaultRoot, cleanName);
|
|
28
|
-
const addModuleSpecificFiles = () => (0, schematics_1.mergeWith)((0, schematics_1.apply)((0, schematics_1.url)('./templates'), [
|
|
29
|
-
(0, schematics_1.template)({
|
|
30
|
-
...options,
|
|
31
|
-
rootRelativePath: path.relative(targetPath, tree.root.path.replace(/^\//, './'))
|
|
32
|
-
}),
|
|
33
|
-
(0, schematics_1.move)(targetPath),
|
|
34
|
-
(0, schematics_1.renameTemplateFiles)()
|
|
35
|
-
]), schematics_1.MergeStrategy.Overwrite);
|
|
36
|
-
return (0, schematics_1.chain)([
|
|
37
|
-
(0, schematics_1.externalSchematic)('@ama-sdk/schematics', 'typescript-shell', {
|
|
38
|
-
...options,
|
|
39
|
-
package: cleanName,
|
|
40
|
-
name: scope,
|
|
41
|
-
directory: targetPath,
|
|
42
|
-
packageManager: (0, schematics_2.getPackageManager)({ workspaceConfig }),
|
|
43
|
-
skipInstall: !!options.specPath || options.skipInstall
|
|
44
|
-
}),
|
|
45
|
-
isNx ? (0, rules_nx_1.nxRegisterProjectTasks)(options, targetPath, cleanName) : (0, rules_ng_1.ngRegisterProjectTasks)(options, targetPath, cleanName),
|
|
46
|
-
(0, update_ts_paths_rule_1.updateTsConfig)(targetPath, cleanName, scope),
|
|
47
|
-
(0, clean_standalone_rule_1.cleanStandaloneFiles)(targetPath),
|
|
48
|
-
addModuleSpecificFiles(),
|
|
49
|
-
options.specPath ? (_host, c) => {
|
|
50
|
-
const installTaskId = c.addTask(new tasks_1.NodePackageInstallTask());
|
|
51
|
-
c.addTask(new tasks_1.RunSchematicTask('@ama-sdk/schematics', 'typescript-core', {
|
|
52
|
-
...options,
|
|
53
|
-
specPath: options.specPath,
|
|
54
|
-
directory: targetPath,
|
|
55
|
-
packageManager: (0, schematics_2.getPackageManager)({ workspaceConfig })
|
|
56
|
-
}), [installTaskId]);
|
|
57
|
-
} : schematics_1.noop
|
|
58
|
-
])(tree, context);
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
exports.generateSdk = generateSdk;
|
|
62
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../schematics/sdk/index.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { Rule } from '@angular-devkit/schematics';
|
|
2
|
-
/**
|
|
3
|
-
* Clean files generated to standalone SDK
|
|
4
|
-
* @param targetPath Path where the SDK has been generated
|
|
5
|
-
*/
|
|
6
|
-
export declare function cleanStandaloneFiles(targetPath: string): Rule;
|
|
7
|
-
//# sourceMappingURL=clean-standalone.rule.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"clean-standalone.rule.d.ts","sourceRoot":"","sources":["../../../../schematics/sdk/rules/clean-standalone.rule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAIvD;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAkB7D"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.cleanStandaloneFiles = void 0;
|
|
4
|
-
const node_path_1 = require("node:path");
|
|
5
|
-
/**
|
|
6
|
-
* Clean files generated to standalone SDK
|
|
7
|
-
* @param targetPath Path where the SDK has been generated
|
|
8
|
-
*/
|
|
9
|
-
function cleanStandaloneFiles(targetPath) {
|
|
10
|
-
return (tree) => {
|
|
11
|
-
tree.delete(node_path_1.posix.join(targetPath, '.renovaterc.json'));
|
|
12
|
-
tree.delete(node_path_1.posix.join(targetPath, '.vscode', 'settings.json'));
|
|
13
|
-
tree.delete(node_path_1.posix.join(targetPath, '.editorconfig'));
|
|
14
|
-
tree.delete(node_path_1.posix.join(targetPath, '.versionrc.json'));
|
|
15
|
-
tree.delete(node_path_1.posix.join(targetPath, '.commitlintrc.json'));
|
|
16
|
-
tree.delete(node_path_1.posix.join(targetPath, 'CONTRIBUTING.md'));
|
|
17
|
-
tree.delete(node_path_1.posix.join(targetPath, '.husky', 'commit-msg'));
|
|
18
|
-
tree.delete(node_path_1.posix.join(targetPath, '.husky', 'pre-commit'));
|
|
19
|
-
const packageJson = tree.readJson(node_path_1.posix.join(targetPath, 'package.json'));
|
|
20
|
-
if (packageJson.scripts?.postinstall) {
|
|
21
|
-
delete packageJson.scripts.postinstall;
|
|
22
|
-
}
|
|
23
|
-
tree.overwrite(node_path_1.posix.join(targetPath, 'package.json'), JSON.stringify(packageJson, null, 2));
|
|
24
|
-
return tree;
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
exports.cleanStandaloneFiles = cleanStandaloneFiles;
|
|
28
|
-
//# sourceMappingURL=clean-standalone.rule.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"clean-standalone.rule.js","sourceRoot":"","sources":["../../../../schematics/sdk/rules/clean-standalone.rule.ts"],"names":[],"mappings":";;;AACA,yCAAkC;AAGlC;;;GAGG;AACH,SAAgB,oBAAoB,CAAC,UAAkB;IACrD,OAAO,CAAC,IAAI,EAAE,EAAE;QACd,IAAI,CAAC,MAAM,CAAC,iBAAK,CAAC,IAAI,CAAC,UAAU,EAAE,kBAAkB,CAAC,CAAC,CAAC;QACxD,IAAI,CAAC,MAAM,CAAC,iBAAK,CAAC,IAAI,CAAC,UAAU,EAAE,SAAS,EAAE,eAAe,CAAC,CAAC,CAAC;QAChE,IAAI,CAAC,MAAM,CAAC,iBAAK,CAAC,IAAI,CAAC,UAAU,EAAE,eAAe,CAAC,CAAC,CAAC;QACrD,IAAI,CAAC,MAAM,CAAC,iBAAK,CAAC,IAAI,CAAC,UAAU,EAAE,iBAAiB,CAAC,CAAC,CAAC;QACvD,IAAI,CAAC,MAAM,CAAC,iBAAK,CAAC,IAAI,CAAC,UAAU,EAAE,oBAAoB,CAAC,CAAC,CAAC;QAC1D,IAAI,CAAC,MAAM,CAAC,iBAAK,CAAC,IAAI,CAAC,UAAU,EAAE,iBAAiB,CAAC,CAAC,CAAC;QACvD,IAAI,CAAC,MAAM,CAAC,iBAAK,CAAC,IAAI,CAAC,UAAU,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAC,CAAC;QAC5D,IAAI,CAAC,MAAM,CAAC,iBAAK,CAAC,IAAI,CAAC,UAAU,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAC,CAAC;QAE5D,MAAM,WAAW,GAAG,IAAI,CAAC,QAAQ,CAAC,iBAAK,CAAC,IAAI,CAAC,UAAU,EAAE,cAAc,CAAC,CAAgB,CAAC;QACzF,IAAI,WAAW,CAAC,OAAO,EAAE,WAAW,EAAE;YACpC,OAAO,WAAW,CAAC,OAAO,CAAC,WAAW,CAAC;SACxC;QACD,IAAI,CAAC,SAAS,CAAC,iBAAK,CAAC,IAAI,CAAC,UAAU,EAAE,cAAc,CAAC,EAAE,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;QAC7F,OAAO,IAAI,CAAC;IACd,CAAC,CAAC;AACJ,CAAC;AAlBD,oDAkBC"}
|