@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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/library/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,IAAI,EAAsB,MAAM,4BAA4B,CAAC;AAGnF,OAAO,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAKlD;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,sBAAsB,GAAG,IAAI,CA2BpE"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.generateModule = void 0;
|
|
4
|
-
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
|
-
const path = require("node:path");
|
|
6
|
-
const schematics_2 = require("@o3r/schematics");
|
|
7
|
-
const tasks_1 = require("@angular-devkit/schematics/tasks");
|
|
8
|
-
const rules_nx_1 = require("./rules/rules.nx");
|
|
9
|
-
const rules_ng_1 = require("./rules/rules.ng");
|
|
10
|
-
/**
|
|
11
|
-
* Add an Otter compatible module to a monorepo
|
|
12
|
-
*
|
|
13
|
-
* @param options Schematic options
|
|
14
|
-
*/
|
|
15
|
-
function generateModule(options) {
|
|
16
|
-
return (tree, context) => {
|
|
17
|
-
const cleanName = schematics_1.strings.dasherize(options.name);
|
|
18
|
-
const isNx = (0, schematics_2.isNxContext)(tree);
|
|
19
|
-
const config = (0, schematics_2.getWorkspaceConfig)(tree);
|
|
20
|
-
if (!config) {
|
|
21
|
-
throw new Error('No workspace configuration file found');
|
|
22
|
-
}
|
|
23
|
-
const defaultRoot = (0, schematics_2.getPackagesBaseRootFolder)(tree, context, config, 'library');
|
|
24
|
-
/** Path to the folder where generate the new module */
|
|
25
|
-
const targetPath = path.posix.resolve('/', options.path || defaultRoot, cleanName);
|
|
26
|
-
const extendedOptions = { ...options, targetPath, name: cleanName };
|
|
27
|
-
return (0, schematics_1.chain)([
|
|
28
|
-
isNx ? (0, rules_nx_1.nxGenerateModule)(extendedOptions) : (0, rules_ng_1.ngGenerateModule)(extendedOptions),
|
|
29
|
-
// TODO: Waiting for ng-add clean up to uncomment following line hand run ng-add @o3r/core to generated library
|
|
30
|
-
// (t, c) => schematic('ng-add', { ...options, projectName })(t, c),
|
|
31
|
-
(t, c) => (0, schematics_1.schematic)('ng-add-create', { name: options.name, path: targetPath })(t, c),
|
|
32
|
-
options.skipLinter ? (0, schematics_1.noop)() : (0, schematics_2.applyEsLintFix)(),
|
|
33
|
-
options.skipInstall ? (0, schematics_1.noop)() : (t, c) => {
|
|
34
|
-
c.addTask(new tasks_1.NodePackageInstallTask());
|
|
35
|
-
return t;
|
|
36
|
-
}
|
|
37
|
-
])(tree, context);
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
exports.generateModule = generateModule;
|
|
41
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../schematics/library/index.ts"],"names":[],"mappings":";;;AAAA,2DAAmF;AACnF,kCAAkC;AAClC,gDAA6G;AAE7G,4DAA0E;AAC1E,+CAAoD;AACpD,+CAAoD;AAEpD;;;;GAIG;AACH,SAAgB,cAAc,CAAC,OAA+B;IAE5D,OAAO,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE;QACvB,MAAM,SAAS,GAAG,oBAAO,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAClD,MAAM,IAAI,GAAG,IAAA,wBAAW,EAAC,IAAI,CAAC,CAAC;QAC/B,MAAM,MAAM,GAAG,IAAA,+BAAkB,EAAC,IAAI,CAAC,CAAC;QACxC,IAAI,CAAC,MAAM,EAAE;YACX,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;SAC1D;QACD,MAAM,WAAW,GAAG,IAAA,sCAAyB,EAAC,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC;QAEhF,uDAAuD;QACvD,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,OAAO,CAAC,IAAI,IAAI,WAAW,EAAE,SAAS,CAAC,CAAC;QACnF,MAAM,eAAe,GAAG,EAAE,GAAG,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QAEpE,OAAO,IAAA,kBAAK,EAAC;YACX,IAAI,CAAC,CAAC,CAAC,IAAA,2BAAgB,EAAC,eAAe,CAAC,CAAC,CAAC,CAAC,IAAA,2BAAgB,EAAC,eAAe,CAAC;YAC5E,+GAA+G;YAC/G,oEAAoE;YACpE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,IAAA,sBAAS,EAAC,eAAe,EAAE,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;YACpF,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,IAAA,iBAAI,GAAE,CAAC,CAAC,CAAC,IAAA,2BAAc,GAAE;YAC9C,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,IAAA,iBAAI,GAAE,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;gBACtC,CAAC,CAAC,OAAO,CAAC,IAAI,8BAAsB,EAAE,CAAC,CAAC;gBACxC,OAAO,CAAC,CAAC;YACX,CAAC;SACF,CAAC,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IACpB,CAAC,CAAC;AACJ,CAAC;AA3BD,wCA2BC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { NgGenerateModuleSchema } from '../schema';
|
|
2
|
-
import { Rule } from '@angular-devkit/schematics';
|
|
3
|
-
/**
|
|
4
|
-
* generate the rules to adapt the library generated by ng cli
|
|
5
|
-
* @param options.targetPath Path where the library has been generated
|
|
6
|
-
* @param options Schematic options
|
|
7
|
-
*/
|
|
8
|
-
export declare function ngGenerateModule(options: NgGenerateModuleSchema & {
|
|
9
|
-
targetPath: string;
|
|
10
|
-
}): Rule;
|
|
11
|
-
//# sourceMappingURL=rules.ng.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rules.ng.d.ts","sourceRoot":"","sources":["../../../../schematics/library/rules/rules.ng.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AAGxD,OAAO,EAAwF,IAAI,EAAiB,MAAM,4BAA4B,CAAC;AAKvJ;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,sBAAsB,GAAG;IAAE,UAAU,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAuG/F"}
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ngGenerateModule = void 0;
|
|
4
|
-
const schematics_1 = require("@o3r/schematics");
|
|
5
|
-
const ts = require("typescript");
|
|
6
|
-
const schematics_2 = require("@angular-devkit/schematics");
|
|
7
|
-
const path = require("node:path");
|
|
8
|
-
const node_fs_1 = require("node:fs");
|
|
9
|
-
const shared_1 = require("./shared");
|
|
10
|
-
/**
|
|
11
|
-
* generate the rules to adapt the library generated by ng cli
|
|
12
|
-
* @param options.targetPath Path where the library has been generated
|
|
13
|
-
* @param options Schematic options
|
|
14
|
-
*/
|
|
15
|
-
function ngGenerateModule(options) {
|
|
16
|
-
/**
|
|
17
|
-
* Update Ng templates
|
|
18
|
-
* @param tree File tree
|
|
19
|
-
* @param context Context of the schematics
|
|
20
|
-
*/
|
|
21
|
-
const updateNgTemplate = (tree, context) => {
|
|
22
|
-
const o3rCorePackageJsonPath = path.resolve(__dirname, '..', '..', '..', 'package.json');
|
|
23
|
-
const o3rCorePackageJson = JSON.parse((0, node_fs_1.readFileSync)(o3rCorePackageJsonPath).toString());
|
|
24
|
-
const otterVersion = o3rCorePackageJson.dependencies['@o3r/schematics'];
|
|
25
|
-
const templateNg = (0, schematics_2.apply)((0, schematics_2.url)('./templates/ng'), [
|
|
26
|
-
(0, schematics_2.template)({
|
|
27
|
-
...options,
|
|
28
|
-
runner: process.env.npm_execpath && /[\\/][^\\/]yarn[^\\/]js$/.test(process.env.npm_execpath) ? 'yarn run' : 'npm run',
|
|
29
|
-
tsconfigSpecPath: (0, schematics_1.findConfigFileRelativePath)(tree, ['tsconfig.test.json', 'tsconfig.spec.json', 'tsconfig.jest.json', 'tsconfig.jasmine.json', 'tsconfig.base.json', 'tsconfig.json'], options.targetPath),
|
|
30
|
-
tsconfigBasePath: (0, schematics_1.findConfigFileRelativePath)(tree, ['tsconfig.base.json', 'tsconfig.json'], options.targetPath),
|
|
31
|
-
tsconfigBuildPath: (0, schematics_1.findConfigFileRelativePath)(tree, ['tsconfig.build.json', 'tsconfig.base.json', 'tsconfig.json'], options.targetPath),
|
|
32
|
-
eslintRcPath: (0, schematics_1.findConfigFileRelativePath)(tree, ['.eslintrc.json', '.eslintrc.js'], options.targetPath)
|
|
33
|
-
}),
|
|
34
|
-
(0, schematics_2.renameTemplateFiles)(),
|
|
35
|
-
(0, schematics_2.move)(options.targetPath)
|
|
36
|
-
]);
|
|
37
|
-
return (0, schematics_2.chain)([
|
|
38
|
-
(0, schematics_2.mergeWith)(templateNg, schematics_2.MergeStrategy.Overwrite),
|
|
39
|
-
(0, shared_1.updatePackageDependenciesFactory)(options.targetPath, otterVersion, o3rCorePackageJson, options),
|
|
40
|
-
(0, shared_1.updateNgPackagrFactory)(options.targetPath)
|
|
41
|
-
])(tree, context);
|
|
42
|
-
};
|
|
43
|
-
/**
|
|
44
|
-
* Update the tsconfig generated by the Angular library generator
|
|
45
|
-
* @param tree File tree
|
|
46
|
-
* @param context Context of the schematics
|
|
47
|
-
*/
|
|
48
|
-
const updateLibTsconfig = (tree, context) => {
|
|
49
|
-
const tsconfigPath = path.posix.join(options.path || '', options.name, 'tsconfig.lib.json');
|
|
50
|
-
if (!tree.exists(tsconfigPath)) {
|
|
51
|
-
context.logger.warn(`The file ${tsconfigPath} was not found, the update will not be applied`);
|
|
52
|
-
return tree;
|
|
53
|
-
}
|
|
54
|
-
const tsconfig = ts.parseConfigFileTextToJson(tsconfigPath, tree.readText(tsconfigPath));
|
|
55
|
-
if (!tsconfig || !tsconfig.config) {
|
|
56
|
-
context.logger.error(`Error parsing ${tsconfigPath}, the update will not be applied`, tsconfig?.error);
|
|
57
|
-
return tree;
|
|
58
|
-
}
|
|
59
|
-
tsconfig.config.extends = path.posix.resolve(path.relative(options.path || '.', '.'), 'tsconfig.base.json');
|
|
60
|
-
tree.overwrite(tsconfigPath, JSON.stringify(tsconfig, null, 2));
|
|
61
|
-
return tree;
|
|
62
|
-
};
|
|
63
|
-
/**
|
|
64
|
-
* Update the root tsconfig files mappings
|
|
65
|
-
* @param tree File tree
|
|
66
|
-
* @param context Context of the schematics
|
|
67
|
-
*/
|
|
68
|
-
const updateTsConfigFiles = (tree, context) => {
|
|
69
|
-
const tsconfigBase = (0, schematics_1.findConfigFileRelativePath)(tree, ['tsconfig.base.json', 'tsconfig.json'], '/');
|
|
70
|
-
const tsconfigBuild = (0, schematics_1.findConfigFileRelativePath)(tree, ['tsconfig.build.json'], '/');
|
|
71
|
-
if (tsconfigBase) {
|
|
72
|
-
const configFile = tree.readJson(tsconfigBase);
|
|
73
|
-
if (configFile?.compilerOptions?.paths) {
|
|
74
|
-
configFile.compilerOptions.paths[options.name] = [path.posix.join(options.path || '', options.name, 'src', 'public_api')];
|
|
75
|
-
tree.overwrite(tsconfigBase, JSON.stringify(configFile, null, 2));
|
|
76
|
-
}
|
|
77
|
-
else {
|
|
78
|
-
context.logger.warn(`${tsconfigBase} does not contain path mapping, the edition will be skipped`);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
else {
|
|
82
|
-
context.logger.warn('No base TsConfig file found');
|
|
83
|
-
}
|
|
84
|
-
if (tsconfigBuild) {
|
|
85
|
-
const configFile = tree.readJson(tsconfigBuild);
|
|
86
|
-
if (configFile?.compilerOptions?.paths) {
|
|
87
|
-
configFile.compilerOptions.paths[options.name] = [
|
|
88
|
-
path.posix.join(options.path || '', options.name, 'dist'),
|
|
89
|
-
path.posix.join(options.path || '', options.name, 'src', 'public_api')
|
|
90
|
-
];
|
|
91
|
-
tree.overwrite(tsconfigBuild, JSON.stringify(configFile, null, 2));
|
|
92
|
-
}
|
|
93
|
-
else {
|
|
94
|
-
context.logger.warn(`${tsconfigBuild} does not contain path mapping, the edition will be skipped`);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
};
|
|
98
|
-
const ngCliUpdate = (tree, context) => {
|
|
99
|
-
return (0, schematics_2.chain)([
|
|
100
|
-
(t, c) => (0, schematics_2.externalSchematic)('@schematics/angular', 'library', {
|
|
101
|
-
name: options.name,
|
|
102
|
-
projectRoot: options.targetPath,
|
|
103
|
-
prefix: options.prefix
|
|
104
|
-
})(t, c),
|
|
105
|
-
updateNgTemplate,
|
|
106
|
-
updateLibTsconfig,
|
|
107
|
-
updateTsConfigFiles
|
|
108
|
-
])(tree, context);
|
|
109
|
-
};
|
|
110
|
-
return ngCliUpdate;
|
|
111
|
-
}
|
|
112
|
-
exports.ngGenerateModule = ngGenerateModule;
|
|
113
|
-
//# sourceMappingURL=rules.ng.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rules.ng.js","sourceRoot":"","sources":["../../../../schematics/library/rules/rules.ng.ts"],"names":[],"mappings":";;;AAEA,gDAA6D;AAC7D,iCAAiC;AACjC,2DAAuJ;AACvJ,kCAAkC;AAClC,qCAAuC;AACvC,qCAAoF;AAEpF;;;;GAIG;AACH,SAAgB,gBAAgB,CAAC,OAAwD;IACvF;;;;OAIG;IACH,MAAM,gBAAgB,GAAS,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE;QAC/C,MAAM,sBAAsB,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC;QACzF,MAAM,kBAAkB,GAAqE,IAAI,CAAC,KAAK,CAAC,IAAA,sBAAY,EAAC,sBAAsB,CAAE,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC1J,MAAM,YAAY,GAAG,kBAAkB,CAAC,YAAa,CAAC,iBAAiB,CAAC,CAAC;QAEzE,MAAM,UAAU,GAAG,IAAA,kBAAK,EAAC,IAAA,gBAAG,EAAC,gBAAgB,CAAC,EAAE;YAC9C,IAAA,qBAAQ,EAAC;gBACP,GAAG,OAAO;gBACV,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,YAAY,IAAI,0BAA0B,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC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E,OAAO,EAAE,EAAE;QAC1C,OAAO,IAAA,kBAAK,EAAC;YACX,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,IAAA,8BAAiB,EAAC,qBAAqB,EAAE,SAAS,EAAE;gBAC5D,IAAI,EAAE,OAAO,CAAC,IAAI;gBAClB,WAAW,EAAE,OAAO,CAAC,UAAU;gBAC/B,MAAM,EAAE,OAAO,CAAC,MAAM;aACvB,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;YACR,gBAAgB;YAChB,iBAAiB;YACjB,mBAAmB;SACpB,CAAC,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IACpB,CAAC,CAAC;IAEF,OAAO,WAAW,CAAC;AACrB,CAAC;AAvGD,4CAuGC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { NgGenerateModuleSchema } from '../schema';
|
|
2
|
-
import { Rule } from '@angular-devkit/schematics';
|
|
3
|
-
/**
|
|
4
|
-
* generate the rules to adapt the library generated by nx cli
|
|
5
|
-
*
|
|
6
|
-
* @param options
|
|
7
|
-
* @param rootPath
|
|
8
|
-
*/
|
|
9
|
-
export declare function nxGenerateModule(options: NgGenerateModuleSchema): Rule;
|
|
10
|
-
//# sourceMappingURL=rules.nx.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rules.nx.d.ts","sourceRoot":"","sources":["../../../../schematics/library/rules/rules.nx.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AACxD,OAAO,EAAwF,IAAI,EAAuB,MAAM,4BAA4B,CAAC;AAM7J;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,sBAAsB,GAAG,IAAI,CAuHtE"}
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.nxGenerateModule = void 0;
|
|
4
|
-
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
|
-
const path = require("node:path");
|
|
6
|
-
const node_fs_1 = require("node:fs");
|
|
7
|
-
const shared_1 = require("./shared");
|
|
8
|
-
const schematics_2 = require("@o3r/schematics");
|
|
9
|
-
/**
|
|
10
|
-
* generate the rules to adapt the library generated by nx cli
|
|
11
|
-
*
|
|
12
|
-
* @param options
|
|
13
|
-
* @param rootPath
|
|
14
|
-
*/
|
|
15
|
-
function nxGenerateModule(options) {
|
|
16
|
-
/**
|
|
17
|
-
* Determine the path where NX schematic will generate the package
|
|
18
|
-
*
|
|
19
|
-
* @param tree
|
|
20
|
-
*/
|
|
21
|
-
const determineNxTargetFolder = (tree) => {
|
|
22
|
-
const { workspaceLayout } = tree.readJson('/nx.json');
|
|
23
|
-
return path.posix.join(workspaceLayout.libsDir, options.name);
|
|
24
|
-
};
|
|
25
|
-
/**
|
|
26
|
-
* Save the content of files before the process of Nx generation
|
|
27
|
-
*
|
|
28
|
-
* @param tree
|
|
29
|
-
*/
|
|
30
|
-
const savePreCommandContent = (tree) => {
|
|
31
|
-
const files = [
|
|
32
|
-
'/.vscode/extensions.json',
|
|
33
|
-
'.gitignore',
|
|
34
|
-
'.prettierignore',
|
|
35
|
-
'.prettierrc',
|
|
36
|
-
'jest.preset.js',
|
|
37
|
-
'nx.json',
|
|
38
|
-
'package.json'
|
|
39
|
-
];
|
|
40
|
-
return files.reduce((acc, file) => {
|
|
41
|
-
if (!tree.exists(file)) {
|
|
42
|
-
acc[file] = null;
|
|
43
|
-
return acc;
|
|
44
|
-
}
|
|
45
|
-
acc[file] = tree.read(file);
|
|
46
|
-
return acc;
|
|
47
|
-
}, {});
|
|
48
|
-
};
|
|
49
|
-
/**
|
|
50
|
-
* Restore the file saved
|
|
51
|
-
*
|
|
52
|
-
* @param mem
|
|
53
|
-
*/
|
|
54
|
-
const restoreFiles = (mem) => (tree) => {
|
|
55
|
-
Object.entries(mem)
|
|
56
|
-
.forEach(([file, content]) => {
|
|
57
|
-
if (content === null) {
|
|
58
|
-
if (tree.exists(file)) {
|
|
59
|
-
tree.delete(file);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
else {
|
|
63
|
-
tree.overwrite(file, content);
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
return tree;
|
|
67
|
-
};
|
|
68
|
-
/**
|
|
69
|
-
* Update Nx templates
|
|
70
|
-
*
|
|
71
|
-
* @param tree File tree
|
|
72
|
-
* @param context Context of the schematics
|
|
73
|
-
*/
|
|
74
|
-
const updateNxTemplate = (tree, context) => {
|
|
75
|
-
const rules = [];
|
|
76
|
-
let targetPath = determineNxTargetFolder(tree);
|
|
77
|
-
if (options.path) {
|
|
78
|
-
rules.push((0, schematics_1.move)(targetPath, options.path));
|
|
79
|
-
targetPath = options.path;
|
|
80
|
-
}
|
|
81
|
-
const o3rCorePackageJsonPath = path.resolve(__dirname, '..', '..', '..', 'package.json');
|
|
82
|
-
const o3rCorePackageJson = JSON.parse((0, node_fs_1.readFileSync)(o3rCorePackageJsonPath).toString());
|
|
83
|
-
const otterVersion = o3rCorePackageJson.dependencies['@o3r/schematics'];
|
|
84
|
-
const templateNx = (0, schematics_1.apply)((0, schematics_1.url)('./templates/nx'), [
|
|
85
|
-
(0, schematics_1.template)({
|
|
86
|
-
...options,
|
|
87
|
-
path: targetPath,
|
|
88
|
-
projectRoot: path.posix.resolve(targetPath, options.name),
|
|
89
|
-
otterVersion,
|
|
90
|
-
runner: (0, schematics_2.getPackageManagerRunner)((0, schematics_2.getWorkspaceConfig)(tree))
|
|
91
|
-
}),
|
|
92
|
-
(0, schematics_1.renameTemplateFiles)(),
|
|
93
|
-
(0, schematics_1.move)(targetPath)
|
|
94
|
-
]);
|
|
95
|
-
rules.push((0, schematics_1.mergeWith)(templateNx, schematics_1.MergeStrategy.Overwrite));
|
|
96
|
-
return (0, schematics_1.chain)([
|
|
97
|
-
...rules,
|
|
98
|
-
(0, shared_1.updatePackageDependenciesFactory)(targetPath, otterVersion, o3rCorePackageJson, options),
|
|
99
|
-
(0, shared_1.updateNgPackagrFactory)(targetPath),
|
|
100
|
-
(t) => {
|
|
101
|
-
const packageJson = t.readJson(path.posix.join(targetPath, 'package.json'));
|
|
102
|
-
packageJson.scripts ||= {};
|
|
103
|
-
packageJson.scripts.ng = 'nx';
|
|
104
|
-
t.overwrite(path.posix.join(targetPath, 'package.json'), JSON.stringify(packageJson, null, 2));
|
|
105
|
-
return t;
|
|
106
|
-
}
|
|
107
|
-
])(tree, context);
|
|
108
|
-
};
|
|
109
|
-
const nxCliUpdate = (tree, context) => {
|
|
110
|
-
const mem = savePreCommandContent(tree);
|
|
111
|
-
const config = {
|
|
112
|
-
name: options.name.replace(/^@/, '').replace('/', '-'),
|
|
113
|
-
importPath: options.name,
|
|
114
|
-
buildable: true,
|
|
115
|
-
publishable: true
|
|
116
|
-
};
|
|
117
|
-
return (0, schematics_1.chain)([
|
|
118
|
-
(t, c) => (0, schematics_1.externalSchematic)('@nx/angular', 'library', config)(t, c),
|
|
119
|
-
restoreFiles(mem),
|
|
120
|
-
updateNxTemplate
|
|
121
|
-
])(tree, context);
|
|
122
|
-
};
|
|
123
|
-
return nxCliUpdate;
|
|
124
|
-
}
|
|
125
|
-
exports.nxGenerateModule = nxGenerateModule;
|
|
126
|
-
//# sourceMappingURL=rules.nx.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rules.nx.js","sourceRoot":"","sources":["../../../../schematics/library/rules/rules.nx.ts"],"names":[],"mappings":";;;AAEA,2DAA6J;AAC7J,kCAAkC;AAClC,qCAAuC;AACvC,qCAAoF;AACpF,gDAA8E;AAE9E;;;;;GAKG;AACH,SAAgB,gBAAgB,CAAC,OAA+B;IAE9D;;;;OAIG;IACH,MAAM,uBAAuB,GAAG,CAAC,IAAU,EAAE,EAAE;QAC7C,MAAM,EAAE,eAAe,EAAE,GAAG,IAAI,CAAC,QAAQ,CAAC,UAAU,CAA6C,CAAC;QAClG,OAAO,IAA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AC;AACrB,CAAC;AAvHD,4CAuHC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { Rule } from '@angular-devkit/schematics';
|
|
2
|
-
import type { PackageJson } from 'type-fest';
|
|
3
|
-
import { NgGenerateModuleSchema } from '../schema';
|
|
4
|
-
/**
|
|
5
|
-
* Generate rule to update generated package.json file
|
|
6
|
-
* @param targetPath Path of the generated files
|
|
7
|
-
* @param otterVersion Current version of otter
|
|
8
|
-
* @param o3rCorePackageJson Content of core's package.json
|
|
9
|
-
* @param options Option of the schematic
|
|
10
|
-
*/
|
|
11
|
-
export declare function updatePackageDependenciesFactory(targetPath: string, otterVersion: string, o3rCorePackageJson: PackageJson & {
|
|
12
|
-
generatorDependencies?: Record<string, string>;
|
|
13
|
-
}, options: NgGenerateModuleSchema): Rule;
|
|
14
|
-
/**
|
|
15
|
-
* Generate rule to update generated ng-packagr.json file
|
|
16
|
-
* @param targetPath Path of the generated files
|
|
17
|
-
*/
|
|
18
|
-
export declare function updateNgPackagrFactory(targetPath: string): Rule;
|
|
19
|
-
//# sourceMappingURL=shared.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../schematics/library/rules/shared.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AAGnD;;;;;;GAMG;AACH,wBAAgB,gCAAgC,CAC5C,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,MAAM,EACpB,kBAAkB,EAAE,WAAW,GAAG;IAAE,qBAAqB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAAC,EACnF,OAAO,EAAE,sBAAsB,GAAG,IAAI,CAyDzC;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAO/D"}
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.updateNgPackagrFactory = exports.updatePackageDependenciesFactory = void 0;
|
|
4
|
-
const path = require("node:path");
|
|
5
|
-
const schematics_1 = require("@o3r/schematics");
|
|
6
|
-
/**
|
|
7
|
-
* Generate rule to update generated package.json file
|
|
8
|
-
* @param targetPath Path of the generated files
|
|
9
|
-
* @param otterVersion Current version of otter
|
|
10
|
-
* @param o3rCorePackageJson Content of core's package.json
|
|
11
|
-
* @param options Option of the schematic
|
|
12
|
-
*/
|
|
13
|
-
function updatePackageDependenciesFactory(targetPath, otterVersion, o3rCorePackageJson, options) {
|
|
14
|
-
return (tree) => {
|
|
15
|
-
/* eslint-disable @typescript-eslint/naming-convention */
|
|
16
|
-
const packageJson = tree.readJson(path.posix.join(targetPath, 'package.json'));
|
|
17
|
-
const runner = (0, schematics_1.getPackageManagerRunner)((0, schematics_1.getWorkspaceConfig)(tree));
|
|
18
|
-
packageJson.description = options.description || packageJson.description;
|
|
19
|
-
packageJson.scripts ||= {};
|
|
20
|
-
packageJson.scripts.build = `${runner} ng build ${options.name}`;
|
|
21
|
-
packageJson.scripts['prepare:build:builders'] = `${runner} cpy 'collection.json' dist && ${runner} cpy 'schematics/**/*.json' dist/schematics`;
|
|
22
|
-
packageJson.scripts['build:builders'] = 'tsc -b tsconfig.builders.json --pretty';
|
|
23
|
-
packageJson.peerDependencies ||= {};
|
|
24
|
-
packageJson.peerDependencies['@o3r/dev-tools'] = otterVersion;
|
|
25
|
-
packageJson.peerDependencies['@o3r/core'] = otterVersion;
|
|
26
|
-
packageJson.peerDependencies['@o3r/schematics'] = otterVersion;
|
|
27
|
-
packageJson.devDependencies ||= {};
|
|
28
|
-
packageJson.keywords ||= [];
|
|
29
|
-
packageJson.keywords.push('otter-module');
|
|
30
|
-
packageJson.version = '0.0.0-placeholder';
|
|
31
|
-
packageJson.devDependencies = {
|
|
32
|
-
...packageJson.devDependencies,
|
|
33
|
-
'@angular-devkit/build-angular': o3rCorePackageJson.peerDependencies['@angular-devkit/core'],
|
|
34
|
-
'@angular-devkit/core': o3rCorePackageJson.peerDependencies['@angular-devkit/core'],
|
|
35
|
-
'@angular-eslint/eslint-plugin': o3rCorePackageJson.generatorDependencies['@angular-eslint/eslint-plugin'],
|
|
36
|
-
'@angular/cli': packageJson.peerDependencies['@angular/common'],
|
|
37
|
-
'@angular/common': packageJson.peerDependencies['@angular/common'],
|
|
38
|
-
'@angular/compiler': packageJson.peerDependencies['@angular/common'],
|
|
39
|
-
'@angular/compiler-cli': packageJson.peerDependencies['@angular/common'],
|
|
40
|
-
'@angular/core': packageJson.peerDependencies['@angular/common'],
|
|
41
|
-
'@angular/platform-browser': packageJson.peerDependencies['@angular/common'],
|
|
42
|
-
'@angular/platform-browser-dynamic': packageJson.peerDependencies['@angular/common'],
|
|
43
|
-
'@o3r/core': otterVersion,
|
|
44
|
-
'@o3r/dev-tools': otterVersion,
|
|
45
|
-
'@o3r/eslint-plugin': otterVersion,
|
|
46
|
-
'@schematics/angular': o3rCorePackageJson.peerDependencies['@schematics/angular'],
|
|
47
|
-
'@types/jest': o3rCorePackageJson.generatorDependencies['@types/jest'],
|
|
48
|
-
'@typescript-eslint/eslint-plugin': o3rCorePackageJson.generatorDependencies['@typescript-eslint/parser'],
|
|
49
|
-
'@typescript-eslint/parser': o3rCorePackageJson.generatorDependencies['@typescript-eslint/parser'],
|
|
50
|
-
'cpy-cli': o3rCorePackageJson.generatorDependencies['cpy-cli'],
|
|
51
|
-
'eslint': o3rCorePackageJson.generatorDependencies.eslint,
|
|
52
|
-
'eslint-import-resolver-node': o3rCorePackageJson.generatorDependencies['eslint-import-resolver-node'],
|
|
53
|
-
'eslint-plugin-jest': o3rCorePackageJson.generatorDependencies['eslint-plugin-jest'],
|
|
54
|
-
'eslint-plugin-jsdoc': o3rCorePackageJson.generatorDependencies['eslint-plugin-jsdoc'],
|
|
55
|
-
'eslint-plugin-prefer-arrow': o3rCorePackageJson.generatorDependencies['eslint-plugin-prefer-arrow'],
|
|
56
|
-
'eslint-plugin-unicorn': o3rCorePackageJson.generatorDependencies['eslint-plugin-unicorn'],
|
|
57
|
-
'jest': o3rCorePackageJson.generatorDependencies.jest,
|
|
58
|
-
'jest-environment-jsdom': o3rCorePackageJson.generatorDependencies.jest,
|
|
59
|
-
'jest-junit': o3rCorePackageJson.generatorDependencies['jest-junit'],
|
|
60
|
-
'jest-preset-angular': o3rCorePackageJson.generatorDependencies['jest-preset-angular'],
|
|
61
|
-
'rxjs': o3rCorePackageJson.peerDependencies.rxjs,
|
|
62
|
-
'typescript': o3rCorePackageJson.peerDependencies.typescript,
|
|
63
|
-
'zone.js': o3rCorePackageJson.generatorDependencies['zone.js']
|
|
64
|
-
};
|
|
65
|
-
/* eslint-enable @typescript-eslint/naming-convention */
|
|
66
|
-
tree.overwrite(path.posix.join(targetPath, 'package.json'), JSON.stringify(packageJson, null, 2));
|
|
67
|
-
return tree;
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
exports.updatePackageDependenciesFactory = updatePackageDependenciesFactory;
|
|
71
|
-
/**
|
|
72
|
-
* Generate rule to update generated ng-packagr.json file
|
|
73
|
-
* @param targetPath Path of the generated files
|
|
74
|
-
*/
|
|
75
|
-
function updateNgPackagrFactory(targetPath) {
|
|
76
|
-
return (tree) => {
|
|
77
|
-
const ngPackagr = tree.readJson(path.posix.join(targetPath, 'ng-package.json'));
|
|
78
|
-
ngPackagr.$schema = 'https://raw.githubusercontent.com/ng-packagr/ng-packagr/master/src/ng-package.schema.json';
|
|
79
|
-
tree.overwrite(path.posix.join(targetPath, 'ng-package.json'), JSON.stringify(ngPackagr, null, 2));
|
|
80
|
-
return tree;
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
exports.updateNgPackagrFactory = updateNgPackagrFactory;
|
|
84
|
-
//# sourceMappingURL=shared.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../../../../schematics/library/rules/shared.ts"],"names":[],"mappings":";;;AAAA,kCAAkC;AAIlC,gDAA8E;AAE9E;;;;;;GAMG;AACH,SAAgB,gCAAgC,CAC5C,UAAkB,EAClB,YAAoB,EACpB,kBAAmF,EACnF,OAA+B;IACjC,OAAO,CAAC,IAAI,EAAE,EAAE;QACd,yDAAyD;QACzD,MAAM,WAAW,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,EAAE,cAAc,CAAC,CAAgB,CAAC;QAC9F,MAAM,MAAM,GAAG,IAAA,oCAAuB,EAAC,IAAA,+BAAkB,EAAC,IAAI,CAAC,CAAC,CAAC;QACjE,WAAW,CAAC,WAAW,GAAG,OAAO,CAAC,WAAW,IAAI,WAAW,CAAC,WAAW,CAAC;QACzE,WAAW,CAAC,OAAO,KAAK,EAAE,CAAC;QAC3B,WAAW,CAAC,OAAO,CAAC,KAAK,GAAG,GAAG,MAAM,aAAa,OAAO,CAAC,IAAI,EAAE,CAAC;QACjE,WAAW,CAAC,OAAO,CAAC,wBAAwB,CAAC,GAAG,GAAG,MAAM,kCAAkC,MAAM,6CAA6C,CAAC;QAC/I,WAAW,CAAC,OAAO,CAAC,gBAAgB,CAAC,GAAG,wCAAwC,CAAC;QACjF,WAAW,CAAC,gBAAgB,KAAK,EAAE,CAAC;QACpC,WAAW,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,GAAG,YAAY,CAAC;QAC9D,WAAW,CAAC,gBAAgB,CAAC,WAAW,CAAC,GAAG,YAAY,CAAC;QACzD,WAAW,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,GAAG,YAAY,CAAC;QAC/D,WAAW,CAAC,eAAe,KAAK,EAAE,CAAC;QACnC,WAAW,CAAC,QAAQ,KAAK,EAAE,CAAC;QAC5B,WAAW,CA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,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,EAAE,iBAAiB,CAAC,EAAE,IAAI,CAAC,SAAS,CAAC,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;QACnG,OAAO,IAAI,CAAC;IACd,CAAC,CAAC;AACJ,CAAC;AAPD,wDAOC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { SchematicOptionObject } from '@o3r/schematics';
|
|
2
|
-
export interface NgGenerateModuleSchema extends SchematicOptionObject {
|
|
3
|
-
/** Project name */
|
|
4
|
-
name: string;
|
|
5
|
-
/** Target directory to generate the module */
|
|
6
|
-
path?: string | undefined;
|
|
7
|
-
/** Description of the new module */
|
|
8
|
-
description?: string | undefined;
|
|
9
|
-
/** Prefix use to package future generation */
|
|
10
|
-
prefix?: string | undefined;
|
|
11
|
-
/** Name of the Nx Project (applied only in Nx Monorepo) */
|
|
12
|
-
projectName?: string | undefined;
|
|
13
|
-
/** Skip the linter process */
|
|
14
|
-
skipLinter: boolean;
|
|
15
|
-
/** Do not install dependency packages. */
|
|
16
|
-
skipInstall: boolean;
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../schematics/library/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAE7D,MAAM,WAAW,sBAAuB,SAAQ,qBAAqB;IACnE,mBAAmB;IACnB,IAAI,EAAE,MAAM,CAAC;IAEb,8CAA8C;IAC9C,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAE1B,oCAAoC;IACpC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAEjC,8CAA8C;IAC9C,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAE5B,2DAA2D;IAC3D,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAEjC,8BAA8B;IAC9B,UAAU,EAAE,OAAO,CAAC;IAEpB,0CAA0C;IAC1C,WAAW,EAAE,OAAO,CAAC;CACtB"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/schema",
|
|
3
|
-
"$id": "ngGenerateModuleSchematicsSchema",
|
|
4
|
-
"title": "Generate a new Otter compatible module",
|
|
5
|
-
"description": "Generate a new Otter module",
|
|
6
|
-
"properties": {
|
|
7
|
-
"name": {
|
|
8
|
-
"type": "string",
|
|
9
|
-
"description": "Package name",
|
|
10
|
-
"x-prompt": "Name of the package of the new module?",
|
|
11
|
-
"$default": {
|
|
12
|
-
"$source": "argv",
|
|
13
|
-
"index": 0
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
"description": {
|
|
17
|
-
"type": "string",
|
|
18
|
-
"description": "Description of the new module",
|
|
19
|
-
"default": ""
|
|
20
|
-
},
|
|
21
|
-
"prefix": {
|
|
22
|
-
"type": "string",
|
|
23
|
-
"description": "Prefix use to package future generation"
|
|
24
|
-
},
|
|
25
|
-
"path": {
|
|
26
|
-
"type": "string",
|
|
27
|
-
"description": "Target directory to generate the module"
|
|
28
|
-
},
|
|
29
|
-
"skipLinter": {
|
|
30
|
-
"type": "boolean",
|
|
31
|
-
"description": "Skip the linter process",
|
|
32
|
-
"default": true
|
|
33
|
-
},
|
|
34
|
-
"skipInstall": {
|
|
35
|
-
"description": "Do not install dependency packages.",
|
|
36
|
-
"type": "boolean",
|
|
37
|
-
"default": false
|
|
38
|
-
},
|
|
39
|
-
"preset": {
|
|
40
|
-
"type": "string",
|
|
41
|
-
"description": "Preset of module list to automatically install",
|
|
42
|
-
"default": "basic",
|
|
43
|
-
"enum": [
|
|
44
|
-
"basic",
|
|
45
|
-
"cms"
|
|
46
|
-
]
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
"required": ["name"],
|
|
50
|
-
"additionalProperties": true
|
|
51
|
-
}
|
|
@@ -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
|
-
'<%= eslintRcPath %>'
|
|
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').JestConfigWithTsJest} */
|
|
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,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "<%= tsconfigBuildPath %>",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"skipLibCheck": true,
|
|
5
|
-
"incremental": true,
|
|
6
|
-
"composite": true,
|
|
7
|
-
"outDir": "./dist",
|
|
8
|
-
"module": "CommonJS",
|
|
9
|
-
"rootDir": ".",
|
|
10
|
-
"declaration": true,
|
|
11
|
-
"tsBuildInfoFile": "build/.tsbuildinfo.builders"
|
|
12
|
-
},
|
|
13
|
-
"include": [
|
|
14
|
-
"builders/**/*.ts",
|
|
15
|
-
"schematics/**/*.ts"
|
|
16
|
-
],
|
|
17
|
-
"exclude": [
|
|
18
|
-
"**/*.spec.ts",
|
|
19
|
-
"builders/**/templates/**",
|
|
20
|
-
"schematics/**/templates/**"
|
|
21
|
-
]
|
|
22
|
-
}
|