@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
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<h1 align="center">Otter core</h1>
|
|
2
2
|
<p align="center">
|
|
3
|
-
<img src="https://raw.githubusercontent.com/AmadeusITGroup/otter/main
|
|
3
|
+
<img src="https://raw.githubusercontent.com/AmadeusITGroup/otter/main/assets/logo/otter.png" alt="Super cute Otter!" width="40%"/>
|
|
4
4
|
</p>
|
|
5
5
|
|
|
6
6
|
## Description
|
|
@@ -19,19 +19,19 @@ during the installation of the `@o3r/core`.
|
|
|
19
19
|
### Required environment
|
|
20
20
|
|
|
21
21
|
* **Git** : [https://gitforwindows.org/](https://gitforwindows.org/)
|
|
22
|
-
* **NodeJs
|
|
22
|
+
* **NodeJs 18.x** : [NodeJS LTS](https://nodejs.org/)
|
|
23
23
|
* **Yarn** : [https://yarnpkg.com/lang/en/](https://yarnpkg.com/)
|
|
24
24
|
|
|
25
25
|
**Yarn** can be installed directly using NPM:
|
|
26
26
|
|
|
27
|
-
```
|
|
27
|
+
```shell
|
|
28
28
|
# Installing yarn
|
|
29
29
|
npm install --global yarn
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
### Creating a new Otter application
|
|
33
33
|
|
|
34
|
-
```
|
|
34
|
+
```shell
|
|
35
35
|
# Create new application
|
|
36
36
|
npm create @o3r my-project
|
|
37
37
|
# Or
|
|
@@ -40,7 +40,7 @@ yarn create @o3r my-project
|
|
|
40
40
|
|
|
41
41
|
### Adding Material design theming
|
|
42
42
|
|
|
43
|
-
```
|
|
43
|
+
```shell
|
|
44
44
|
# Add Material Design
|
|
45
45
|
yarn ng add @angular/material
|
|
46
46
|
# ? Choose a prebuilt theme name, or "custom" for a custom theme: Indigo/Pink
|
|
@@ -84,14 +84,6 @@ Otter framework provides a set of code generators based on [angular schematics](
|
|
|
84
84
|
| convert-component | Convert an Angular component into an Otter component | `ng g convert-component` |
|
|
85
85
|
| context-to-component | Add Otter Context to an existing component | `ng g context-to-component` |
|
|
86
86
|
|
|
87
|
-
### Package generators
|
|
88
|
-
|
|
89
|
-
| Schematics | Description | How to use |
|
|
90
|
-
| -------------------------- | ----------------------------------------------------------------------------- | --------------------------------- |
|
|
91
|
-
| library | Add a new Library to the current Otter project | `ng g library` |
|
|
92
|
-
| sdk | Add a new SDK to the current Otter project | `ng g sdk` |
|
|
93
|
-
| application | Add a new Application to the current Otter project | `ng g application` |
|
|
94
|
-
|
|
95
87
|
## Create your own Otter compatible module
|
|
96
88
|
|
|
97
89
|
You can refer to the [module documentation](https://github.com/AmadeusITGroup/otter/tree/main/docs/core/MODULE.md) to create an Otter compatible module.
|
|
@@ -116,3 +108,36 @@ It includes the following modules:
|
|
|
116
108
|
* @o3r/configuration
|
|
117
109
|
* @o3r/dynamic-content
|
|
118
110
|
* @o3r/rules-engine
|
|
111
|
+
|
|
112
|
+
### Preset All
|
|
113
|
+
|
|
114
|
+
Will add all official modules provided by the Otter Framework.
|
|
115
|
+
Currently the list of modules is the following:
|
|
116
|
+
|
|
117
|
+
* @o3r/analytics
|
|
118
|
+
* @o3r/apis-manager
|
|
119
|
+
* @o3r/application
|
|
120
|
+
* @o3r/components
|
|
121
|
+
* @o3r/configuration
|
|
122
|
+
* @o3r/dynamic-content
|
|
123
|
+
* @o3r/eslint-config-otter
|
|
124
|
+
* @o3r/eslint-plugin
|
|
125
|
+
* @o3r/forms
|
|
126
|
+
* @o3r/localization
|
|
127
|
+
* @o3r/logger
|
|
128
|
+
* @o3r/rules-engine
|
|
129
|
+
* @o3r/store-sync
|
|
130
|
+
* @o3r/stylelint-plugin
|
|
131
|
+
* @o3r/styling
|
|
132
|
+
|
|
133
|
+
## External (Custom) Preset
|
|
134
|
+
|
|
135
|
+
The preset mechanism is supporting, via the `--external-preset` option, presets defined by module providers themself.
|
|
136
|
+
|
|
137
|
+
The modules can be regrouped in custom Presets by following the next steps:
|
|
138
|
+
|
|
139
|
+
* Adding a **keyword**, in the module *package.json*'s `keywords` field, following the pattern `otter-preset-<my-preset>`.
|
|
140
|
+
* The module needs to be published to public (or private) NPM Registry.
|
|
141
|
+
* The package's scope should be whitelisted, via a Pull Request, in the following [OTTER_MODULE_SUPPORTED_SCOPES constant](https://github.com/AmadeusITGroup/otter/blob/main/packages/@o3r/schematics/src/modules/modules.constants.ts).
|
|
142
|
+
|
|
143
|
+
> **Note**: Get more information regarding the **Otter Modules** in the [Module Documentation](https://github.com/AmadeusITGroup/otter/blob/main/docs/core/MODULE.md).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../builders/app-version/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAEnD,cAAc,UAAU,CAAC;;AAezB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../builders/app-version/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAEnD,cAAc,UAAU,CAAC;;AAezB,wBA6BG"}
|
|
@@ -22,7 +22,7 @@ exports.default = (0, architect_1.createBuilder)(async (options, context) => {
|
|
|
22
22
|
if (!fs.existsSync(packageJsonFile)) {
|
|
23
23
|
return PACKAGE_JSON_NOT_FOUND;
|
|
24
24
|
}
|
|
25
|
-
const packageJson = await
|
|
25
|
+
const packageJson = await fs.promises.readFile(packageJsonFile, { encoding: 'utf-8' });
|
|
26
26
|
let version;
|
|
27
27
|
try {
|
|
28
28
|
version = JSON.parse(packageJson).version;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../builders/app-version/index.ts"],"names":[],"mappings":";;;AAAA,yDAAyE;AACzE,8BAA8B;AAC9B,kCAAkC;AAIlC,mDAAyB;AAEzB,MAAM,sBAAsB,GAAkB;IAC5C,KAAK,EAAE,wBAAwB;IAC/B,OAAO,EAAE,KAAK;CACf,CAAC;AAEF,MAAM,sBAAsB,GAAkB;IAC5C,KAAK,EAAE,wBAAwB;IAC/B,OAAO,EAAE,KAAK;CACf,CAAC;AAEF,8BAA8B;AAC9B,MAAM,WAAW,GAAG,CAAC,CAAC;AAEtB,kBAAe,IAAA,yBAAa,EAA0B,KAAK,EAAE,OAAO,EAAE,OAAO,EAA0B,EAAE;IACvG,OAAO,CAAC,aAAa,EAAE,CAAC;IACxB,OAAO,CAAC,cAAc,CAAC,CAAC,EAAE,WAAW,EAAE,sBAAsB,CAAC,CAAC;IAC/D,MAAM,eAAe,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,aAAa,EAAE,cAAc,CAAC,CAAC;IAC5E,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,eAAe,CAAC,EAAE;QACnC,OAAO,sBAAsB,CAAC;KAC/B;IACD,MAAM,WAAW,GAA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D,MAAM,YAAY,GAAG,MAAM,OAAO,CAAC,eAAe,CAAC;QACjD,KAAK,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;QACrB,WAAW,EAAE,OAAO,CAAC,gBAAgB;QACrC,YAAY,EAAE,OAAO;KACtB,EAAE,WAAW,CAAC,CAAC;IAChB,MAAM,KAAK,GAAG,MAAM,OAAO,CAAC,eAAe,CAAC,WAAW,EAAE,YAAY,CAAC,CAAC;IAEvE,sDAAsD;IACtD,OAAO,CAAC,WAAW,CAAC,KAAK,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC;IAEpD,OAAO,KAAK,CAAC,MAAM,CAAC;AACtB,CAAC,CAAC,CAAC"}
|
package/builders/ngc/schema.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../builders/pattern-replacement/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,+BAA+B,EAAC,MAAM,UAAU,CAAC;;AAEzD,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../builders/pattern-replacement/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,+BAA+B,EAAC,MAAM,UAAU,CAAC;;AAEzD,wBAyBG"}
|
|
@@ -8,19 +8,19 @@ exports.default = (0, architect_1.createBuilder)(async (options, context) => {
|
|
|
8
8
|
const STEP_NUMBER = options.files.length + 1;
|
|
9
9
|
context.reportProgress(1, STEP_NUMBER, 'Checking that all files exist');
|
|
10
10
|
const fileNames = options.files.map((fileName) => path.resolve(context.workspaceRoot, fileName));
|
|
11
|
-
const
|
|
12
|
-
if (
|
|
11
|
+
const unexistingFile = fileNames.find((filePath) => !fs.existsSync(filePath));
|
|
12
|
+
if (unexistingFile) {
|
|
13
13
|
return {
|
|
14
14
|
success: false,
|
|
15
|
-
error: `${
|
|
15
|
+
error: `${unexistingFile} not found`
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
18
|
for (let i = 0; i < fileNames.length; i++) {
|
|
19
19
|
const filePath = fileNames[i];
|
|
20
20
|
context.reportProgress(i + 1, STEP_NUMBER, `Modifying ${filePath}`);
|
|
21
|
-
const fileContent = await
|
|
21
|
+
const fileContent = await fs.promises.readFile(filePath, { encoding: 'utf-8' });
|
|
22
22
|
const newContent = fileContent.replace(new RegExp(options.searchValue, 'g'), options.replaceValue);
|
|
23
|
-
await
|
|
23
|
+
await fs.promises.writeFile(filePath, newContent);
|
|
24
24
|
}
|
|
25
25
|
return {
|
|
26
26
|
success: true
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../builders/pattern-replacement/index.ts"],"names":[],"mappings":";;AAAA,yDAAuE;AACvE,8BAA8B;AAC9B,kCAAkC;AAIlC,kBAAe,IAAA,yBAAa,EAAkC,KAAK,EAAE,OAAO,EAAE,OAAO,EAA0B,EAAE;IAC/G,OAAO,CAAC,aAAa,EAAE,CAAC;IACxB,MAAM,WAAW,GAAG,OAAO,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;IAC7C,OAAO,CAAC,cAAc,CAAC,CAAC,EAAE,WAAW,EAAE,+BAA+B,CAAC,CAAC;IAExE,MAAM,SAAS,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,aAAa,EAAE,QAAQ,CAAC,CAAC,CAAC;IACjG,MAAM,cAAc,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC9E,IAAI,cAAc,EAAE;QAClB,OAAO;YACL,OAAO,EAAE,KAAK;YACd,KAAK,EAAE,GAAG,cAAc,YAAY;SACrC,CAAC;KACH;IACD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,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AW,EAAE,aAAa,QAAQ,EAAE,CAAC,CAAC;QACpE,MAAM,WAAW,GAAG,MAAM,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,QAAQ,EAAE,EAAC,QAAQ,EAAE,OAAO,EAAC,CAAC,CAAC;QAC9E,MAAM,UAAU,GAAG,WAAW,CAAC,OAAO,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,WAAW,EAAE,GAAG,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;QAEnG,MAAM,EAAE,CAAC,QAAQ,CAAC,SAAS,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;KACnD;IAED,OAAO;QACL,OAAO,EAAE,IAAI;KACd,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../builders/run-script/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;;AAEvD,wBA0BG"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const architect_1 = require("@angular-devkit/architect");
|
|
4
|
+
const schematics_1 = require("@o3r/schematics");
|
|
5
|
+
const node_child_process_1 = require("node:child_process");
|
|
6
|
+
const node_path_1 = require("node:path");
|
|
7
|
+
const fs = require("node:fs");
|
|
8
|
+
exports.default = (0, architect_1.createBuilder)(async (options, context) => {
|
|
9
|
+
context.reportRunning();
|
|
10
|
+
context.reportProgress(1, 1, `Running ${options.script} !!!`);
|
|
11
|
+
const specifiedRoot = context.target?.project && (await context.getProjectMetadata(context.target.project)).root?.toString();
|
|
12
|
+
const projectRoot = specifiedRoot ? (0, node_path_1.resolve)(context.workspaceRoot, specifiedRoot) : context.currentDirectory;
|
|
13
|
+
const angularJsonPath = (0, node_path_1.join)(context.workspaceRoot, 'angular.json');
|
|
14
|
+
const angularJson = fs.existsSync(angularJsonPath) ? JSON.parse(fs.readFileSync(angularJsonPath, { encoding: 'utf8' }).toString()) : undefined;
|
|
15
|
+
if (!angularJson) {
|
|
16
|
+
context.logger.warn(`angular.json file cannot be found by @o3r/core:${context.builder.builderName} builder.
|
|
17
|
+
Detection of package manager runner will fallback on the one used to execute the actual command.`);
|
|
18
|
+
}
|
|
19
|
+
const pmr = (0, schematics_1.getPackageManagerRunner)(angularJson);
|
|
20
|
+
try {
|
|
21
|
+
(0, node_child_process_1.execSync)(`${pmr} ${options.script}`, {
|
|
22
|
+
stdio: ['inherit', 'inherit', 'inherit'],
|
|
23
|
+
cwd: projectRoot,
|
|
24
|
+
env: {
|
|
25
|
+
...process.env
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
return { success: true };
|
|
29
|
+
}
|
|
30
|
+
catch (e) {
|
|
31
|
+
return { success: false, error: e.message || e.toString() };
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../builders/run-script/index.ts"],"names":[],"mappings":";;AACA,yDAAyE;AACzE,gDAA0D;AAC1D,2DAA8C;AAC9C,yCAA0C;AAC1C,8BAA8B;AAG9B,kBAAe,IAAA,yBAAa,EAAyB,KAAK,EAAE,OAAO,EAAE,OAAO,EAA0B,EAAE;IACtG,OAAO,CAAC,aAAa,EAAE,CAAC;IACxB,OAAO,CAAC,cAAc,CAAC,CAAC,EAAE,CAAC,EAAE,WAAW,OAAO,CAAC,MAAM,MAAM,CAAC,CAAC;IAC9D,MAAM,aAAa,GAAG,OAAO,CAAC,MAAM,EAAE,OAAO,IAAI,CAAC,MAAM,OAAO,CAAC,kBAAkB,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,EAAE,QAAQ,EAAE,CAAC;IAC7H,MAAM,WAAW,GAAG,aAAa,CAAC,C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,sBAAsB;IACrC,+DAA+D;IAC/D,MAAM,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../builders/run-script/schema.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"$id": "RunScriptBuilderSchema",
|
|
5
|
+
"title": "Run script builder",
|
|
6
|
+
"description": "Run a script defined in package.json",
|
|
7
|
+
"properties": {
|
|
8
|
+
"script": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "A script name in the project's `package.json` file."
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"additionalProperties": false,
|
|
14
|
+
"required": ["script"]
|
|
15
|
+
}
|
package/builders.json
CHANGED
|
@@ -25,6 +25,11 @@
|
|
|
25
25
|
"implementation": "./builders/ngc/",
|
|
26
26
|
"schema": "./builders/ngc/schema.json",
|
|
27
27
|
"description": "Perform a ngc build"
|
|
28
|
+
},
|
|
29
|
+
"run-script": {
|
|
30
|
+
"implementation": "./builders/run-script/",
|
|
31
|
+
"schema": "./builders/run-script/schema.json",
|
|
32
|
+
"description": "Run a script from package.json"
|
|
28
33
|
}
|
|
29
34
|
}
|
|
30
35
|
}
|
package/collection.json
CHANGED
|
@@ -83,29 +83,6 @@
|
|
|
83
83
|
"factory": "./schematics/renovate/index#ngGenerateRenovateBotComponent",
|
|
84
84
|
"schema": "./schematics/renovate/schema.json"
|
|
85
85
|
},
|
|
86
|
-
"library": {
|
|
87
|
-
"description": "Generate a new Otter compatible module",
|
|
88
|
-
"factory": "./schematics/library/index#generateModule",
|
|
89
|
-
"schema": "./schematics/library/schema.json",
|
|
90
|
-
"aliases": [
|
|
91
|
-
"new-module",
|
|
92
|
-
"module",
|
|
93
|
-
"libs"
|
|
94
|
-
]
|
|
95
|
-
},
|
|
96
|
-
"application": {
|
|
97
|
-
"description": "Generate a new Otter Application",
|
|
98
|
-
"factory": "./schematics/application/index#generateApplication",
|
|
99
|
-
"schema": "./schematics/application/schema.json",
|
|
100
|
-
"aliases": [
|
|
101
|
-
"new-application", "app"
|
|
102
|
-
]
|
|
103
|
-
},
|
|
104
|
-
"sdk": {
|
|
105
|
-
"description": "Generate a new SDK package in an Otter project",
|
|
106
|
-
"factory": "./schematics/sdk/index#generateSdk",
|
|
107
|
-
"schema": "./schematics/sdk/schema.json"
|
|
108
|
-
},
|
|
109
86
|
"show-modules": {
|
|
110
87
|
"description": "Show available Otter modules",
|
|
111
88
|
"factory": "./schematics/show-modules/index#ngShowModules",
|
|
@@ -9,23 +9,26 @@ export interface BootstrapConfig {
|
|
|
9
9
|
export interface Dataset {
|
|
10
10
|
/**
|
|
11
11
|
* Bootstrap configuration
|
|
12
|
-
*
|
|
13
12
|
* @example
|
|
13
|
+
* ```typescript
|
|
14
14
|
* '{ environment: 'prod' }'
|
|
15
|
+
* ```
|
|
15
16
|
*/
|
|
16
17
|
bootstrapconfig?: string;
|
|
17
18
|
/**
|
|
18
19
|
* Dynamic content path
|
|
19
|
-
*
|
|
20
20
|
* @example
|
|
21
|
+
* ```typescript
|
|
21
22
|
* 'my/dynamic/path'
|
|
23
|
+
* ```
|
|
22
24
|
*/
|
|
23
25
|
dynamiccontentpath?: string;
|
|
24
26
|
/**
|
|
25
27
|
* Application basehref url
|
|
26
|
-
*
|
|
27
28
|
* @example
|
|
29
|
+
* ```typescript
|
|
28
30
|
* '/my/base/href'
|
|
31
|
+
* ```
|
|
29
32
|
*/
|
|
30
33
|
appbasehref?: string;
|
|
31
34
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dgp.interfaces.d.ts","sourceRoot":"","sources":["../../../src/core/application/dgp.interfaces.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAE9B;;;OAGG;IACH,WAAW,EAAE,MAAM,GAAG,KAAK,CAAC;CAE7B;AAED,4DAA4D;AAC5D,MAAM,WAAW,OAAO;IACtB
|
|
1
|
+
{"version":3,"file":"dgp.interfaces.d.ts","sourceRoot":"","sources":["../../../src/core/application/dgp.interfaces.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAE9B;;;OAGG;IACH,WAAW,EAAE,MAAM,GAAG,KAAK,CAAC;CAE7B;AAED,4DAA4D;AAC5D,MAAM,WAAW,OAAO;IACtB;;;;;;OAMG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;;;;;OAMG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CAEtB"}
|
|
@@ -6,12 +6,26 @@ export interface WindowWithDevtools extends Window {
|
|
|
6
6
|
/** Common option used by the different DevKit services */
|
|
7
7
|
export interface DevtoolsCommonOptions {
|
|
8
8
|
/**
|
|
9
|
-
* Activated the application bootstrap
|
|
10
|
-
*
|
|
9
|
+
* Activated on the application bootstrap
|
|
11
10
|
* @default false
|
|
12
11
|
*/
|
|
13
12
|
isActivatedOnBootstrap: boolean;
|
|
14
13
|
}
|
|
14
|
+
/** Common option used by the different Contextualization DevKit services */
|
|
15
|
+
export interface ContextualizationDevtoolsCommonOptions {
|
|
16
|
+
/**
|
|
17
|
+
* Activated on the application bootstrap when integrated in CMS context
|
|
18
|
+
* @default true
|
|
19
|
+
*/
|
|
20
|
+
isActivatedOnBootstrapWhenCMSContext: boolean;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Dataset injected on the page when in CMS context
|
|
24
|
+
*/
|
|
25
|
+
export interface ContextualizationDataset {
|
|
26
|
+
/** `"true"` when in CMS context */
|
|
27
|
+
cmscontext?: string;
|
|
28
|
+
}
|
|
15
29
|
/** Interface describing an Otter Devtools service */
|
|
16
30
|
export interface DevtoolsServiceInterface {
|
|
17
31
|
/** Activate the devtools service */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devtools.interface.d.ts","sourceRoot":"","sources":["../../../src/core/devkit/devtools.interface.ts"],"names":[],"mappings":"AAAA,8DAA8D;AAC9D,MAAM,WAAW,kBAAmB,SAAQ,MAAM;IAChD,8BAA8B;IAE9B,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACxC;AAED,0DAA0D;AAC1D,MAAM,WAAW,qBAAqB;IACpC
|
|
1
|
+
{"version":3,"file":"devtools.interface.d.ts","sourceRoot":"","sources":["../../../src/core/devkit/devtools.interface.ts"],"names":[],"mappings":"AAAA,8DAA8D;AAC9D,MAAM,WAAW,kBAAmB,SAAQ,MAAM;IAChD,8BAA8B;IAE9B,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACxC;AAED,0DAA0D;AAC1D,MAAM,WAAW,qBAAqB;IACpC;;;OAGG;IACH,sBAAsB,EAAE,OAAO,CAAC;CACjC;AAED,4EAA4E;AAC5E,MAAM,WAAW,sCAAsC;IACrD;;;OAGG;IACH,oCAAoC,EAAE,OAAO,CAAC;CAC/C;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,mCAAmC;IACnC,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,qDAAqD;AACrD,MAAM,WAAW,wBAAwB;IACvC,oCAAoC;IACpC,QAAQ,IAAI,IAAI,CAAC;CAClB"}
|
package/core/index.d.ts
CHANGED
package/core/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC"}
|
package/core/index.js
CHANGED
package/core/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Observable } from 'rxjs';
|
|
1
2
|
/**
|
|
2
3
|
* Types available for configuration
|
|
3
4
|
*/
|
|
@@ -9,28 +10,12 @@ export type ConfigurationValueType = string | number | boolean;
|
|
|
9
10
|
export interface NestedConfiguration {
|
|
10
11
|
[key: string]: ConfigurationValueType;
|
|
11
12
|
}
|
|
12
|
-
/**
|
|
13
|
-
* @Deprecated will be removed in v10. Please use Configuration instead
|
|
14
|
-
* Generic configuration
|
|
15
|
-
*/
|
|
16
|
-
export interface LegacyConfiguration {
|
|
17
|
-
[key: string]: ConfigurationValueType | Partial<LegacyConfiguration> | (ConfigurationValueType | Partial<LegacyConfiguration>)[] | undefined;
|
|
18
|
-
}
|
|
19
13
|
/**
|
|
20
14
|
* Interface of configuration that is supported by the cms
|
|
21
15
|
*/
|
|
22
|
-
export interface
|
|
16
|
+
export interface Configuration {
|
|
23
17
|
[key: string]: ConfigurationValueType | (string | NestedConfiguration)[];
|
|
24
18
|
}
|
|
25
|
-
/**
|
|
26
|
-
* Configuration mode
|
|
27
|
-
*/
|
|
28
|
-
export type ConfigurationMode = 'legacy' | 'strict';
|
|
29
|
-
/**
|
|
30
|
-
* Interface of configuration that is supported by the cms
|
|
31
|
-
* NOTE: specify "legacy" as parameter type to disable strict mode and allow values not supported by the CMS. This option is strongly not recommended and deprecated.
|
|
32
|
-
*/
|
|
33
|
-
export type Configuration<T extends ConfigurationMode = 'strict'> = T extends 'strict' ? StrictConfiguration : LegacyConfiguration;
|
|
34
19
|
/** Configuration model exported by the CMS */
|
|
35
20
|
export interface CustomConfig<T extends Partial<Configuration> = Partial<Configuration>> {
|
|
36
21
|
/** Component name */
|
|
@@ -40,6 +25,28 @@ export interface CustomConfig<T extends Partial<Configuration> = Partial<Configu
|
|
|
40
25
|
/** Component configuration as key value pairs */
|
|
41
26
|
config: T;
|
|
42
27
|
}
|
|
28
|
+
/**
|
|
29
|
+
* Dynamically Configurable item
|
|
30
|
+
*/
|
|
31
|
+
export interface DynamicConfigurable<T extends Configuration> {
|
|
32
|
+
/**
|
|
33
|
+
* Configuration override
|
|
34
|
+
*/
|
|
35
|
+
config: Partial<T> | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* Configuration stream
|
|
38
|
+
*/
|
|
39
|
+
config$: Observable<T>;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Configurable item
|
|
43
|
+
*/
|
|
44
|
+
export interface Configurable<T extends {}> {
|
|
45
|
+
/**
|
|
46
|
+
* Configuration
|
|
47
|
+
*/
|
|
48
|
+
config: T;
|
|
49
|
+
}
|
|
43
50
|
/**
|
|
44
51
|
* Description of a configuration property extracted to the CMS
|
|
45
52
|
*/
|
|
@@ -51,4 +58,19 @@ export interface CategoryDescription {
|
|
|
51
58
|
}
|
|
52
59
|
/** Types of components config */
|
|
53
60
|
export type ConfigType = 'Block' | 'Page' | 'AppRuntimeConfiguration' | 'AppBuildConfiguration' | 'ExposedComponent';
|
|
61
|
+
/**
|
|
62
|
+
* Interface to define widget parameter to be used on CMS side
|
|
63
|
+
*/
|
|
64
|
+
export interface ConfigPropertyWidgetParameters {
|
|
65
|
+
[parameterName: string]: string | boolean | number | string[] | boolean[] | number[];
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Interface to define the widget to be used on CMS side
|
|
69
|
+
*/
|
|
70
|
+
export interface ConfigPropertyWidget {
|
|
71
|
+
/** Type of the CMS widget */
|
|
72
|
+
type: string;
|
|
73
|
+
/** Parameters provided to the CMS widget */
|
|
74
|
+
parameters?: ConfigPropertyWidgetParameters;
|
|
75
|
+
}
|
|
54
76
|
//# sourceMappingURL=configuration.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configuration.d.ts","sourceRoot":"","sources":["../../../src/core/interfaces/configuration.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAE/D;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC,CAAC,GAAG,EAAE,MAAM,GAAG,sBAAsB,CAAC;CACvC;AAED
|
|
1
|
+
{"version":3,"file":"configuration.d.ts","sourceRoot":"","sources":["../../../src/core/interfaces/configuration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAEvC;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAE/D;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC,CAAC,GAAG,EAAE,MAAM,GAAG,sBAAsB,CAAC;CACvC;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,CAAC,GAAG,EAAE,MAAM,GA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{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC"}
|
package/core/interfaces/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC"}
|
|
@@ -25,7 +25,6 @@ export interface OtterComponentInfo extends OtterComponentInfoToProvide {
|
|
|
25
25
|
export declare const otterComponentInfoPropertyName = "__otter-info__";
|
|
26
26
|
/**
|
|
27
27
|
* Decorates an Angular component to provide Otter information
|
|
28
|
-
*
|
|
29
28
|
* @param info Information to define the Otter component
|
|
30
29
|
* @returns the component with the information
|
|
31
30
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.decorator.d.ts","sourceRoot":"","sources":["../../../src/core/metadata/component.decorator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAE/C,wBAAwB;AACxB,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,MAAM,GAAG,kBAAkB,GAAG,WAAW,CAAC;AAEhF;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,wBAAwB;IACxB,aAAa,EAAE,aAAa,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,kBAAmB,SAAQ,2BAA2B;IACrE,uBAAuB;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,uBAAuB;IACvB,YAAY,CAAC,EAAE,WAAW,CAAC;IAC3B,qBAAqB;IACrB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,eAAO,MAAM,8BAA8B,mBAAmB,CAAC;AAE/D
|
|
1
|
+
{"version":3,"file":"component.decorator.d.ts","sourceRoot":"","sources":["../../../src/core/metadata/component.decorator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAE/C,wBAAwB;AACxB,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,MAAM,GAAG,kBAAkB,GAAG,WAAW,CAAC;AAEhF;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,wBAAwB;IACxB,aAAa,EAAE,aAAa,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,kBAAmB,SAAQ,2BAA2B;IACrE,uBAAuB;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,uBAAuB;IACvB,YAAY,CAAC,EAAE,WAAW,CAAC;IAC3B,qBAAqB;IACrB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,eAAO,MAAM,8BAA8B,mBAAmB,CAAC;AAE/D;;;;GAIG;AAEH,wBAAgB,YAAY,CAAC,IAAI,EAAE,2BAA2B,4BAC5B,GAAG,EAAE,KAAK,MAAM,uBAKjD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.decorator.js","sourceRoot":"","sources":["../../../src/core/metadata/component.decorator.ts"],"names":[],"mappings":"AAyBA;;GAEG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG,gBAAgB,CAAC;AAE/D
|
|
1
|
+
{"version":3,"file":"component.decorator.js","sourceRoot":"","sources":["../../../src/core/metadata/component.decorator.ts"],"names":[],"mappings":"AAyBA;;GAEG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG,gBAAgB,CAAC;AAE/D;;;;GAIG;AACH,gEAAgE;AAChE,MAAM,UAAU,YAAY,CAAC,IAAiC;IAC5D,OAAO,CAA2C,WAAc,EAAE,EAAE;QAClE,MAAM,aAAa,GAAG,WAAW,CAAC,IAAI,CAAC;QACvC,WAAW,CAAC,SAAS,CAAC,8BAA8B,CAAC,GAAG,EAAC,GAAG,IAAI,EAAE,aAAa,EAAC,CAAC;QACjF,OAAO,WAAW,CAAC;IACrB,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Compute the name of the component with the library's name to generate unique component identifier used in metadata and different modules
|
|
3
|
+
* @param componentName Name of the component to get the configuration
|
|
4
|
+
* @param libraryName Name of the library the component is coming from
|
|
5
|
+
*/
|
|
6
|
+
export declare function computeItemIdentifier(componentName: string, libraryName?: string): string;
|
|
7
|
+
//# sourceMappingURL=component.identifier.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component.identifier.d.ts","sourceRoot":"","sources":["../../../src/core/metadata/component.identifier.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,aAAa,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,UAEhF"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Compute the name of the component with the library's name to generate unique component identifier used in metadata and different modules
|
|
3
|
+
* @param componentName Name of the component to get the configuration
|
|
4
|
+
* @param libraryName Name of the library the component is coming from
|
|
5
|
+
*/
|
|
6
|
+
export function computeItemIdentifier(componentName, libraryName) {
|
|
7
|
+
return (libraryName ? libraryName + '#' : '') + componentName;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=component.identifier.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component.identifier.js","sourceRoot":"","sources":["../../../src/core/metadata/component.identifier.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,UAAU,qBAAqB,CAAC,aAAqB,EAAE,WAAoB;IAC/E,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,WAAW,GAAG,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,aAAa,CAAC;AAChE,CAAC"}
|
package/core/metadata/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/metadata/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/metadata/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC"}
|