@eui/tools 6.5.6 → 6.6.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/.prettierrc.json +19 -0
- package/.version.properties +1 -1
- package/CHANGELOG.md +9 -0
- package/bin/eui-scripts.js +2 -0
- package/bin/scripts/csdr-app-package-init.js +16 -0
- package/bin/scripts/csdr-cli.js +1 -1
- package/package.json +1 -1
- package/scripts/app/public/index.html +22 -170
- package/scripts/app/public/index.js +95 -0
- package/scripts/app/public/package-init.html +254 -0
- package/scripts/app/public/package-init.js +138 -0
- package/scripts/app/public/stats.html +60 -125
- package/scripts/app/public/stats.js +68 -0
- package/scripts/app/routes/index.js +28 -9
- package/scripts/app/server.js +2 -0
- package/scripts/csdr/cli/cli-utils.js +2 -30
- package/scripts/csdr/cli/constants.js +1 -12
- package/scripts/csdr/cli/package-build-backend.js +18 -0
- package/scripts/csdr/cli/package-build-frontend.js +47 -164
- package/scripts/csdr/cli/package-prompt.js +0 -84
- package/scripts/csdr/cli/package.js +65 -14
- package/scripts/csdr/config/register.js +71 -158
- package/scripts/index.js +0 -1
- package/scripts/csdr/cli/app.js +0 -204
- package/scripts/csdr/cli/skeletons/app/angular-config.json +0 -31
- package/scripts/csdr/cli/skeletons/app/dependencies-base.json +0 -2
- package/scripts/csdr/cli/skeletons/app/dependencies-composite.json +0 -6
- package/scripts/csdr/cli/skeletons/app/gitignore_TO_REPLACE +0 -63
- package/scripts/csdr/cli/skeletons/app/mock/json/core/user.js +0 -31
- package/scripts/csdr/cli/skeletons/app/mock/json/lowdb.js +0 -25
- package/scripts/csdr/cli/skeletons/app/mock/json/middlewares/delay.js +0 -10
- package/scripts/csdr/cli/skeletons/app/mock/json/middlewares/errors.js +0 -73
- package/scripts/csdr/cli/skeletons/app/mock/json/middlewares/sse.js +0 -28
- package/scripts/csdr/cli/skeletons/app/mock/json/routes.json +0 -3
- package/scripts/csdr/cli/skeletons/app/mock/json/server.js +0 -38
- package/scripts/csdr/cli/skeletons/app/package.json +0 -6
- package/scripts/csdr/cli/skeletons/app/scripts.json +0 -7
- package/scripts/csdr/cli/skeletons/app/src/app/app-routing.module.ts +0 -32
- package/scripts/csdr/cli/skeletons/app/src/app/app.component.html +0 -1
- package/scripts/csdr/cli/skeletons/app/src/app/app.component.ts +0 -9
- package/scripts/csdr/cli/skeletons/app/src/app/app.module.ts +0 -68
- package/scripts/csdr/cli/skeletons/app/src/app/core/app-shell/app-shell.component.html +0 -27
- package/scripts/csdr/cli/skeletons/app/src/app/core/app-shell/app-shell.component.ts +0 -188
- package/scripts/csdr/cli/skeletons/app/src/app/core/components/about/about.component.html +0 -30
- package/scripts/csdr/cli/skeletons/app/src/app/core/components/about/about.component.ts +0 -71
- package/scripts/csdr/cli/skeletons/app/src/app/core/components/error-pages/page-404/page-404.component.ts +0 -19
- package/scripts/csdr/cli/skeletons/app/src/app/core/components/error-pages/page-500/page-500.component.ts +0 -18
- package/scripts/csdr/cli/skeletons/app/src/app/core/components/profile/profile.component.html +0 -104
- package/scripts/csdr/cli/skeletons/app/src/app/core/components/profile/profile.component.scss +0 -44
- package/scripts/csdr/cli/skeletons/app/src/app/core/components/profile/profile.component.ts +0 -39
- package/scripts/csdr/cli/skeletons/app/src/app/core/components/profile-menu/profile-menu.component.html +0 -26
- package/scripts/csdr/cli/skeletons/app/src/app/core/components/profile-menu/profile-menu.component.ts +0 -104
- package/scripts/csdr/cli/skeletons/app/src/app/core/core.module.ts +0 -46
- package/scripts/csdr/cli/skeletons/app/src/app/core/services/core.service.ts +0 -124
- package/scripts/csdr/cli/skeletons/app/src/app/features/home/home-routing.module.ts +0 -15
- package/scripts/csdr/cli/skeletons/app/src/app/features/home/home.component.html +0 -6
- package/scripts/csdr/cli/skeletons/app/src/app/features/home/home.component.ts +0 -8
- package/scripts/csdr/cli/skeletons/app/src/app/features/home/home.module.ts +0 -18
- package/scripts/csdr/cli/skeletons/app/src/app/features/sample-lib.module.ts +0 -9
- package/scripts/csdr/cli/skeletons/app/src/app/shared/components/.gitkeep +0 -0
- package/scripts/csdr/cli/skeletons/app/src/app/shared/shared.module.ts +0 -20
- package/scripts/csdr/cli/skeletons/app/src/assets/i18n/en.json +0 -3
- package/scripts/csdr/cli/skeletons/app/src/assets/i18n/fr.json +0 -3
- package/scripts/csdr/cli/skeletons/app/src/assets/openid-login-config.local-mwp-dev.json +0 -144
- package/scripts/csdr/cli/skeletons/app/src/assets/openid-login-config.local.json +0 -36
- package/scripts/csdr/cli/skeletons/app/src/config/global.ts +0 -9
- package/scripts/csdr/cli/skeletons/app/src/config/index.ts +0 -8
- package/scripts/csdr/cli/skeletons/app/src/config/modules.ts +0 -13
- package/scripts/csdr/cli/skeletons/app/src/environments/environment.dev.ts +0 -4
- package/scripts/csdr/cli/skeletons/app/src/environments/environment.local-mwp-dev-openid.ts +0 -6
- package/scripts/csdr/cli/skeletons/app/src/environments/environment.local-openid.ts +0 -5
- package/scripts/csdr/cli/skeletons/app/src/environments/environment.prod.ts +0 -12
- package/scripts/csdr/cli/skeletons/app/src/environments/environment.ts +0 -5
- package/scripts/csdr/cli/skeletons/app/src/index.html +0 -24
- package/scripts/csdr/cli/skeletons/app/src/styles.scss +0 -1
- package/scripts/csdr/cli/skeletons/app/tslint.json +0 -17
- package/scripts/csdr/cli/skeletons/app-eui10/angular-config.json +0 -20
- package/scripts/csdr/cli/skeletons/app-eui10/dependencies-composite.json +0 -5
- package/scripts/csdr/cli/skeletons/app-eui10/gitignore_TO_REPLACE +0 -63
- package/scripts/csdr/cli/skeletons/app-eui10/mock/app/models/user.js +0 -8
- package/scripts/csdr/cli/skeletons/app-eui10/mock/app/routes/index.js +0 -5
- package/scripts/csdr/cli/skeletons/app-eui10/mock/app/routes/user_routes.js +0 -24
- package/scripts/csdr/cli/skeletons/app-eui10/mock/db/db.json +0 -12
- package/scripts/csdr/cli/skeletons/app-eui10/mock/server.js +0 -16
- package/scripts/csdr/cli/skeletons/app-eui10/package.json +0 -6
- package/scripts/csdr/cli/skeletons/app-eui10/scripts.json +0 -5
- package/scripts/csdr/cli/skeletons/app-eui10/src/app/app-routing.module.ts +0 -18
- package/scripts/csdr/cli/skeletons/app-eui10/src/app/app-starter.service.ts +0 -68
- package/scripts/csdr/cli/skeletons/app-eui10/src/app/app.component.html +0 -29
- package/scripts/csdr/cli/skeletons/app-eui10/src/app/app.component.ts +0 -55
- package/scripts/csdr/cli/skeletons/app-eui10/src/app/app.module.ts +0 -27
- package/scripts/csdr/cli/skeletons/app-eui10/src/app/core/components/.gitkeep +0 -0
- package/scripts/csdr/cli/skeletons/app-eui10/src/app/core/core.module.ts +0 -84
- package/scripts/csdr/cli/skeletons/app-eui10/src/app/core/reducers/index.ts +0 -33
- package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/home/home-routing.module.ts +0 -15
- package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/home/home.component.html +0 -7
- package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/home/home.component.ts +0 -19
- package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/home/home.module.ts +0 -18
- package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/module1/components/page1/page1.component.html +0 -7
- package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/module1/components/page1/page1.component.ts +0 -7
- package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/module1/components/page2/page2.component.html +0 -7
- package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/module1/components/page2/page2.component.ts +0 -7
- package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/module1/module1-routing.module.ts +0 -18
- package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/module1/module1.component.html +0 -7
- package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/module1/module1.component.ts +0 -8
- package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/module1/module1.module.ts +0 -21
- package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/module2/module2-routing.module.ts +0 -16
- package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/module2/module2.component.html +0 -8
- package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/module2/module2.component.ts +0 -7
- package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/module2/module2.module.ts +0 -17
- package/scripts/csdr/cli/skeletons/app-eui10/src/app/shared/shared.module.ts +0 -21
- package/scripts/csdr/cli/skeletons/app-eui10/src/app/shared/testing/router.mock.ts +0 -18
- package/scripts/csdr/cli/skeletons/app-eui10/src/assets/config/env-json-config.json +0 -8
- package/scripts/csdr/cli/skeletons/app-eui10/src/assets/i18n/en.json +0 -7
- package/scripts/csdr/cli/skeletons/app-eui10/src/assets/i18n/fr.json +0 -7
- package/scripts/csdr/cli/skeletons/app-eui10/src/config/global.ts +0 -26
- package/scripts/csdr/cli/skeletons/app-eui10/src/config/index.ts +0 -8
- package/scripts/csdr/cli/skeletons/app-eui10/src/config/modules.ts +0 -4
- package/scripts/csdr/cli/skeletons/app-eui10/src/environments/environment.prod.ts +0 -9
- package/scripts/csdr/cli/skeletons/app-eui10/src/environments/environment.ts +0 -9
- package/scripts/csdr/cli/skeletons/app-eui10/src/index.html +0 -21
- package/scripts/csdr/cli/skeletons/app-eui10/src/styles.scss +0 -1
- package/scripts/csdr/cli/skeletons/app-eui10/tslint.json +0 -17
- package/scripts/csdr/cli/skeletons/app-showcase/angular-config.json +0 -103
- package/scripts/csdr/cli/skeletons/app-showcase/dependencies-composite.json +0 -5
- package/scripts/csdr/cli/skeletons/app-showcase/gitignore_TO_REPLACE +0 -50
- package/scripts/csdr/cli/skeletons/app-showcase/package.json +0 -6
- package/scripts/csdr/cli/skeletons/app-showcase/scripts.json +0 -3
- package/scripts/csdr/cli/skeletons/app-showcase/src/app/app-routing.module.ts +0 -21
- package/scripts/csdr/cli/skeletons/app-showcase/src/app/app.component.html +0 -24
- package/scripts/csdr/cli/skeletons/app-showcase/src/app/app.component.ts +0 -19
- package/scripts/csdr/cli/skeletons/app-showcase/src/app/app.routes.ts +0 -7
- package/scripts/csdr/cli/skeletons/app-showcase/src/app/features/_home/home-routing.module.ts +0 -15
- package/scripts/csdr/cli/skeletons/app-showcase/src/app/features/_home/home.component.html +0 -7
- package/scripts/csdr/cli/skeletons/app-showcase/src/app/features/_home/home.component.ts +0 -8
- package/scripts/csdr/cli/skeletons/app-showcase/src/app/features/_home/home.module.ts +0 -17
- package/scripts/csdr/cli/skeletons/app-showcase/src/assets/app-metadata.json +0 -8
- package/scripts/csdr/cli/skeletons/app-showcase/src/assets/config/env-json-config.json +0 -41
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/angular-config.json +0 -33
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/dependencies-composite.json +0 -5
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/gitignore_TO_REPLACE +0 -50
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/package.json +0 -6
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/scripts.json +0 -3
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/app-routing.module.ts +0 -21
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/app.component.html +0 -26
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/app.component.ts +0 -19
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/app.routes.ts +0 -7
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/features/_home/home-routing.module.ts +0 -15
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/features/_home/home.component.html +0 -7
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/features/_home/home.component.ts +0 -8
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/features/_home/home.module.ts +0 -17
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/features/shared/shared.module.ts +0 -15
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/assets/app-metadata.json +0 -8
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/assets/config/env-json-config.json +0 -41
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/index.html +0 -22
- package/scripts/csdr/cli/skeletons/package/frontend-eui10/assets/remote-sources/.gitkeep +0 -0
- package/scripts/csdr/cli/skeletons/package/frontend-eui10/dependencies-base.json +0 -2
- package/scripts/csdr/cli/skeletons/package/frontend-eui10/dependencies-composite.json +0 -3
- package/scripts/csdr/cli/skeletons/package/frontend-eui10/src/dummy.spec.ts.TO_REPLACE +0 -5
- package/scripts/csdr/cli/skeletons/package/frontend-eui10/tsconfig.lib.json +0 -32
- package/scripts/csdr/cli/skeletons/package/frontend-eui10/tslint.json +0 -17
- package/scripts/csdr/cli/skeletons/package/frontend-eui13/dependencies-composite.json +0 -3
- package/scripts/csdr/cli/skeletons/package/frontend-option-route/src/index.ts +0 -2
- package/scripts/csdr/cli/skeletons/package/frontend-option-route/src/lib/components/cmp1/cmp1.component.html +0 -1
- package/scripts/csdr/cli/skeletons/package/frontend-option-route/src/lib/components/cmp1/cmp1.component.spec.ts.TO_REPLACE +0 -25
- package/scripts/csdr/cli/skeletons/package/frontend-option-route/src/lib/components/cmp1/cmp1.component.ts +0 -14
- package/scripts/csdr/cli/skeletons/package/frontend-option-route/src/lib/module.ts +0 -17
- package/scripts/csdr/cli/skeletons/package/frontend-option-route/src/lib/routing.module.ts +0 -14
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/angular.json +0 -90
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/browserslist +0 -6
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/dependencies-base.json +0 -2
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/dependencies-composite-ACC.json +0 -4
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/dependencies-composite-DLT.json +0 -4
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/dependencies-composite-INT.json +0 -4
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/dependencies-composite-PROD.json +0 -4
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/dependencies-composite-TRN.json +0 -4
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/dependencies-composite.json +0 -8
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/gitignore_TO_REPLACE +0 -65
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/karma.conf.js +0 -7
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/package.json_TO_REPLACE +0 -8
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/dummy.scss +0 -3
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/dummy.spec.ts +0 -6
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/eui-components.ts +0 -11
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/fallback.component.ts +0 -11
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/module.component.ts +0 -91
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/module.ts +0 -87
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/reducers/custom-route-serializer.ts +0 -28
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/reducers/index.ts +0 -43
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/routing.module.ts +0 -33
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/assets/.gitkeep +0 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/config/global.ts +0 -42
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/config/index.ts +0 -10
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/config/modules.ts +0 -3
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/environments/environment.prod.ts +0 -3
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/environments/environment.ts +0 -3
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/favicon.ico +0 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/index.html +0 -10
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/main.ts +0 -12
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/polyfills.ts +0 -87
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/tsconfig.app.json +0 -20
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/tsconfig.spec.json +0 -18
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/tslint-remote.json +0 -7
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/tslint.json +0 -17
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/webpack.extra.js +0 -10
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/app/dummy.scss +0 -3
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/app/dummy.spec.ts +0 -6
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/app/eui-components.ts +0 -9
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/app/fallback.component.ts +0 -11
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/app/module.component.ts +0 -91
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/app/module.ts +0 -87
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/app/reducers/custom-route-serializer.ts +0 -28
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/app/reducers/index.ts +0 -43
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/app/routing.module.ts +0 -33
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/assets/.gitkeep +0 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/config/global.ts +0 -55
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/config/index.ts +0 -10
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/config/modules.ts +0 -3
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/environments/environment.prod.ts +0 -3
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/environments/environment.ts +0 -3
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/favicon.ico +0 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/index.html +0 -10
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/main.ts +0 -12
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/polyfills.ts +0 -87
- package/scripts/csdr/cli/skeletons/virtual-remote/10.x/angular-config.json +0 -9
- package/scripts/csdr/cli/skeletons/virtual-remote/10.x/dependencies.json +0 -20
- /package/scripts/csdr/cli/skeletons/package/{frontend-eui10 → frontend-eui15}/assets/i18n/en.json +0 -0
- /package/scripts/csdr/cli/skeletons/package/{frontend-eui10 → frontend-eui15}/assets/i18n/fr.json +0 -0
- /package/scripts/csdr/cli/skeletons/{app-eui10 → package/frontend-eui15}/dependencies-base.json +0 -0
- /package/scripts/csdr/cli/skeletons/package/{frontend-eui10 → frontend-eui15}/gitignore_TO_REPLACE +0 -0
- /package/scripts/csdr/cli/skeletons/package/{frontend-eui10 → frontend-eui15}/karma.conf.js +0 -0
- /package/scripts/csdr/cli/skeletons/package/{frontend-eui10 → frontend-eui15}/ng-package.json +0 -0
- /package/scripts/csdr/cli/skeletons/package/{frontend-eui10 → frontend-eui15}/package.json +0 -0
- /package/scripts/csdr/cli/skeletons/{app/src/app/core → package/frontend-eui15/src}/dummy.spec.ts.TO_REPLACE +0 -0
- /package/scripts/csdr/cli/skeletons/package/{frontend-eui10 → frontend-eui15}/src/index.ts +0 -0
- /package/scripts/csdr/cli/skeletons/package/{frontend-eui10 → frontend-eui15}/src/lib/module.ts +0 -0
- /package/scripts/csdr/cli/skeletons/package/{frontend-eui10 → frontend-eui15}/src/test.ts.TO_REPLACE +0 -0
- /package/scripts/csdr/cli/skeletons/package/{frontend-eui10 → frontend-eui15}/tsconfig.spec.json +0 -0
|
@@ -54,53 +54,6 @@ module.exports.prompt = () => {
|
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
|
-
{
|
|
58
|
-
type: 'list',
|
|
59
|
-
name: 'pkgFrontendVersion',
|
|
60
|
-
message: 'Select eUI version target :',
|
|
61
|
-
choices: [
|
|
62
|
-
{ name: 'v10', value: constants.CONFIG_OPTIONS.pkgFrontendVersion.EUI10 },
|
|
63
|
-
{ name: 'v15', value: constants.CONFIG_OPTIONS.pkgFrontendVersion.EUI15 },
|
|
64
|
-
],
|
|
65
|
-
default: constants.DEFAULT_CONFIG.pkgFrontendType,
|
|
66
|
-
when: function (answers) {
|
|
67
|
-
return (
|
|
68
|
-
answers.pkgType === constants.CONFIG_OPTIONS.pkgType.FRONTEND &&
|
|
69
|
-
answers.pkgFrontendType === constants.CONFIG_OPTIONS.pkgFrontendType.REMOTE
|
|
70
|
-
);
|
|
71
|
-
},
|
|
72
|
-
validate: function (value) {
|
|
73
|
-
if (value.length) {
|
|
74
|
-
return true;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
type: 'list',
|
|
80
|
-
name: 'pkgFrontendVersion',
|
|
81
|
-
message: 'Select eUI version target :',
|
|
82
|
-
choices: [
|
|
83
|
-
{ name: 'v10', value: constants.CONFIG_OPTIONS.pkgFrontendVersion.EUI10 },
|
|
84
|
-
// { name: 'v13', value: constants.CONFIG_OPTIONS.pkgFrontendVersion.EUI13 },
|
|
85
|
-
{ name: 'v15', value: constants.CONFIG_OPTIONS.pkgFrontendVersion.EUI15 },
|
|
86
|
-
],
|
|
87
|
-
default: constants.DEFAULT_CONFIG.pkgFrontendType,
|
|
88
|
-
when: function (answers) {
|
|
89
|
-
return (
|
|
90
|
-
answers.pkgType === constants.CONFIG_OPTIONS.pkgType.FRONTEND &&
|
|
91
|
-
answers.pkgFrontendType === constants.CONFIG_OPTIONS.pkgFrontendType.DEFAULT
|
|
92
|
-
);
|
|
93
|
-
},
|
|
94
|
-
validate: function (value) {
|
|
95
|
-
if (value.length) {
|
|
96
|
-
return true;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
},
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
57
|
|
|
105
58
|
{
|
|
106
59
|
name: 'pkgScope',
|
|
@@ -114,43 +67,6 @@ module.exports.prompt = () => {
|
|
|
114
67
|
message: 'Enter the package name :',
|
|
115
68
|
default: constants.DEFAULT_CONFIG.pkgName
|
|
116
69
|
},
|
|
117
|
-
// {
|
|
118
|
-
// name: 'isRouteModule',
|
|
119
|
-
// type: 'confirm',
|
|
120
|
-
// message: 'Is this a ROUTE package ?',
|
|
121
|
-
// default: constants.DEFAULT_CONFIG.isRouteModule,
|
|
122
|
-
// when: function (answers) {
|
|
123
|
-
// return (
|
|
124
|
-
// answers.pkgType === constants.CONFIG_OPTIONS.pkgType.FRONTEND &&
|
|
125
|
-
// answers.pkgFrontendType !== constants.CONFIG_OPTIONS.pkgFrontendType.REMOTE
|
|
126
|
-
// );
|
|
127
|
-
// }
|
|
128
|
-
// },
|
|
129
|
-
// {
|
|
130
|
-
// name: 'isVirtualRemote',
|
|
131
|
-
// type: 'confirm',
|
|
132
|
-
// message: 'Is this a virtual remote ?',
|
|
133
|
-
// default: constants.DEFAULT_CONFIG.isVirtualRemote,
|
|
134
|
-
// when: function (answers) {
|
|
135
|
-
// return (
|
|
136
|
-
// answers.pkgType === constants.CONFIG_OPTIONS.pkgType.FRONTEND &&
|
|
137
|
-
// answers.pkgFrontendType === constants.CONFIG_OPTIONS.pkgFrontendType.REMOTE &&
|
|
138
|
-
// answers.pkgFrontendVersion === constants.CONFIG_OPTIONS.pkgFrontendVersion.EUI10
|
|
139
|
-
// );
|
|
140
|
-
// }
|
|
141
|
-
// },
|
|
142
|
-
// {
|
|
143
|
-
// name: 'isFullVirtualRemote',
|
|
144
|
-
// type: 'confirm',
|
|
145
|
-
// message: 'Is this a virtual remote with full skeleton sources ?',
|
|
146
|
-
// default: constants.DEFAULT_CONFIG.isFullVirtualRemote,
|
|
147
|
-
// when: function (answers) {
|
|
148
|
-
// return (
|
|
149
|
-
// answers.pkgType === constants.CONFIG_OPTIONS.pkgType.FRONTEND &&
|
|
150
|
-
// answers.pkgFrontendType === constants.CONFIG_OPTIONS.pkgFrontendType.REMOTE
|
|
151
|
-
// );
|
|
152
|
-
// }
|
|
153
|
-
// },
|
|
154
70
|
{
|
|
155
71
|
name: 'isCsdrRepo',
|
|
156
72
|
type: 'confirm',
|
|
@@ -15,6 +15,66 @@ const buildBackend = require('./package-build-backend');
|
|
|
15
15
|
const buildFrontend = require('./package-build-frontend');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
+
const generateArgs = (args) => {
|
|
19
|
+
let npmPkgName, repoName;
|
|
20
|
+
let fullName = args.pkgScope.substring(1) + '-' + args.pkgName;
|
|
21
|
+
|
|
22
|
+
if (args.pkgFrontendType === constants.CONFIG_OPTIONS.pkgFrontendType.DEFAULT) {
|
|
23
|
+
fullName += '-ui';
|
|
24
|
+
npmPkgName = `${args.pkgScope}/${args.pkgName}`;
|
|
25
|
+
|
|
26
|
+
} else if (args.pkgFrontendType === constants.CONFIG_OPTIONS.pkgFrontendType.REMOTE) {
|
|
27
|
+
if (args.pkgFrontendVersion === constants.CONFIG_OPTIONS.pkgFrontendVersion.EUI10) {
|
|
28
|
+
fullName += '-eui10-remote-el-ui';
|
|
29
|
+
npmPkgName = `${args.pkgScope}/${args.pkgName}-eui10-remote-el`;
|
|
30
|
+
|
|
31
|
+
} else if (args.pkgFrontendVersion === constants.CONFIG_OPTIONS.pkgFrontendVersion.EUI15) {
|
|
32
|
+
fullName += '-eui15-remote-el-ui';
|
|
33
|
+
npmPkgName = `${args.pkgScope}/${args.pkgName}-eui15-remote-el`;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// generating default git repo
|
|
38
|
+
if (args.isCsdrRepo) {
|
|
39
|
+
repoName = `${fullName}.git`;
|
|
40
|
+
} else {
|
|
41
|
+
repoName = `${args.externalRepoName}/${fullName}.git`;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
return {
|
|
45
|
+
...args,
|
|
46
|
+
fullName,
|
|
47
|
+
npmPkgName,
|
|
48
|
+
repoName,
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
module.exports.generateExternal = (args) => {
|
|
54
|
+
return Promise.resolve()
|
|
55
|
+
.then(() => {
|
|
56
|
+
// merging with defaults
|
|
57
|
+
const answers = { ...constants.DEFAULT_CONFIG, ...args};
|
|
58
|
+
|
|
59
|
+
// FRONTEND
|
|
60
|
+
if (answers.pkgType === constants.CONFIG_OPTIONS.pkgType.FRONTEND) {
|
|
61
|
+
const args = generateArgs(answers);
|
|
62
|
+
|
|
63
|
+
tools.logInfo('Generated options :');
|
|
64
|
+
console.log(args);
|
|
65
|
+
|
|
66
|
+
return buildFrontend.generate(args);
|
|
67
|
+
|
|
68
|
+
// BACKEND
|
|
69
|
+
} else if (answers.pkgType === constants.CONFIG_OPTIONS.pkgType.BACKEND) {
|
|
70
|
+
return buildBackend.generate(answers.pkgName, answers.pkgScope, answers.pkgGroupId);
|
|
71
|
+
}
|
|
72
|
+
})
|
|
73
|
+
.catch((e) => {
|
|
74
|
+
throw e;
|
|
75
|
+
})
|
|
76
|
+
}
|
|
77
|
+
|
|
18
78
|
|
|
19
79
|
|
|
20
80
|
module.exports.generate = () => {
|
|
@@ -29,28 +89,19 @@ module.exports.generate = () => {
|
|
|
29
89
|
})
|
|
30
90
|
|
|
31
91
|
.then((answers) => {
|
|
32
|
-
|
|
33
92
|
// merging with defaults
|
|
34
93
|
answers = { ...constants.DEFAULT_CONFIG, ...answers};
|
|
35
94
|
|
|
36
|
-
// forcing config default for remotes
|
|
37
|
-
if (
|
|
38
|
-
answers.pkgFrontendVersion === constants.CONFIG_OPTIONS.pkgFrontendVersion.EUI15 &&
|
|
39
|
-
answers.pkgFrontendType === constants.CONFIG_OPTIONS.pkgFrontendType.REMOTE
|
|
40
|
-
) {
|
|
41
|
-
answers.isVirtualRemote = true;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
if (answers.pkgFrontendType === constants.CONFIG_OPTIONS.pkgFrontendType.REMOTE) {
|
|
45
|
-
answers.isEnvTargetRemote = true;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
95
|
tools.logInfo('Provided options :');
|
|
49
96
|
console.log(answers);
|
|
50
97
|
|
|
98
|
+
// FRONTEND
|
|
51
99
|
if (answers.pkgType === constants.CONFIG_OPTIONS.pkgType.FRONTEND) {
|
|
52
|
-
|
|
100
|
+
const args = generateArgs(answers);
|
|
101
|
+
|
|
102
|
+
return buildFrontend.generate(args);
|
|
53
103
|
|
|
104
|
+
// BACKEND
|
|
54
105
|
} else if (answers.pkgType === constants.CONFIG_OPTIONS.pkgType.BACKEND) {
|
|
55
106
|
return buildBackend.generate(answers.pkgName, answers.pkgScope, answers.pkgGroupId);
|
|
56
107
|
}
|
|
@@ -10,151 +10,35 @@ const tools = require('../../utils/tools');
|
|
|
10
10
|
const innerGlobal = require('./global');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
// Register new project created
|
|
14
|
-
|
|
15
|
-
module.exports.registerCsdrProject = (name, isFullSkeleton) => {
|
|
16
|
-
|
|
17
|
-
const csdrConfigProject = {
|
|
18
|
-
"name": "@app.name@",
|
|
19
|
-
"folder": "apps/@app.name@",
|
|
20
|
-
"repository": "app-@app.name@.git",
|
|
21
|
-
"build": {
|
|
22
|
-
"skipLint": true,
|
|
23
|
-
"skipTest": true,
|
|
24
|
-
"maxSpaceSize": true
|
|
25
|
-
},
|
|
26
|
-
"packages": [
|
|
27
|
-
],
|
|
28
|
-
"csdrSkeleton": true
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
const csdrConfigProjectFullSkeleton = {
|
|
32
|
-
"name": "@app.name@",
|
|
33
|
-
"folder": "apps/@app.name@",
|
|
34
|
-
"repository": "app-@app.name@.git",
|
|
35
|
-
"build": {
|
|
36
|
-
"skipLint": true,
|
|
37
|
-
"skipTest": true,
|
|
38
|
-
"maxSpaceSize": true
|
|
39
|
-
},
|
|
40
|
-
"packages": [
|
|
41
|
-
],
|
|
42
|
-
"csdrFullSkeleton": true
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
// inserting new project into root config
|
|
47
|
-
let projectDef;
|
|
48
|
-
if (isFullSkeleton) {
|
|
49
|
-
projectDef = JSON.stringify(csdrConfigProjectFullSkeleton);
|
|
50
|
-
} else {
|
|
51
|
-
projectDef = JSON.stringify(csdrConfigProject);
|
|
52
|
-
}
|
|
53
|
-
const replaceModule = tools.replaceAll(projectDef, '@app.name@', name);
|
|
54
|
-
|
|
55
|
-
let file = path.join(process.cwd(), '.csdr', '.euirc-csdr-apps.json');
|
|
56
|
-
let jsonFile = require(file);
|
|
57
|
-
jsonFile[name] = JSON.parse(replaceModule);
|
|
58
|
-
tools.writeJsonFileSync(file, jsonFile);
|
|
59
|
-
|
|
60
|
-
// inserting project entry into local config
|
|
61
|
-
innerGlobal.updateConfig({ project: name });
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
13
|
// Register newly created package
|
|
68
14
|
|
|
69
|
-
module.exports.registerCsdrPackage = (pkg,
|
|
15
|
+
module.exports.registerCsdrPackage = (pkg, rootPkgScope, rootPkgName, euiVersionNumber, isRemote, remoteConfig, isBackend) => {
|
|
70
16
|
|
|
71
17
|
const csdrConfigPackage = {
|
|
72
18
|
"name": "@module.full.name@",
|
|
73
19
|
"npmPkg": "@module.npmPkg.name@",
|
|
74
|
-
"
|
|
75
|
-
],
|
|
76
|
-
"repository": "@module.repo.name@",
|
|
77
|
-
"teams": [
|
|
78
|
-
"all-frontend"
|
|
79
|
-
]
|
|
20
|
+
"repository": "@module.repo.name@"
|
|
80
21
|
};
|
|
81
22
|
|
|
82
|
-
const
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
"sonarScanner": false,
|
|
98
|
-
"envTargetActive": true
|
|
99
|
-
},
|
|
100
|
-
"release": {
|
|
101
|
-
"team": "cc-ui-rm"
|
|
102
|
-
},
|
|
103
|
-
"slack": {
|
|
104
|
-
"channel": "csdr-timeline-mwp-remotes-cc"
|
|
105
|
-
},
|
|
106
|
-
"externalSources": {
|
|
107
|
-
"npmPkg": "@module.rootPkg.scope@/@module.rootPkg.name@",
|
|
108
|
-
"folder": "assets/remote-sources"
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
const csdrConfigRemotePackageV10Virtual = {
|
|
114
|
-
"npmPkg": "@module.npmPkg.name@",
|
|
115
|
-
"euiVersion": "10.x",
|
|
116
|
-
"build": {
|
|
117
|
-
"compiledTranslations": true,
|
|
118
|
-
"translationScopes": "eui,csdr,cc,mywp",
|
|
119
|
-
"envTargetActive": true,
|
|
120
|
-
"sonarScanner": false
|
|
121
|
-
},
|
|
122
|
-
"release": {
|
|
123
|
-
"team": "cc-ui-rm"
|
|
124
|
-
},
|
|
125
|
-
"slack": {
|
|
126
|
-
"channel": "csdr-timeline-mwp-remotes-cc"
|
|
127
|
-
},
|
|
128
|
-
"externalSources": {
|
|
129
|
-
"npmPkg": "@module.rootPkg.scope@/@module.rootPkg.name@",
|
|
130
|
-
"folder": "assets/remote-sources"
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
const csdrConfigRemotePackageV15Virtual = {
|
|
135
|
-
"npmPkg": "@module.npmPkg.name@",
|
|
136
|
-
"euiVersion": "15.x",
|
|
137
|
-
"build": {
|
|
138
|
-
"compiledTranslations": true,
|
|
139
|
-
"translationScopes": "eui,csdr,cc,mywp",
|
|
140
|
-
"envTargetActive": true,
|
|
141
|
-
"sonarScanner": false
|
|
142
|
-
},
|
|
143
|
-
"release": {
|
|
144
|
-
"team": "cc-ui-rm"
|
|
145
|
-
},
|
|
146
|
-
"slack": {
|
|
147
|
-
"channel": "csdr-timeline-mwp-remotes-cc"
|
|
148
|
-
},
|
|
149
|
-
"externalSources": {
|
|
150
|
-
"npmPkg": "@module.rootPkg.scope@/@module.rootPkg.name@",
|
|
151
|
-
"folder": "assets/remote-sources"
|
|
152
|
-
}
|
|
153
|
-
}
|
|
23
|
+
const csdrConfigPackageBackend = {
|
|
24
|
+
"name": "@module.full.name@",
|
|
25
|
+
"repository": "@module.repo.name@",
|
|
26
|
+
"backend": true,
|
|
27
|
+
"teams": [
|
|
28
|
+
"cc-backend",
|
|
29
|
+
"backend"
|
|
30
|
+
],
|
|
31
|
+
"build": {
|
|
32
|
+
"publish": true
|
|
33
|
+
},
|
|
34
|
+
"slack": {
|
|
35
|
+
"channel": "csdr-timeline-backend"
|
|
36
|
+
}
|
|
37
|
+
};
|
|
154
38
|
|
|
155
|
-
const
|
|
39
|
+
const csdrConfigRemote = {
|
|
156
40
|
"npmPkg": "@module.npmPkg.name@",
|
|
157
|
-
"euiVersion": "
|
|
41
|
+
"euiVersion": "@module.eui.version@.x",
|
|
158
42
|
"build": {
|
|
159
43
|
"compiledTranslations": true,
|
|
160
44
|
"translationScopes": "eui,csdr,cc,mywp",
|
|
@@ -162,7 +46,7 @@ module.exports.registerCsdrPackage = (pkg, isRemote, rootPkgScope, rootPkgName,
|
|
|
162
46
|
"sonarScanner": false
|
|
163
47
|
},
|
|
164
48
|
"release": {
|
|
165
|
-
"team": "
|
|
49
|
+
"team": "@module.rmTeam.name@"
|
|
166
50
|
},
|
|
167
51
|
"slack": {
|
|
168
52
|
"channel": "csdr-timeline-mwp-remotes-cc"
|
|
@@ -170,60 +54,89 @@ module.exports.registerCsdrPackage = (pkg, isRemote, rootPkgScope, rootPkgName,
|
|
|
170
54
|
"fullSkeletonSources": true,
|
|
171
55
|
"skeletonConfig": {
|
|
172
56
|
"rootNpmPkg": "@module.rootPkg.scope@/@module.rootPkg.name@",
|
|
173
|
-
"rootCommonModule": "
|
|
57
|
+
"rootCommonModule": "Module",
|
|
174
58
|
"baseUrl": "@module.rootPkg.name@",
|
|
175
59
|
"elementName": "@module.scope.name@",
|
|
176
|
-
"storeName": "@module.scope.name@"
|
|
177
|
-
"options": {
|
|
178
|
-
"userReducers": false,
|
|
179
|
-
"zipkin": false,
|
|
180
|
-
"dynatrace": false
|
|
181
|
-
}
|
|
60
|
+
"storeName": "@module.scope.name@"
|
|
182
61
|
}
|
|
183
62
|
}
|
|
184
63
|
|
|
64
|
+
|
|
65
|
+
|
|
185
66
|
// inserting package in root config
|
|
186
67
|
let packageDef;
|
|
187
68
|
|
|
188
69
|
if (isRemote) {
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
}
|
|
195
|
-
} else if (euiVersionNumber >= 10 && isVirtualRemote) {
|
|
196
|
-
packageDef = JSON.stringify(csdrConfigRemotePackageV10Virtual);
|
|
70
|
+
packageDef = JSON.stringify(csdrConfigRemote);
|
|
71
|
+
|
|
72
|
+
} else {
|
|
73
|
+
if (isBackend) {
|
|
74
|
+
packageDef = JSON.stringify(csdrConfigPackageBackend);
|
|
197
75
|
} else {
|
|
198
|
-
packageDef = JSON.stringify(
|
|
76
|
+
packageDef = JSON.stringify(csdrConfigPackage);
|
|
199
77
|
}
|
|
200
|
-
} else {
|
|
201
|
-
packageDef = JSON.stringify(csdrConfigPackage);
|
|
202
78
|
}
|
|
203
79
|
|
|
204
80
|
// replacing tokens
|
|
205
81
|
let replaceModule = tools.replaceAll(packageDef, '@module.full.name@', pkg.name);
|
|
82
|
+
replaceModule = tools.replaceAll(replaceModule, '@module.eui.version@', euiVersionNumber);
|
|
206
83
|
replaceModule = tools.replaceAll(replaceModule, '@module.repo.name@', pkg.repoName);
|
|
207
84
|
replaceModule = tools.replaceAll(replaceModule, '@module.npmPkg.name@', pkg.npmPkgName);
|
|
208
85
|
replaceModule = tools.replaceAll(replaceModule, '@module.rootPkg.scope@', rootPkgScope);
|
|
209
86
|
replaceModule = tools.replaceAll(replaceModule, '@module.rootPkg.name@', rootPkgName);
|
|
210
87
|
replaceModule = tools.replaceAll(replaceModule, '@module.scope.name@', `${rootPkgScope.substr(1)}-${rootPkgName}`);
|
|
88
|
+
if (isRemote && remoteConfig && remoteConfig.rmTeamName) {
|
|
89
|
+
replaceModule = tools.replaceAll(replaceModule, '@module.rmTeam.name@', remoteConfig.rmTeamName);
|
|
90
|
+
}
|
|
211
91
|
|
|
212
|
-
let file
|
|
213
|
-
if (isRemote
|
|
92
|
+
let file;
|
|
93
|
+
if (isRemote) {
|
|
214
94
|
file = path.join(process.cwd(), '.csdr', '.euirc-csdr-remotes.json');
|
|
95
|
+
} else {
|
|
96
|
+
file = path.join(process.cwd(), '.csdr', '.euirc-csdr-packages.json');
|
|
215
97
|
}
|
|
98
|
+
|
|
99
|
+
const moduleJson = JSON.parse(replaceModule);
|
|
100
|
+
|
|
101
|
+
if (isRemote && remoteConfig) {
|
|
102
|
+
if (Object.keys(remoteConfig.options).length !== 0) {
|
|
103
|
+
moduleJson.skeletonConfig.options = {};
|
|
104
|
+
|
|
105
|
+
if (remoteConfig.options.userReducers) {
|
|
106
|
+
moduleJson.skeletonConfig.options.userReducers = remoteConfig.options.userReducers;
|
|
107
|
+
}
|
|
108
|
+
if (remoteConfig.options.zipkin) {
|
|
109
|
+
moduleJson.skeletonConfig.options.zipkin = remoteConfig.options.zipkin;
|
|
110
|
+
}
|
|
111
|
+
if (remoteConfig.options.dynamicForms) {
|
|
112
|
+
moduleJson.skeletonConfig.options.dynamicForms = remoteConfig.options.dynamicForms;
|
|
113
|
+
}
|
|
114
|
+
if (remoteConfig.options.dynatrace) {
|
|
115
|
+
moduleJson.skeletonConfig.options.dynatrace = remoteConfig.options.dynatrace;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
if (remoteConfig.options.participant) {
|
|
119
|
+
moduleJson.skeletonConfig.options.participant = remoteConfig.options.participant;
|
|
120
|
+
moduleJson.skeletonConfig.blockContainerName = `${rootPkgScope.substr(1)}-${rootPkgName}-ct`;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
216
125
|
let jsonFile = require(file);
|
|
217
|
-
jsonFile[pkg.name] =
|
|
126
|
+
jsonFile[pkg.name] = moduleJson;
|
|
218
127
|
|
|
219
128
|
tools.writeJsonFileSync(file, jsonFile);
|
|
220
129
|
|
|
130
|
+
if (isBackend) {
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
|
|
221
134
|
// inserting project entry into local config
|
|
222
135
|
const packages = [];
|
|
223
136
|
packages.push(pkg.name);
|
|
224
137
|
|
|
225
138
|
// updating euirc.json local config
|
|
226
|
-
if (isRemote
|
|
139
|
+
if (isRemote) {
|
|
227
140
|
innerGlobal.updateConfig({ remotes: packages });
|
|
228
141
|
|
|
229
142
|
} else {
|
package/scripts/index.js
CHANGED
|
@@ -80,7 +80,6 @@ module.exports.audiStyles = require('./csdr/audit/styles');
|
|
|
80
80
|
|
|
81
81
|
// csdr - cli
|
|
82
82
|
module.exports.cliUtils = require('./csdr/cli/cli-utils');
|
|
83
|
-
module.exports.cliApp = require('./csdr/cli/app');
|
|
84
83
|
module.exports.cliPackage = require('./csdr/cli/package');
|
|
85
84
|
module.exports.cliPackageBackend = require('./csdr/cli/package-build-backend');
|
|
86
85
|
module.exports.cliPackageFrontend = require('./csdr/cli/package-build-frontend');
|