@o3r/core 10.0.0-next.8 → 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,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "<%= tsconfigSpecPath %>",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"composite": true,
|
|
5
|
-
"outDir": "test",
|
|
6
|
-
"rootDir": ".",
|
|
7
|
-
},
|
|
8
|
-
"include": [
|
|
9
|
-
"./src/**/*.spec.ts"
|
|
10
|
-
],
|
|
11
|
-
"exclude": [],
|
|
12
|
-
"references": [
|
|
13
|
-
{
|
|
14
|
-
"path": "./tsconfig.build.composite.json"
|
|
15
|
-
}
|
|
16
|
-
]
|
|
17
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/naming-convention */
|
|
2
|
-
/* eslint-disable quote-props */
|
|
3
|
-
|
|
4
|
-
module.exports = {
|
|
5
|
-
'root': true,
|
|
6
|
-
'parserOptions': {
|
|
7
|
-
'tsconfigRootDir': __dirname,
|
|
8
|
-
'project': [
|
|
9
|
-
'tsconfig.build.json',
|
|
10
|
-
'tsconfig.spec.json',
|
|
11
|
-
'tsconfig.builders.json',
|
|
12
|
-
'tsconfig.eslint.json'
|
|
13
|
-
],
|
|
14
|
-
'sourceType': 'module'
|
|
15
|
-
},
|
|
16
|
-
'extends': [
|
|
17
|
-
'./tsconfig.eslint.json'
|
|
18
|
-
]
|
|
19
|
-
};
|
|
File without changes
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
const { getJestModuleNameMapper } = require('@o3r/dev-tools');
|
|
2
|
-
|
|
3
|
-
globalThis.ngJest = {
|
|
4
|
-
skipNgcc: true
|
|
5
|
-
};
|
|
6
|
-
|
|
7
|
-
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
|
|
8
|
-
module.exports = {
|
|
9
|
-
displayName: require('./package.json').name,
|
|
10
|
-
preset: 'jest-preset-angular',
|
|
11
|
-
setupFilesAfterEnv: ['<rootDir>/testing/setup-jest.ts'],
|
|
12
|
-
rootDir: '.',
|
|
13
|
-
moduleNameMapper: getJestModuleNameMapper(__dirname),
|
|
14
|
-
testPathIgnorePatterns: [
|
|
15
|
-
'<rootDir>/dist',
|
|
16
|
-
],
|
|
17
|
-
reporters: [
|
|
18
|
-
'default',
|
|
19
|
-
'github-actions'
|
|
20
|
-
],
|
|
21
|
-
globalSetup: 'jest-preset-angular/global-setup',
|
|
22
|
-
transform: {
|
|
23
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
24
|
-
'^.+\\.tsx?$': [
|
|
25
|
-
'jest-preset-angular',
|
|
26
|
-
{
|
|
27
|
-
tsconfig: '<rootDir>/tsconfig.spec.json',
|
|
28
|
-
stringifyContentPathRegex: '\\.html$'
|
|
29
|
-
}
|
|
30
|
-
]
|
|
31
|
-
},
|
|
32
|
-
snapshotSerializers: [
|
|
33
|
-
'jest-preset-angular/build/serializers/no-ng-attributes',
|
|
34
|
-
'jest-preset-angular/build/serializers/ng-snapshot',
|
|
35
|
-
'jest-preset-angular/build/serializers/html-comment',
|
|
36
|
-
]
|
|
37
|
-
};
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "<%= projectName %>",
|
|
3
|
-
"$schema": "https://raw.githubusercontent.com/nrwl/nx/master/packages/nx/schemas/project-schema.json",
|
|
4
|
-
"projectType": "library",
|
|
5
|
-
"sourceRoot": "<%= projectRoot %>/src",
|
|
6
|
-
"targets": {
|
|
7
|
-
"build": {
|
|
8
|
-
"executor": "nx:noop",
|
|
9
|
-
"dependsOn": [
|
|
10
|
-
"build-builders",
|
|
11
|
-
"compile"
|
|
12
|
-
]
|
|
13
|
-
},
|
|
14
|
-
"compile": {
|
|
15
|
-
"executor": "@angular-devkit/build-angular:ng-packagr",
|
|
16
|
-
"options": {
|
|
17
|
-
"project": "<%= projectRoot %>/ng-package.json",
|
|
18
|
-
"tsConfig": "<%= projectRoot %>/tsconfig.build.json"
|
|
19
|
-
},
|
|
20
|
-
"dependsOn": [
|
|
21
|
-
"^build"
|
|
22
|
-
]
|
|
23
|
-
},
|
|
24
|
-
"prepare-build-builders": {
|
|
25
|
-
"executor": "nx:run-script",
|
|
26
|
-
"options": {
|
|
27
|
-
"script": "prepare:build:builders"
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
"build-builders": {
|
|
31
|
-
"executor": "nx:run-script",
|
|
32
|
-
"options": {
|
|
33
|
-
"script": "build:builders"
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
"lint": {
|
|
37
|
-
"executor": "@nrwl/linter:eslint",
|
|
38
|
-
"configurations": {
|
|
39
|
-
"ci": {
|
|
40
|
-
"quiet": true,
|
|
41
|
-
"cacheLocation": ".cache/eslint"
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
"options": {
|
|
45
|
-
"eslintConfig": "<%= projectRoot %>/.eslintrc.js",
|
|
46
|
-
"lintFilePatterns": [
|
|
47
|
-
"<%= projectRoot %>/src/**/*.ts"
|
|
48
|
-
]
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
"test": {
|
|
52
|
-
"executor": "@nrwl/jest:jest",
|
|
53
|
-
"options": {
|
|
54
|
-
"jestConfig": "<%= projectRoot %>/jest.config.js",
|
|
55
|
-
"silent": true
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
"publish": {
|
|
59
|
-
"executor": "nx:run-commands",
|
|
60
|
-
"options": {
|
|
61
|
-
"command": "npm publish <%= projectRoot %>/dist"
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
"tags": []
|
|
66
|
-
}
|
package/schematics/package.json
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Rule } from '@angular-devkit/schematics';
|
|
2
|
-
/**
|
|
3
|
-
* Create the default Azure Pipeline configuration.
|
|
4
|
-
*
|
|
5
|
-
* @param options @see RuleFactory.options
|
|
6
|
-
* @param options.projectName
|
|
7
|
-
* @param rootPath @see RuleFactory.rootPath
|
|
8
|
-
* @param options.enableStorybook
|
|
9
|
-
*/
|
|
10
|
-
export declare function createAzurePipeline(options: {
|
|
11
|
-
projectName?: string | null | undefined;
|
|
12
|
-
enableStorybook: boolean;
|
|
13
|
-
}, rootPath: string): Rule;
|
|
14
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/rule-factories/azure-pipeline/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+D,IAAI,EAAyC,MAAM,4BAA4B,CAAC;AAGtJ;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE;IAAE,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAAC,eAAe,EAAE,OAAO,CAAA;CAAE,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,CAqD1I"}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createAzurePipeline = void 0;
|
|
4
|
-
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
|
-
const schematics_2 = require("@o3r/schematics");
|
|
6
|
-
/**
|
|
7
|
-
* Create the default Azure Pipeline configuration.
|
|
8
|
-
*
|
|
9
|
-
* @param options @see RuleFactory.options
|
|
10
|
-
* @param options.projectName
|
|
11
|
-
* @param rootPath @see RuleFactory.rootPath
|
|
12
|
-
* @param options.enableStorybook
|
|
13
|
-
*/
|
|
14
|
-
function createAzurePipeline(options, rootPath) {
|
|
15
|
-
/**
|
|
16
|
-
* Generate The Azure Pipeline configuration.
|
|
17
|
-
*
|
|
18
|
-
* @param tree
|
|
19
|
-
* @param context
|
|
20
|
-
*/
|
|
21
|
-
const generateAzurePipeline = (tree, context) => {
|
|
22
|
-
if (tree.exists('/azure-pipelines.yml')) {
|
|
23
|
-
return tree;
|
|
24
|
-
}
|
|
25
|
-
const workspaceProject = (0, schematics_2.getProjectFromTree)(tree, options.projectName, 'application');
|
|
26
|
-
if (!workspaceProject) {
|
|
27
|
-
context.logger.warn(`The project "${options.projectName}" is not an application, the pipeline generation will be skipped.`);
|
|
28
|
-
return tree;
|
|
29
|
-
}
|
|
30
|
-
const templateSource = (0, schematics_1.apply)((0, schematics_1.url)((0, schematics_2.getTemplateFolder)(rootPath, __dirname)), [
|
|
31
|
-
(0, schematics_1.template)({
|
|
32
|
-
...options
|
|
33
|
-
}),
|
|
34
|
-
(0, schematics_1.renameTemplateFiles)()
|
|
35
|
-
]);
|
|
36
|
-
const rule = (0, schematics_1.mergeWith)(templateSource, schematics_1.MergeStrategy.AllowOverwriteConflict);
|
|
37
|
-
return rule(tree, context);
|
|
38
|
-
};
|
|
39
|
-
/**
|
|
40
|
-
* Indicate manually if the Azure Pipeline configuration should be generated.
|
|
41
|
-
*
|
|
42
|
-
* @param tree
|
|
43
|
-
* @param context
|
|
44
|
-
*/
|
|
45
|
-
const manualProcessNotification = (tree, context) => {
|
|
46
|
-
if (tree.exists('/azure-pipelines.yml')) {
|
|
47
|
-
return tree;
|
|
48
|
-
}
|
|
49
|
-
const workspaceProject = (0, schematics_2.getProjectFromTree)(tree, options.projectName, 'application');
|
|
50
|
-
if (!workspaceProject) {
|
|
51
|
-
return tree;
|
|
52
|
-
}
|
|
53
|
-
context.logger.info('To be able to deploy your application to Deploy Service V2 provided by Amadeus, you need to manually process the following steps:');
|
|
54
|
-
context.logger.info(` - create the variable group "variables for ${options.projectName}" containing the "DS_PDT_CLIENT_SECRET" and "DS_PDT_CLIENT_ID" variables"`);
|
|
55
|
-
context.logger.info(' - contact support channels to create your application blueprint');
|
|
56
|
-
return tree;
|
|
57
|
-
};
|
|
58
|
-
return (0, schematics_1.chain)([
|
|
59
|
-
generateAzurePipeline,
|
|
60
|
-
manualProcessNotification
|
|
61
|
-
]);
|
|
62
|
-
}
|
|
63
|
-
exports.createAzurePipeline = createAzurePipeline;
|
|
64
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../schematics/rule-factories/azure-pipeline/index.ts"],"names":[],"mappings":";;;AAAA,2DAAsJ;AACtJ,gDAAwE;AAExE;;;;;;;GAOG;AACH,SAAgB,mBAAmB,CAAC,OAA8E,EAAE,QAAgB;IAElI;;;;;OAKG;IACH,MAAM,qBAAqB,GAAG,CAAC,IAAU,EAAE,OAAyB,EAAE,EAAE;QACtE,IAAI,IAAI,CAAC,MAAM,CAAC,sBAAsB,CAAC,EAAE;YACvC,OAAO,IAAI,CAAC;SACb;QACD,MAAM,gBAAgB,GAAG,IAAA,+BAAkB,EAAC,IAAI,EAAE,OAAO,CAAC,WAAW,EAAE,aAAa,CAAC,CAAC;QACtF,IAAI,CAAC,gBAAgB,EAAE;YACrB,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,gBAAgB,OAAO,CAAC,WAAY,mEAAmE,CAAC,CAAC;YAC7H,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,OAAO;aACX,CAAC;YACF,IAAA,gCAAmB,GAAE;SACtB,CAAC,CAAC;QAEH,MAAM,IAAI,GAAG,IAAA,sBAAS,EAAC,cAAc,EAAE,0BAAa,CAAC,sBAAsB,CAAC,CAAC;QAC7E,OAAO,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC7B,CAAC,CAAC;IAEF;;;;;OAKG;IACH,MAAM,yBAAyB,GAAG,CAAC,IAAU,EAAE,OAAyB,EAAE,EAAE;QAC1E,IAAI,IAAI,CAAC,MAAM,CAAC,sBAAsB,CAAC,EAAE;YACvC,OAAO,IAAI,CAAC;SACb;QACD,MAAM,gBAAgB,GAAG,IAAA,+BAAkB,EAAC,IAAI,EAAE,OAAO,CAAC,WAAW,EAAE,aAAa,CAAC,CAAC;QACtF,IAAI,CAAC,gBAAgB,EAAE;YACrB,OAAO,IAAI,CAAC;SACb;QACD,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,mIAAmI,CAAC,CAAC;QACzJ,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,gDAAgD,OAAO,CAAC,WAAY,2EAA2E,CAAC,CAAC;QACrK,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,mEAAmE,CAAC,CAAC;QAEzF,OAAO,IAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO,IAAA,kBAAK,EAAC;QACX,qBAAqB;QACrB,yBAAyB;KAC1B,CAAC,CAAC;AACL,CAAC;AArDD,kDAqDC"}
|
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/restrict-template-expressions */
|
|
2
|
-
/* eslint-disable @typescript-eslint/no-unsafe-argument */
|
|
3
|
-
const fs = require('fs');
|
|
4
|
-
const path = require('path');
|
|
5
|
-
const stringSimilarity = require('string-similarity');
|
|
6
|
-
const minimist = require('minimist');
|
|
7
|
-
const fetch = require('isomorphic-fetch');
|
|
8
|
-
|
|
9
|
-
const OPTS = minimist(process.argv.slice(2));
|
|
10
|
-
|
|
11
|
-
/** OAuth token */
|
|
12
|
-
const API_BASE_PATH = `https://dev.azure.com/${OPTS.organization}/${OPTS.project}/_apis`;
|
|
13
|
-
|
|
14
|
-
const BUILDID = Number(process.env.BUILD_BUILDID);
|
|
15
|
-
|
|
16
|
-
const options = {
|
|
17
|
-
headers: {
|
|
18
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
19
|
-
'Content-Type': 'application/json',
|
|
20
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
21
|
-
'Authorization': `Basic ${Buffer.from(`:${OPTS.pat}`).toString('base64')}`
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Format a date as YYYY-MM-DD
|
|
27
|
-
*
|
|
28
|
-
* @param {Date} date
|
|
29
|
-
* @returns {string}
|
|
30
|
-
*/
|
|
31
|
-
function formatDate(date) {
|
|
32
|
-
const year = date.getUTCFullYear();
|
|
33
|
-
const month = date.getUTCMonth() + 1;
|
|
34
|
-
const day = date.getUTCDate();
|
|
35
|
-
return `${year}-${month < 10 ? `0${month}` : month}-${day < 10 ? `0${day}` : day}`;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Get all files to be attached from the test results folder
|
|
40
|
-
*
|
|
41
|
-
* @param {string} testFolderPath
|
|
42
|
-
*/
|
|
43
|
-
function getFilesFolder(testFolderPath) {
|
|
44
|
-
return fs.readdirSync(testFolderPath, {withFileTypes: true}).filter(dir => dir.isDirectory()).map(dir => {
|
|
45
|
-
const files = fs.readdirSync(`${testFolderPath}/${dir.name}`);
|
|
46
|
-
return {folderName: dir.name, filesPath: files.map(file => `${testFolderPath}/${dir.name}/${file}`)};
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* @param runId
|
|
52
|
-
* @param reportsFolder
|
|
53
|
-
*/
|
|
54
|
-
async function attachReports(runId, reportsFolder) {
|
|
55
|
-
if (!OPTS.reportsFolder) {
|
|
56
|
-
if (OPTS.verbose) {
|
|
57
|
-
console.info('No additional reports to attach.');
|
|
58
|
-
}
|
|
59
|
-
return;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
const reports = fs.readdirSync(reportsFolder);
|
|
63
|
-
|
|
64
|
-
return Promise.all(reports.map(async (fileName) => {
|
|
65
|
-
const file = fs.readFileSync(path.join(reportsFolder, fileName));
|
|
66
|
-
const bodyAttachment = {stream: file.toString('base64'), filename: fileName};
|
|
67
|
-
|
|
68
|
-
const response = await (await fetch(`${API_BASE_PATH}/test/runs/${runId}/attachments?api-version=6.0-preview.1`, {
|
|
69
|
-
...options,
|
|
70
|
-
method: 'POST',
|
|
71
|
-
body: JSON.stringify(bodyAttachment)
|
|
72
|
-
})).json();
|
|
73
|
-
|
|
74
|
-
if (OPTS.verbose) {
|
|
75
|
-
console.info(`Attached report ${fileName}`);
|
|
76
|
-
console.info(JSON.stringify(response, null, 2));
|
|
77
|
-
}
|
|
78
|
-
}));
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* Attach files to failed or aborted tests runned in Azure Pipelines
|
|
83
|
-
*/
|
|
84
|
-
async function attachFilesToTestsResults() {
|
|
85
|
-
const now = new Date();
|
|
86
|
-
const yesterday = new Date(now.getUTCFullYear(), now.getUTCMonth(), now.getUTCDate() - 1);
|
|
87
|
-
const dayAfterTomorrow = new Date(now.getUTCFullYear(), now.getUTCMonth(), now.getUTCDate() + 2);
|
|
88
|
-
|
|
89
|
-
// Retrieve test run by build id
|
|
90
|
-
// eslint-disable-next-line max-len
|
|
91
|
-
const testRunsUrl = `${API_BASE_PATH}/test/runs?minLastUpdatedDate=${formatDate(yesterday)}&maxLastUpdatedDate=${formatDate(dayAfterTomorrow)}&api-version=6.0`;
|
|
92
|
-
const testRuns = await (await fetch(testRunsUrl, options)).json();
|
|
93
|
-
if (OPTS.verbose) {
|
|
94
|
-
console.info('Retrieved runs from Azure API:');
|
|
95
|
-
console.info(JSON.stringify(testRuns, null, 2));
|
|
96
|
-
}
|
|
97
|
-
const testRun = testRuns.value.find(run => run.buildConfiguration.id === BUILDID && run.name === OPTS.runName);
|
|
98
|
-
const runId = testRun.id;
|
|
99
|
-
if (OPTS.verbose) {
|
|
100
|
-
console.info(`Current test run ID: ${runId}`);
|
|
101
|
-
}
|
|
102
|
-
void attachReports(runId, OPTS.reportsFolder);
|
|
103
|
-
|
|
104
|
-
// Get all failed or aborted tests id
|
|
105
|
-
const testRunResultsUrl = `${API_BASE_PATH}/test/runs/${runId}/results?api-version=6.0`;
|
|
106
|
-
const testRunResults = await (await fetch(testRunResultsUrl, options)).json();
|
|
107
|
-
const testsId = testRunResults.value.filter(tests => ['Failed', 'Aborted'].includes(tests.outcome)).map(tests => {
|
|
108
|
-
return {id: tests.id, name: tests.automatedTestStorage.replace(/:[0-9]+/g, '').replace(/›/g, '').replace(/[ /]+/g, '-').toLowerCase()};
|
|
109
|
-
});
|
|
110
|
-
|
|
111
|
-
// Filter the tests folder to only get the failed or aborted tests
|
|
112
|
-
const filesFolder = getFilesFolder(path.join(__dirname, '../../../test-results'));
|
|
113
|
-
if (OPTS.verbose) {
|
|
114
|
-
console.info('Retrieve test run result.');
|
|
115
|
-
console.info(JSON.stringify(testsId, null, 2));
|
|
116
|
-
|
|
117
|
-
console.info('Test attachments folders.');
|
|
118
|
-
console.info(JSON.stringify(filesFolder, null, 2));
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
const attachments = testsId.map(test => {
|
|
122
|
-
return {id: test.id, folderName: stringSimilarity.findBestMatch(test.name, filesFolder.map(folder => folder.folderName)).bestMatch.target, name: test.name};
|
|
123
|
-
});
|
|
124
|
-
|
|
125
|
-
if (OPTS.verbose) {
|
|
126
|
-
console.info('Files to attach:');
|
|
127
|
-
console.info(JSON.stringify(attachments, null, 2));
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
// Attach files to failed or aborted tests
|
|
132
|
-
attachments.forEach(({id, folderName}) => {
|
|
133
|
-
const {filesPath} = filesFolder.find(folder => folder.folderName === folderName);
|
|
134
|
-
filesPath.forEach((filePath) => {
|
|
135
|
-
const file = fs.readFileSync(filePath);
|
|
136
|
-
const bodyAttachment = {stream: file.toString('base64'), filename: filePath.split('/').pop()};
|
|
137
|
-
|
|
138
|
-
void fetch(`${API_BASE_PATH}/test/runs/${runId}/results/${id}/attachments?api-version=6.0-preview.1`, {
|
|
139
|
-
...options,
|
|
140
|
-
method: 'POST',
|
|
141
|
-
body: JSON.stringify(bodyAttachment)
|
|
142
|
-
});
|
|
143
|
-
});
|
|
144
|
-
});
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
void attachFilesToTestsResults();
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
const minimist = require('minimist');
|
|
2
|
-
|
|
3
|
-
const OPTS = minimist(process.argv.slice(2));
|
|
4
|
-
|
|
5
|
-
let appVersion = OPTS.buildNumber;
|
|
6
|
-
const deployUrl = OPTS.deployUrl;
|
|
7
|
-
const airlineCode = OPTS.airlineCode;
|
|
8
|
-
const applicationName = OPTS.appName;
|
|
9
|
-
const isPR = OPTS.isPR;
|
|
10
|
-
|
|
11
|
-
if (isPR.toLowerCase() === 'false') {
|
|
12
|
-
const appVersionSplit = appVersion.split('.');
|
|
13
|
-
appVersion = appVersionSplit.slice(0, appVersionSplit.length - 1)
|
|
14
|
-
.join('.');
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
const sanitizedAppVersion = appVersion.replace(/\./g, '-');
|
|
18
|
-
|
|
19
|
-
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions,no-console
|
|
20
|
-
console.log(`https://${deployUrl}/${airlineCode}/${applicationName}-${sanitizedAppVersion}`);
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
const fs = require('fs');
|
|
2
|
-
const path = require('path');
|
|
3
|
-
const packageName = process.argv[2];
|
|
4
|
-
const packageVersion = process.argv[3];
|
|
5
|
-
const folderToGenerate = process.argv[4];
|
|
6
|
-
|
|
7
|
-
const packageJsonContent =
|
|
8
|
-
`{
|
|
9
|
-
"name": "${packageName}",
|
|
10
|
-
"version": "${packageVersion}",
|
|
11
|
-
"main": "index.js",
|
|
12
|
-
"license": "BSD-3-Clause"
|
|
13
|
-
}`;
|
|
14
|
-
|
|
15
|
-
fs.writeFileSync(path.resolve(__dirname, '..', '..', '..', folderToGenerate, 'package.json'), packageJsonContent);
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/* eslint-disable no-console */
|
|
2
|
-
const https = require('https');
|
|
3
|
-
const appInfoUrl = process.argv[2];
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Retrieve application information
|
|
7
|
-
*
|
|
8
|
-
* @param {string} appConfUrl
|
|
9
|
-
*/
|
|
10
|
-
const getAppVersion = (appConfUrl) => new Promise((resolve, reject) => {
|
|
11
|
-
const req = https.request(appConfUrl, {
|
|
12
|
-
method: 'GET'
|
|
13
|
-
}, (res) => {
|
|
14
|
-
|
|
15
|
-
let chunks = '';
|
|
16
|
-
res.on('data', (chunk) => chunks += chunk);
|
|
17
|
-
res.on('error', (err) => reject(err));
|
|
18
|
-
res.on('end', () => resolve(JSON.parse(chunks)));
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
req.on('error', (err) => reject(err));
|
|
22
|
-
|
|
23
|
-
req.end();
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
getAppVersion(appInfoUrl).then(
|
|
27
|
-
(res) => {
|
|
28
|
-
const split = res.dist.path.split('/').filter((item) => !!item);
|
|
29
|
-
const appVersion = split.pop();
|
|
30
|
-
console.log(appVersion);
|
|
31
|
-
},
|
|
32
|
-
(err) => {
|
|
33
|
-
console.error(err);
|
|
34
|
-
process.exit(1);
|
|
35
|
-
}
|
|
36
|
-
);
|
package/schematics/rule-factories/azure-pipeline/templates/azure/templates/steps/allure.yml.template
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
parameters:
|
|
2
|
-
- name: 'version'
|
|
3
|
-
type: string
|
|
4
|
-
default: '2.15.0'
|
|
5
|
-
- name: 'source'
|
|
6
|
-
type: string
|
|
7
|
-
default: '$(System.DefaultWorkingDirectory)/playwright-reports/allure-results'
|
|
8
|
-
- name: 'output'
|
|
9
|
-
type: string
|
|
10
|
-
default: '$(System.DefaultWorkingDirectory)/playwright-reports/allure'
|
|
11
|
-
|
|
12
|
-
steps:
|
|
13
|
-
- script: |
|
|
14
|
-
mkdir allure-install
|
|
15
|
-
wget --output-document ./allure-install/allure-commandline.tgz https://repo.maven.apache.org/maven2/io/qameta/allure/allure-commandline/${{parameters.version}}/allure-commandline-${{parameters.version}}.tgz
|
|
16
|
-
tar -xf ./allure-install/allure-commandline.tgz --strip-components=1 --directory allure-install
|
|
17
|
-
./allure-install/bin/allure generate ${{parameters.source}} --clean -o ${{parameters.output}}
|
|
18
|
-
rm -rf ./allure-install
|
|
19
|
-
displayName: 'Install and run allure'
|
|
20
|
-
condition: succeededOrFailed()
|
|
21
|
-
|
|
22
|
-
- publish: ${{ parameters.output }}
|
|
23
|
-
condition: succeededOrFailed()
|
|
24
|
-
artifact: 'allure-report'
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
parameters:
|
|
2
|
-
DIST_FOLDER: $(System.DefaultWorkingDirectory)/dist
|
|
3
|
-
DIST_ARTIFACT_NAME: dist
|
|
4
|
-
ROOT_FOLDER: $(System.DefaultWorkingDirectory)/
|
|
5
|
-
SOURCE_ARTIFACT_NAME: source
|
|
6
|
-
|
|
7
|
-
steps:
|
|
8
|
-
- publish: ${{ parameters.DIST_FOLDER }}
|
|
9
|
-
condition: succeeded()
|
|
10
|
-
artifact: ${{ parameters.DIST_ARTIFACT_NAME }}
|
|
11
|
-
|
|
12
|
-
- publish: ${{ parameters.ROOT_FOLDER }}
|
|
13
|
-
condition: succeeded()
|
|
14
|
-
artifact: ${{ parameters.SOURCE_ARTIFACT_NAME }}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
parameters:
|
|
2
|
-
- name: 'semVer'
|
|
3
|
-
type: string
|
|
4
|
-
default: ''
|
|
5
|
-
|
|
6
|
-
steps:
|
|
7
|
-
- script: |
|
|
8
|
-
git config --global user.email "$(Build.RequestedForEmail)"
|
|
9
|
-
git config --global user.name "$(Build.QueuedBy)"
|
|
10
|
-
git tag -a "${{parameters.semVer}}" -m "v${{parameters.semVer}}"
|
|
11
|
-
git push --verbose --tags
|
|
12
|
-
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'), startsWith(variables['Build.SourceBranch'], 'refs/heads/release/'))
|
|
13
|
-
displayName: 'Set Version'
|
package/schematics/rule-factories/azure-pipeline/templates/azure/templates/steps/setup.yml.template
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
parameters:
|
|
2
|
-
YARN_CACHE_FOLDER: $(Pipeline.Workspace)/.cache/yarn
|
|
3
|
-
|
|
4
|
-
steps:
|
|
5
|
-
- task: NodeTool@0
|
|
6
|
-
inputs:
|
|
7
|
-
versionSpec: '16.x'
|
|
8
|
-
displayName: 'Install Node.js'
|
|
9
|
-
|
|
10
|
-
- task: Cache@2
|
|
11
|
-
inputs:
|
|
12
|
-
key: yarn | $(Agent.OS) | yarn.lock
|
|
13
|
-
path: '${{parameters.YARN_CACHE_FOLDER}}'
|
|
14
|
-
restoreKeys: |
|
|
15
|
-
yarn | $(Agent.OS)
|
|
16
|
-
yarn
|
|
17
|
-
continueOnError: true
|
|
18
|
-
displayName: 'Cache Yarn packages'
|
|
19
|
-
|
|
20
|
-
- script: yarn --frozen-lockfile
|
|
21
|
-
displayName: 'Yarn Install'
|