@eui/cli 21.0.0-alpha.4 → 21.0.0-alpha.40
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 +1 -1
- package/bin/eui-cli.js +67 -0
- package/bin/scripts/build-app.js +12 -0
- package/bin/scripts/lint-app.js +22 -0
- package/bin/scripts/new.js +39 -0
- package/bin/scripts/serve-app.js +12 -0
- package/lib/app-utils/build.js +176 -0
- package/lib/app-utils/projects.js +41 -0
- package/lib/app-utils/serve.js +78 -0
- package/lib/build.js +130 -0
- package/lib/cli.js +140 -0
- package/lib/config.js +59 -0
- package/lib/generators.js +72 -0
- package/lib/install.js +45 -0
- package/lib/maven-build/build.xml +115 -0
- package/lib/maven-build/lib/ant-contrib-20061014.jar +0 -0
- package/lib/maven-build/pom.xml +64 -0
- package/lib/post-build.js +31 -0
- package/lib/skeletons/_angular/base/.browserslistrc +16 -0
- package/lib/skeletons/_angular/base/.editorconfig +16 -0
- package/lib/skeletons/_angular/base/README.md +26 -0
- package/lib/skeletons/_angular/base/angular.json +129 -0
- package/lib/skeletons/_angular/base/gitignore_TO_REPLACE +51 -0
- package/lib/skeletons/_angular/base/mock/app/models/user.js +6 -0
- package/lib/skeletons/_angular/base/mock/app/routes/index.js +5 -0
- package/lib/skeletons/_angular/base/mock/app/routes/user_routes.js +44 -0
- package/lib/skeletons/_angular/base/mock/db/db.json +10 -0
- package/lib/skeletons/_angular/base/mock/server.js +23 -0
- package/lib/skeletons/_angular/base/package.json +39 -0
- package/lib/skeletons/_angular/base/proxy-mock.conf.json +6 -0
- package/lib/skeletons/_angular/base/proxy.conf.json +6 -0
- package/lib/skeletons/_angular/base/src/.eslintrc.json +121 -0
- package/lib/skeletons/_angular/base/src/app/app-starter.service.spec.ts +68 -0
- package/lib/skeletons/_angular/base/src/app/app-starter.service.ts +68 -0
- package/lib/skeletons/_angular/base/src/app/app.component.html +35 -0
- package/lib/skeletons/_angular/base/src/app/app.component.spec.ts +60 -0
- package/lib/skeletons/_angular/base/src/app/app.component.ts +35 -0
- package/lib/skeletons/_angular/base/src/app/app.config.ts +84 -0
- package/lib/skeletons/_angular/base/src/app/app.routes.ts +9 -0
- package/lib/skeletons/_angular/base/src/app/features/home/home.component.html +41 -0
- package/lib/skeletons/_angular/base/src/app/features/home/home.component.ts +17 -0
- package/lib/skeletons/_angular/base/src/app/features/home/home.routes.ts +6 -0
- package/lib/skeletons/_angular/base/src/app/features/module1/components/page1/page1.component.html +7 -0
- package/lib/skeletons/_angular/base/src/app/features/module1/components/page1/page1.component.ts +10 -0
- package/lib/skeletons/_angular/base/src/app/features/module1/components/page2/page2.component.html +7 -0
- package/lib/skeletons/_angular/base/src/app/features/module1/components/page2/page2.component.ts +10 -0
- package/lib/skeletons/_angular/base/src/app/features/module1/module1.component.html +7 -0
- package/lib/skeletons/_angular/base/src/app/features/module1/module1.component.ts +10 -0
- package/lib/skeletons/_angular/base/src/app/features/module1/module1.routes.ts +10 -0
- package/lib/skeletons/_angular/base/src/app/features/module2/module2.component.html +7 -0
- package/lib/skeletons/_angular/base/src/app/features/module2/module2.component.ts +10 -0
- package/lib/skeletons/_angular/base/src/app/features/module2/module2.routes.ts +6 -0
- package/lib/skeletons/_angular/base/src/app/shared/testing/router.mock.ts +18 -0
- package/lib/skeletons/_angular/base/src/assets/config/env-json-config-dev.json +8 -0
- package/lib/skeletons/_angular/base/src/assets/config/env-json-config-prod.json +8 -0
- package/lib/skeletons/_angular/base/src/assets/config/env-json-config.json +7 -0
- package/lib/skeletons/_angular/base/src/assets/i18n/en.json +7 -0
- package/lib/skeletons/_angular/base/src/assets/i18n/fr.json +7 -0
- package/lib/skeletons/_angular/base/src/config/global.ts +33 -0
- package/lib/skeletons/_angular/base/src/config/index.ts +8 -0
- package/lib/skeletons/_angular/base/src/config/modules.ts +7 -0
- package/lib/skeletons/_angular/base/src/dummy.spec.ts +6 -0
- package/lib/skeletons/_angular/base/src/environments/environment.prod.ts +11 -0
- package/lib/skeletons/_angular/base/src/environments/environment.ts +15 -0
- package/lib/skeletons/_angular/base/src/favicon.ico +0 -0
- package/lib/skeletons/_angular/base/src/index.html +20 -0
- package/lib/skeletons/_angular/base/src/karma.conf.js +47 -0
- package/lib/skeletons/_angular/base/src/main.ts +20 -0
- package/lib/skeletons/_angular/base/src/styles.scss +1 -0
- package/lib/skeletons/_angular/base/src/tsconfig.app.json +18 -0
- package/lib/skeletons/_angular/base/src/tsconfig.spec.json +10 -0
- package/lib/skeletons/_angular/base/tsconfig.json +27 -0
- package/lib/skeletons/_angular/base-mobile/angular.json +156 -0
- package/lib/skeletons/_angular/base-mobile/ionic.config.json +5 -0
- package/lib/skeletons/_angular/base-mobile/ngsw-config.json +33 -0
- package/lib/skeletons/_angular/base-mobile/package.json +27 -0
- package/lib/skeletons/_angular/base-mobile/src/app/app-routing.module.ts +18 -0
- package/lib/skeletons/_angular/base-mobile/src/app/app-starter.service.ts +73 -0
- package/lib/skeletons/_angular/base-mobile/src/app/app.component.html +47 -0
- package/lib/skeletons/_angular/base-mobile/src/app/app.component.ts +81 -0
- package/lib/skeletons/_angular/base-mobile/src/app/app.config.ts +81 -0
- package/lib/skeletons/_angular/base-mobile/src/app/app.module.ts +44 -0
- package/lib/skeletons/_angular/base-mobile/src/app/core/components/.gitkeep +0 -0
- package/lib/skeletons/_angular/base-mobile/src/app/core/core.module.ts +89 -0
- package/lib/skeletons/_angular/base-mobile/src/app/core/reducers/index.ts +32 -0
- package/lib/skeletons/_angular/base-mobile/src/app/features/about/about-routing.module.ts +45 -0
- package/lib/skeletons/_angular/base-mobile/src/app/features/about/about.component.html +70 -0
- package/lib/skeletons/_angular/base-mobile/src/app/features/about/about.component.ts +19 -0
- package/lib/skeletons/_angular/base-mobile/src/app/features/about/about.module.ts +30 -0
- package/lib/skeletons/_angular/base-mobile/src/app/features/about/change-log/changelog.component.html +11 -0
- package/lib/skeletons/_angular/base-mobile/src/app/features/about/change-log/changelog.component.ts +102 -0
- package/lib/skeletons/_angular/base-mobile/src/app/features/about/help-support/help-support.component.html +20 -0
- package/lib/skeletons/_angular/base-mobile/src/app/features/about/help-support/help-support.component.ts +75 -0
- package/lib/skeletons/_angular/base-mobile/src/app/features/about/legal-notice/legal-notice.component.html +12 -0
- package/lib/skeletons/_angular/base-mobile/src/app/features/about/legal-notice/legal-notice.component.ts +8 -0
- package/lib/skeletons/_angular/base-mobile/src/app/features/about/licence-details/licence-details.component.html +48 -0
- package/lib/skeletons/_angular/base-mobile/src/app/features/about/licence-details/licence-details.component.ts +7 -0
- package/lib/skeletons/_angular/base-mobile/src/app/features/about/opensource-licences/opensource-licences.component.html +11 -0
- package/lib/skeletons/_angular/base-mobile/src/app/features/about/opensource-licences/opensource-licences.component.ts +31 -0
- package/lib/skeletons/_angular/base-mobile/src/app/features/about/privacy-statement/privacy-statement.component.html +11 -0
- package/lib/skeletons/_angular/base-mobile/src/app/features/about/privacy-statement/privacy-statement.component.ts +103 -0
- package/lib/skeletons/_angular/base-mobile/src/app/features/home/home-routing.module.ts +15 -0
- package/lib/skeletons/_angular/base-mobile/src/app/features/home/home.component.html +11 -0
- package/lib/skeletons/_angular/base-mobile/src/app/features/home/home.component.ts +9 -0
- package/lib/skeletons/_angular/base-mobile/src/app/features/home/home.module.ts +18 -0
- package/lib/skeletons/_angular/base-mobile/src/app/features/module1/components/page1/page1.component.html +11 -0
- package/lib/skeletons/_angular/base-mobile/src/app/features/module1/components/page1/page1.component.ts +8 -0
- package/lib/skeletons/_angular/base-mobile/src/app/features/module1/components/page2/page2.component.html +11 -0
- package/lib/skeletons/_angular/base-mobile/src/app/features/module1/components/page2/page2.component.ts +8 -0
- package/lib/skeletons/_angular/base-mobile/src/app/features/module1/module1-routing.module.ts +18 -0
- package/lib/skeletons/_angular/base-mobile/src/app/features/module1/module1.component.html +15 -0
- package/lib/skeletons/_angular/base-mobile/src/app/features/module1/module1.component.ts +17 -0
- package/lib/skeletons/_angular/base-mobile/src/app/features/module1/module1.module.ts +21 -0
- package/lib/skeletons/_angular/base-mobile/src/app/features/module2/module2-routing.module.ts +16 -0
- package/lib/skeletons/_angular/base-mobile/src/app/features/module2/module2.component.html +11 -0
- package/lib/skeletons/_angular/base-mobile/src/app/features/module2/module2.component.ts +7 -0
- package/lib/skeletons/_angular/base-mobile/src/app/features/module2/module2.module.ts +17 -0
- package/lib/skeletons/_angular/base-mobile/src/app/shared/shared.module.ts +16 -0
- package/lib/skeletons/_angular/base-mobile/src/app/shared/testing/router.mock.ts +18 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/docs/pdf-test.pdf +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/i18n/en.json +25 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/i18n/es.json +24 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/i18n/fr.json +25 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/i18n/tr.json +25 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-1024.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-114.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-120.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-128.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-144.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-152.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-16.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-180.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-192.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-32.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-36.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-384.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-48.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-512.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-57.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-60.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-72.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-76.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-96.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-1125-2436.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-1170-2532.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-1179-2556.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-1242-2208.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-1242-2688.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-1284-2778.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-1290-2796.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-1488-2266.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-1536-2048.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-1620-2160.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-1640-2360.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-1668-2224.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-1668-2388.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-2048-2732.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-640-1136.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-750-1334.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-828-1792.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-1125-2436.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-1170-2532.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-1179-2556.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-1242-2208.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-1242-2688.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-1284-2778.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-1290-2796.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-1488-2266.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-1536-2048.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-1620-2160.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-1640-2360.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-1668-2224.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-1668-2388.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-2048-2732.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-640-1136.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-750-1334.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-828-1792.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/images/app-icon.svg +10 -0
- package/lib/skeletons/_angular/base-mobile/src/config/global.ts +39 -0
- package/lib/skeletons/_angular/base-mobile/src/config/index.ts +8 -0
- package/lib/skeletons/_angular/base-mobile/src/config/modules.ts +7 -0
- package/lib/skeletons/_angular/base-mobile/src/index.html +76 -0
- package/lib/skeletons/_angular/base-mobile/src/main.ts +23 -0
- package/lib/skeletons/_angular/base-mobile/src/manifest.webmanifest +66 -0
- package/lib/skeletons/_angular/base-mobile/src/tsconfig.app.json +20 -0
- package/lib/skeletons/_angular/base-mobile/tsconfig.json +27 -0
- package/lib/skeletons/_angular/options/ecl-ec/angular.json +181 -0
- package/lib/skeletons/_angular/options/ecl-ec/src/app/app.component.html +237 -0
- package/lib/skeletons/_angular/options/ecl-ec/src/app/app.component.ts +65 -0
- package/lib/skeletons/_angular/options/ecl-ec/src/app/app.config.ts +84 -0
- package/lib/skeletons/_angular/options/ecl-ec/src/app/features/home/home.component.html +71 -0
- package/lib/skeletons/_angular/options/ecl-ec/src/app/features/home/home.component.ts +20 -0
- package/lib/skeletons/_angular/options/ecl-ec/src/app/features/module1/components/page1/page1.component.html +1 -0
- package/lib/skeletons/_angular/options/ecl-ec/src/app/features/module1/components/page1/page1.component.ts +7 -0
- package/lib/skeletons/_angular/options/ecl-ec/src/app/features/module1/components/page2/page2.component.html +1 -0
- package/lib/skeletons/_angular/options/ecl-ec/src/app/features/module1/components/page2/page2.component.ts +7 -0
- package/lib/skeletons/_angular/options/ecl-ec/src/app/features/module1/module1.component.html +1 -0
- package/lib/skeletons/_angular/options/ecl-ec/src/app/features/module1/module1.component.ts +7 -0
- package/lib/skeletons/_angular/options/ecl-ec/src/app/features/module2/module2.component.html +1 -0
- package/lib/skeletons/_angular/options/ecl-ec/src/app/features/module2/module2.component.ts +7 -0
- package/lib/skeletons/_angular/options/ecl-ec/src/config/global.ts +23 -0
- package/lib/skeletons/_angular/options/ecl-eu/angular.json +181 -0
- package/lib/skeletons/_angular/options/ecl-eu/src/app/app.component.html +203 -0
- package/lib/skeletons/_angular/options/ecl-eu/src/app/app.component.ts +65 -0
- package/lib/skeletons/_angular/options/ecl-eu/src/app/app.config.ts +84 -0
- package/lib/skeletons/_angular/options/ecl-eu/src/app/features/home/home.component.html +71 -0
- package/lib/skeletons/_angular/options/ecl-eu/src/app/features/home/home.component.ts +20 -0
- package/lib/skeletons/_angular/options/ecl-eu/src/app/features/module1/components/page1/page1.component.html +1 -0
- package/lib/skeletons/_angular/options/ecl-eu/src/app/features/module1/components/page1/page1.component.ts +7 -0
- package/lib/skeletons/_angular/options/ecl-eu/src/app/features/module1/components/page2/page2.component.html +1 -0
- package/lib/skeletons/_angular/options/ecl-eu/src/app/features/module1/components/page2/page2.component.ts +7 -0
- package/lib/skeletons/_angular/options/ecl-eu/src/app/features/module1/module1.component.html +1 -0
- package/lib/skeletons/_angular/options/ecl-eu/src/app/features/module1/module1.component.ts +7 -0
- package/lib/skeletons/_angular/options/ecl-eu/src/app/features/module2/module2.component.html +1 -0
- package/lib/skeletons/_angular/options/ecl-eu/src/app/features/module2/module2.component.ts +7 -0
- package/lib/skeletons/_angular/options/ecl-eu/src/app/shared/shared.module.ts +15 -0
- package/lib/skeletons/_angular/options/ecl-eu/src/config/global.ts +23 -0
- package/lib/skeletons/_angular/options/pnpm/package.json +72 -0
- package/lib/skeletons/web-maven/package.json +17 -0
- package/lib/skeletons/web-maven/pom.xml +55 -0
- package/lib/skeletons/web-maven/src/main/java/eu/europa/ec/digit/eui/angular2clistarter/servlet/SpringWebApplicationInitializer.java +22 -0
- package/lib/skeletons/web-maven/src/main/java/eu/europa/ec/digit/eui/angular2clistarter/spring/SpringRestConfiguration.java +24 -0
- package/lib/skeletons/web-maven/src/main/java/eu/europa/ec/digit/eui/angular2clistarter/spring/rest/UserDetailsResource.java +23 -0
- package/lib/skeletons/web-maven/src/main/resources/ecas-config-application-name.xml +7 -0
- package/lib/skeletons/web-maven/src/main/webapp/WEB-INF/dispatcher-servlet.xml +11 -0
- package/lib/skeletons/web-maven/src/main/webapp/WEB-INF/web.xml +38 -0
- package/lib/skeletons/web-maven/src/main/webapp/WEB-INF/weblogic.xml +16 -0
- package/lib/skeletons/web-maven/src/main/webapp/index.jsp +30 -0
- package/lib/skeletons/web-spring-boot/myapp-web/pom.xml +83 -0
- package/lib/skeletons/web-spring-boot/myapp-web-rest/pom.xml +83 -0
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/MyappApplication.java +46 -0
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/domain/Address.java +65 -0
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/domain/Building.java +44 -0
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/repositories/BuildingRepository.java +11 -0
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/resources/BuildingResource.java +26 -0
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/resources/SwaggerConfig.java +16 -0
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/resources/support/HateoasPageableHandlerMethodArgumentResolver.java +45 -0
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/resources/support/HypermediaSupport.java +25 -0
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/resources/support/PageJsonSerializer.java +17 -0
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/security/CachingPreventionFilter.java +29 -0
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/security/CsrfPreventionFilter.java +35 -0
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/security/FakeAuthenticationFilter.java +372 -0
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/security/SecurityConfig.java +47 -0
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/services/BuildingSearchCriteria.java +26 -0
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/services/BuildingService.java +10 -0
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/services/BuildingServiceImpl.java +26 -0
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/resources/application.properties +0 -0
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/resources/data.sql +11 -0
- package/lib/skeletons/web-spring-boot/pom.xml +30 -0
- package/lib/utils.js +217 -0
- package/package.json +10 -13
- package/sonar-project.properties +14 -0
package/README.md
CHANGED
package/bin/eui-cli.js
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const spawn = require('cross-spawn');
|
|
4
|
+
const args = process.argv.slice(2);
|
|
5
|
+
|
|
6
|
+
const scriptIndex = args.findIndex(
|
|
7
|
+
(x) =>
|
|
8
|
+
x === '' ||
|
|
9
|
+
x === undefined ||
|
|
10
|
+
x === 'new' ||
|
|
11
|
+
x === 'build-app' ||
|
|
12
|
+
x === 'serve-app' ||
|
|
13
|
+
x === 'lint-app' ||
|
|
14
|
+
x === 'generate-sprite' ||
|
|
15
|
+
x === 'generate-app-metadata' ||
|
|
16
|
+
x === 'help' ||
|
|
17
|
+
x === 'inject-config-app'
|
|
18
|
+
);
|
|
19
|
+
const script = scriptIndex === -1 ? args[0] : args[scriptIndex];
|
|
20
|
+
const nodeArgs = scriptIndex > 0 ? args.slice(0, scriptIndex) : [];
|
|
21
|
+
|
|
22
|
+
switch (script) {
|
|
23
|
+
case '':
|
|
24
|
+
case undefined:
|
|
25
|
+
case 'new':
|
|
26
|
+
case 'build-app':
|
|
27
|
+
case 'serve-app':
|
|
28
|
+
case 'lint-app':
|
|
29
|
+
case 'generate-translations':
|
|
30
|
+
case 'generate-sprite':
|
|
31
|
+
case 'generate-app-metadata':
|
|
32
|
+
case 'help':
|
|
33
|
+
case 'inject-config-app': {
|
|
34
|
+
let genScript = script;
|
|
35
|
+
if (script === '' || script === undefined) {
|
|
36
|
+
genScript = 'new';
|
|
37
|
+
}
|
|
38
|
+
const result = spawn.sync(
|
|
39
|
+
'node',
|
|
40
|
+
nodeArgs
|
|
41
|
+
.concat(require.resolve('./scripts/' + genScript))
|
|
42
|
+
.concat(args.slice(scriptIndex + 1)),
|
|
43
|
+
{ stdio: 'inherit' }
|
|
44
|
+
);
|
|
45
|
+
if (result.signal) {
|
|
46
|
+
if (result.signal === 'SIGKILL') {
|
|
47
|
+
console.log(
|
|
48
|
+
'The build failed because the process exited too early. '+
|
|
49
|
+
'This probably means the system ran out of memory or someone called ' +
|
|
50
|
+
'`kill -9` on the process.'
|
|
51
|
+
);
|
|
52
|
+
} else if(result.signal === 'SIGTERM') {
|
|
53
|
+
console.log(
|
|
54
|
+
'The build failed because the process exited too early. ' +
|
|
55
|
+
'Someone might have called `kill` or `killall`, or the system could ' +
|
|
56
|
+
'be shutting down.'
|
|
57
|
+
)
|
|
58
|
+
}
|
|
59
|
+
process.exit(1);
|
|
60
|
+
}
|
|
61
|
+
process.exit(result.status);
|
|
62
|
+
break;
|
|
63
|
+
}
|
|
64
|
+
default:
|
|
65
|
+
console.log('Unknown script "' + script + '".');
|
|
66
|
+
break;
|
|
67
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const path = require('path');
|
|
4
|
+
const childProcess = require('child_process');
|
|
5
|
+
const execSync = childProcess.execSync;
|
|
6
|
+
|
|
7
|
+
const utils = require('../../lib/utils');
|
|
8
|
+
|
|
9
|
+
Promise.resolve()
|
|
10
|
+
.then(() => {
|
|
11
|
+
const prjName = 'app';
|
|
12
|
+
|
|
13
|
+
utils.logTitle(`Linting application : ${prjName}...`);
|
|
14
|
+
|
|
15
|
+
const ng = path.resolve(process.cwd(), '@angular', 'cli', 'bin', 'ng');
|
|
16
|
+
|
|
17
|
+
execSync(`ng lint ${prjName}`);
|
|
18
|
+
})
|
|
19
|
+
.catch((e) => {
|
|
20
|
+
console.error(e);
|
|
21
|
+
process.exit(1);
|
|
22
|
+
});
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
const path = require('path');
|
|
2
|
+
const generators = require('../../lib/generators');
|
|
3
|
+
const config = require('../../lib/config');
|
|
4
|
+
const utils = require('../../lib/utils');
|
|
5
|
+
|
|
6
|
+
// fetching cli arguments
|
|
7
|
+
const args = utils.getArgs();
|
|
8
|
+
|
|
9
|
+
// Print header and version
|
|
10
|
+
utils.logBigTitle('eUI CLI');
|
|
11
|
+
utils.logAccent(` --- v${config.version} ---\n`);
|
|
12
|
+
|
|
13
|
+
// remapping config if passed as argument - automated mode
|
|
14
|
+
let inputConfig = config.parseInputConfig(args.config);
|
|
15
|
+
|
|
16
|
+
// Detecting targetPath and create it if present as argument - local and automated mode
|
|
17
|
+
let targetPath;
|
|
18
|
+
|
|
19
|
+
if (args.targetPath) {
|
|
20
|
+
targetPath = path.join(config.targetPath, args.targetPath);
|
|
21
|
+
|
|
22
|
+
if (!tools.isDirExists(targetPath)) {
|
|
23
|
+
utils.mkdir(targetPath);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// otherwise taking the default config targetPath defined
|
|
27
|
+
} else {
|
|
28
|
+
targetPath = config.targetPath;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
if (args.v) {
|
|
32
|
+
console.info('Current eUI CLI version installed : ' + config.version);
|
|
33
|
+
|
|
34
|
+
} else {
|
|
35
|
+
return generators.appGenerate({
|
|
36
|
+
inputConfig: inputConfig,
|
|
37
|
+
targetPath: targetPath
|
|
38
|
+
});
|
|
39
|
+
}
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
// TODO v21 - app prebuild for config injection from eUI tools
|
|
2
|
+
|
|
3
|
+
const path = require('path');
|
|
4
|
+
const childProcess = require('child_process');
|
|
5
|
+
const execSync = childProcess.execSync;
|
|
6
|
+
|
|
7
|
+
const utils = require('../utils');
|
|
8
|
+
|
|
9
|
+
// const execa = require('execa');
|
|
10
|
+
|
|
11
|
+
// const tools = require('../../tools');
|
|
12
|
+
// const mavenUtils = require('../../maven-utils');
|
|
13
|
+
// const configUtils = require('../../../csdr/config/config-utils');
|
|
14
|
+
// const versionUtils = require('../../../csdr/version/version-utils');
|
|
15
|
+
|
|
16
|
+
// const preBuildUtils = require('../../pre-build/pre-build-utils');
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
module.exports.run = () => {
|
|
20
|
+
let {
|
|
21
|
+
skipLint,
|
|
22
|
+
skipTest,
|
|
23
|
+
skipCompile,
|
|
24
|
+
configuration,
|
|
25
|
+
baseHref,
|
|
26
|
+
servePath,
|
|
27
|
+
watch,
|
|
28
|
+
dryRun,
|
|
29
|
+
maxSpaceSize,
|
|
30
|
+
statsJson,
|
|
31
|
+
extraWebpackConfig,
|
|
32
|
+
ci,
|
|
33
|
+
deployUrl,
|
|
34
|
+
sourceMap,
|
|
35
|
+
configEnvTarget,
|
|
36
|
+
} = utils.getArgs();
|
|
37
|
+
|
|
38
|
+
const prjName = 'app';
|
|
39
|
+
|
|
40
|
+
utils.logTitle(`Building application : ${prjName}...`);
|
|
41
|
+
|
|
42
|
+
const ng = path.resolve(process.cwd(), '@angular', 'cli', 'bin', 'ng');
|
|
43
|
+
|
|
44
|
+
return Promise.resolve()
|
|
45
|
+
// .then(() => {
|
|
46
|
+
// return preBuildUtils.projects.preBuild(currentProject, envTarget, true, configEnvTarget);
|
|
47
|
+
// })
|
|
48
|
+
|
|
49
|
+
.then(() => {
|
|
50
|
+
if (!skipLint) {
|
|
51
|
+
utils.logInfo(`running ng lint ${prjName}`);
|
|
52
|
+
execSync(`ng lint ${prjName}`);
|
|
53
|
+
}
|
|
54
|
+
})
|
|
55
|
+
|
|
56
|
+
.then(() => {
|
|
57
|
+
if (!skipLint) {
|
|
58
|
+
utils.logSuccess();
|
|
59
|
+
}
|
|
60
|
+
})
|
|
61
|
+
|
|
62
|
+
.then(() => {
|
|
63
|
+
if (!skipLint) {
|
|
64
|
+
utils.logSuccess();
|
|
65
|
+
}
|
|
66
|
+
if (!skipTest) {
|
|
67
|
+
utils.logInfo(`Launching application unit testing...`);
|
|
68
|
+
|
|
69
|
+
let args;
|
|
70
|
+
|
|
71
|
+
if (maxSpaceSize) {
|
|
72
|
+
args = ['--max_old_space_size=8096', ng, 'test', prjName];
|
|
73
|
+
} else {
|
|
74
|
+
args = [ng, 'test', prjName];
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
if (watch) {
|
|
78
|
+
args.push(`--watch=true`);
|
|
79
|
+
} else {
|
|
80
|
+
args.push(`--watch=false`);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
args.push('--code-coverage');
|
|
84
|
+
|
|
85
|
+
utils.logInfo(`ng test : watching = ${watch || false}`);
|
|
86
|
+
|
|
87
|
+
utils.logInfo(`running Angular TEST with args: ${args} on :`);
|
|
88
|
+
|
|
89
|
+
if (!dryRun) {
|
|
90
|
+
execSync(`node ${args.join(' ')}`, { cwd: currentProject.paths.angularPath, stdio: 'inherit' });
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
})
|
|
94
|
+
|
|
95
|
+
.then(() => {
|
|
96
|
+
if (!skipTest) {
|
|
97
|
+
utils.logSuccess();
|
|
98
|
+
}
|
|
99
|
+
utils.logInfo(`Launching application build...`);
|
|
100
|
+
|
|
101
|
+
let args;
|
|
102
|
+
|
|
103
|
+
if (maxSpaceSize) {
|
|
104
|
+
args = ['--max_old_space_size=8096', ng, 'build', prjName, '--aot'];
|
|
105
|
+
} else {
|
|
106
|
+
args = [ng, 'build', prjName, '--aot'];
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
if (statsJson) {
|
|
110
|
+
args.push('--stats-json');
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
if (configuration) {
|
|
114
|
+
args.push(`--configuration=${configuration}`);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
if (baseHref) {
|
|
118
|
+
args.push(`--base-href=${baseHref}`);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
if (servePath) {
|
|
122
|
+
args.push(`--serve-path=${servePath}`);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
if (deployUrl) {
|
|
126
|
+
args.push(`--deploy-url=${deployUrl}`);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
if (ci) {
|
|
130
|
+
args.push('--progress=false');
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
if (sourceMap) {
|
|
134
|
+
args.push('--source-map');
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
utils.logInfo(`ng build for configuration : ${configuration || 'production'}`);
|
|
138
|
+
|
|
139
|
+
utils.logInfo(`running Angular BUILD with args: ${args}`);
|
|
140
|
+
|
|
141
|
+
if (!dryRun && !skipCompile) {
|
|
142
|
+
execSync(`node ${args.join(' ')}`, { cwd: currentProject.paths.angularPath, stdio: 'inherit' });
|
|
143
|
+
}
|
|
144
|
+
})
|
|
145
|
+
|
|
146
|
+
// .then(() => {
|
|
147
|
+
// const projectVersion = parseInt(configUtils.projects.getProjectEuiVersion(currentProject));
|
|
148
|
+
|
|
149
|
+
// if (currentProject.build && currentProject.build.skipBrowserOutputPath) {
|
|
150
|
+
// if (currentProject.build.esbuild || projectVersion >= 18) {
|
|
151
|
+
// utils.copydir(path.join(currentProject.paths.rootPath, 'dist', 'browser'), path.join(currentProject.paths.rootPath, 'dist'));
|
|
152
|
+
// utils.remove(path.join(currentProject.paths.rootPath, 'dist', 'browser'));
|
|
153
|
+
// }
|
|
154
|
+
// }
|
|
155
|
+
// })
|
|
156
|
+
|
|
157
|
+
// .then(() => {
|
|
158
|
+
// const desti18ncompiledPath = path.join(currentProject.paths.rootPath, 'dist', 'assets', 'i18n-compiled');
|
|
159
|
+
// if (utils.isDirExists(desti18ncompiledPath)) {
|
|
160
|
+
// utils.logTitle('Post-build assets i18n-compiled folder content:');
|
|
161
|
+
// const i18nfiles = utils.getFiles(desti18ncompiledPath);
|
|
162
|
+
// console.log(i18nfiles);
|
|
163
|
+
// }
|
|
164
|
+
|
|
165
|
+
// const mediaAssetsPath = path.join(currentProject.paths.rootPath, 'dist', 'assets', 'media');
|
|
166
|
+
// if (utils.isDirExists(mediaAssetsPath)) {
|
|
167
|
+
// utils.copydirFiles(mediaAssetsPath, path.join(currentProject.paths.rootPath, 'dist', 'media'));
|
|
168
|
+
// }
|
|
169
|
+
// })
|
|
170
|
+
|
|
171
|
+
.catch((e) => {
|
|
172
|
+
throw e;
|
|
173
|
+
});
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// TODO v21 - for openid config injection extracted from eUI tools
|
|
2
|
+
|
|
3
|
+
// 'use strict';
|
|
4
|
+
|
|
5
|
+
// const path = require('path');
|
|
6
|
+
|
|
7
|
+
// const tools = require('../tools');
|
|
8
|
+
|
|
9
|
+
// const injectionUtils = require('./injection/injection-utils');
|
|
10
|
+
// const translationUtils = require('./translations/translation-utils');
|
|
11
|
+
|
|
12
|
+
// module.exports.preBuild = (project, envTarget, build, configEnvTarget) => {
|
|
13
|
+
// return Promise.resolve()
|
|
14
|
+
// .then(() => {
|
|
15
|
+
// tools.logTitle('PRE-BUILD : preparing the project...');
|
|
16
|
+
// })
|
|
17
|
+
|
|
18
|
+
// // openId files replacement and app config injection
|
|
19
|
+
// .then(() => {
|
|
20
|
+
// return injectionUtils.openid.injectConfig(project, configEnvTarget);
|
|
21
|
+
// })
|
|
22
|
+
|
|
23
|
+
// .catch((e) => {
|
|
24
|
+
// throw e;
|
|
25
|
+
// })
|
|
26
|
+
// };
|
|
27
|
+
|
|
28
|
+
// module.exports.processSvgAssets = (project) => {
|
|
29
|
+
// return Promise.resolve()
|
|
30
|
+
// .then(() => {
|
|
31
|
+
// const svgsInPath = path.join(project.paths.rootPath, 'src', 'assets', 'svg');
|
|
32
|
+
// const svgsSpritePath = path.join(svgsInPath, sprites);
|
|
33
|
+
// const svgsSpriteFile = 'sprite.svg';
|
|
34
|
+
|
|
35
|
+
// return svgUtils.generateSvgsSprite(svgsInPath, svgsSpritePath, svgsSpriteFile);
|
|
36
|
+
// })
|
|
37
|
+
|
|
38
|
+
// .catch((e) => {
|
|
39
|
+
// throw e;
|
|
40
|
+
// });
|
|
41
|
+
// };
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
// TODO v21 - app prebuild for config injection from eUI tools
|
|
2
|
+
|
|
3
|
+
const path = require('path');
|
|
4
|
+
const childProcess = require('child_process');
|
|
5
|
+
const execSync = childProcess.execSync;
|
|
6
|
+
|
|
7
|
+
const utils = require('../utils');
|
|
8
|
+
|
|
9
|
+
module.exports.run = () => {
|
|
10
|
+
|
|
11
|
+
let { configuration, baseHref, servePath, host, proxyConfig, maxSpaceSize, port, disableHostCheck, open, debug, configEnvTarget, noLiveReload } = utils.getArgs();
|
|
12
|
+
|
|
13
|
+
const ng = path.resolve(process.cwd(), 'node_modules', '@angular', 'cli', 'bin', 'ng');
|
|
14
|
+
|
|
15
|
+
const prjName = 'app';
|
|
16
|
+
|
|
17
|
+
return Promise.resolve()
|
|
18
|
+
// .then(() => {
|
|
19
|
+
// return preBuildUtils.projects.preBuild(prj, configuration, false, configEnvTarget);
|
|
20
|
+
// })
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
// trigger ng serve with parameters provided
|
|
24
|
+
.then(() => {
|
|
25
|
+
utils.logTitle(`Serving application : ${prjName}...`);
|
|
26
|
+
|
|
27
|
+
let args;
|
|
28
|
+
|
|
29
|
+
if (maxSpaceSize) {
|
|
30
|
+
args = ['--max_old_space_size=8192', ng, 'serve', prjName];
|
|
31
|
+
} else {
|
|
32
|
+
args = [ng, 'serve', prjName];
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
if (configuration) {
|
|
36
|
+
args.push(`--configuration=${configuration}`);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
if (proxyConfig) {
|
|
40
|
+
args.push(`--proxy-config=${proxyConfig}`);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
if (baseHref) {
|
|
44
|
+
args.push(`--base-href=${baseHref}`);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
if (servePath) {
|
|
48
|
+
args.push(`--serve-path=${servePath}`);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
if (host) {
|
|
52
|
+
args.push(`--host=${host}`);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
if (port) {
|
|
56
|
+
args.push(`--port=${port}`);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
if (disableHostCheck) {
|
|
60
|
+
args.push(`--disable-host-check`);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
if (!(open === 'false')) {
|
|
64
|
+
args.push('--open=true');
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
if (noLiveReload) {
|
|
68
|
+
args.push('--live-reload=false');
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
utils.logInfo(`ng serve with args ${args}`);
|
|
72
|
+
|
|
73
|
+
return execSync(`node ${args.join(' ')}`, { cwd: process.cwd(), stdio: 'inherit' });
|
|
74
|
+
})
|
|
75
|
+
.catch((e) => {
|
|
76
|
+
throw e;
|
|
77
|
+
});
|
|
78
|
+
}
|
package/lib/build.js
ADDED
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
const childProcess = require('child_process');
|
|
2
|
+
const execSync = childProcess.execSync;
|
|
3
|
+
const path = require('path');
|
|
4
|
+
const utils = require('./utils');
|
|
5
|
+
const config = require('./config');
|
|
6
|
+
|
|
7
|
+
module.exports.start = (options) => {
|
|
8
|
+
return Promise.resolve()
|
|
9
|
+
.then(() => {
|
|
10
|
+
return build(options.config, options.targetPath)
|
|
11
|
+
})
|
|
12
|
+
|
|
13
|
+
.catch((e) => {
|
|
14
|
+
throw e;
|
|
15
|
+
})
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
const build = (cliConfig, targetPath) => {
|
|
19
|
+
let {appName, appType, appSubType, tag, groupId, artifactId, ...args} = cliConfig;
|
|
20
|
+
|
|
21
|
+
console.log(`Building app : ${appType}`);
|
|
22
|
+
|
|
23
|
+
return Promise.resolve()
|
|
24
|
+
.then(() => {
|
|
25
|
+
let target = targetPath;
|
|
26
|
+
console.log(`--cleaning target : ${target}`);
|
|
27
|
+
|
|
28
|
+
if (!utils.isDirEmpty(target)) {
|
|
29
|
+
utils.logError(`Target directory : ${target} is not empty, execute eUI CLI in a blank directory... quitting`);
|
|
30
|
+
throw new Error('DIR_NOT_EMPTY');
|
|
31
|
+
}
|
|
32
|
+
})
|
|
33
|
+
|
|
34
|
+
.then(() => {
|
|
35
|
+
|
|
36
|
+
// BUILD ANGULAR
|
|
37
|
+
if (appType === 'angular' || appType === 'mobile') {
|
|
38
|
+
return Promise.resolve()
|
|
39
|
+
.then(() => {
|
|
40
|
+
console.log('---building angular');
|
|
41
|
+
const angularPath = utils.getAngularPath(targetPath, appName, appType, artifactId);
|
|
42
|
+
console.log(angularPath);
|
|
43
|
+
return copyAngular(angularPath, cliConfig, true);
|
|
44
|
+
})
|
|
45
|
+
.catch((e) => {
|
|
46
|
+
throw e;
|
|
47
|
+
})
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// BUILD web-maven
|
|
51
|
+
if (appType === 'web-maven') {
|
|
52
|
+
return Promise.resolve()
|
|
53
|
+
.then(() => {
|
|
54
|
+
console.log('--building web-maven');
|
|
55
|
+
return utils.copydir(config.webMavenPath, targetPath);
|
|
56
|
+
})
|
|
57
|
+
.then(() => {
|
|
58
|
+
const angularPath = utils.getAngularPath(targetPath, appName, appType);
|
|
59
|
+
return copyAngular(angularPath, cliConfig);
|
|
60
|
+
})
|
|
61
|
+
.catch((e) => {
|
|
62
|
+
throw e;
|
|
63
|
+
})
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// BUILD web-spring-boot
|
|
67
|
+
if (appType === 'web-spring-boot') {
|
|
68
|
+
return Promise.resolve()
|
|
69
|
+
.then(() => {
|
|
70
|
+
console.log('--building web-spring-boot');
|
|
71
|
+
return execSync(`mvn generate-sources -f ./maven-build/pom.xml -Pbuild-web-spring-boot -Dsrc.path=${config.webSpringBootPath} -Dtarget.path=${targetPath} -Dapp.group.id=${groupId} -Dapp.artifact.id=${artifactId}`, {
|
|
72
|
+
cwd: path.join(__dirname),
|
|
73
|
+
stdio: "inherit"
|
|
74
|
+
});
|
|
75
|
+
})
|
|
76
|
+
.then(() => {
|
|
77
|
+
const angularPath = utils.getAngularPath(targetPath, appName, appType, artifactId);
|
|
78
|
+
return copyAngular(angularPath, cliConfig, false);
|
|
79
|
+
})
|
|
80
|
+
.catch((e) => {
|
|
81
|
+
throw e;
|
|
82
|
+
})
|
|
83
|
+
}
|
|
84
|
+
})
|
|
85
|
+
.catch((e) => {
|
|
86
|
+
console.log(e);
|
|
87
|
+
throw e;
|
|
88
|
+
})
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
const copyAngular = (targetPath, cliConfig, overwrite = true) => {
|
|
95
|
+
return Promise.resolve()
|
|
96
|
+
.then(() => {
|
|
97
|
+
const {angularBasePath} = config;
|
|
98
|
+
const sourcePath = angularBasePath;
|
|
99
|
+
|
|
100
|
+
return utils.copydir(sourcePath, targetPath, overwrite);
|
|
101
|
+
})
|
|
102
|
+
.then(() => {
|
|
103
|
+
if (cliConfig.appType === 'mobile') {
|
|
104
|
+
return utils.copydir(config.angularBaseMobilePath, targetPath, overwrite);
|
|
105
|
+
}
|
|
106
|
+
})
|
|
107
|
+
.then(() => {
|
|
108
|
+
if (cliConfig.appOptions && cliConfig.appOptions.length !== 0) {
|
|
109
|
+
cliConfig.appOptions.forEach((item) => {
|
|
110
|
+
if (item !== 'ecl') {
|
|
111
|
+
console.log('Applying option : ' + item);
|
|
112
|
+
utils.copydir(config.optionsPath[item], targetPath, true);
|
|
113
|
+
}
|
|
114
|
+
})
|
|
115
|
+
if (cliConfig.appOptions.includes('ecl') && cliConfig.appOptionsEclTheme) {
|
|
116
|
+
console.log(`eUI ECL theme selected : ` + cliConfig.appOptionsEclTheme);
|
|
117
|
+
utils.copydir(config.optionsPath[cliConfig.appOptionsEclTheme], targetPath, true);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
return Promise.resolve();
|
|
121
|
+
})
|
|
122
|
+
.then(() => {
|
|
123
|
+
if (cliConfig.packageManager === 'pnpm') {
|
|
124
|
+
utils.copy(path.join(config.pnpmOptionPath, 'package.json'), path.join(targetPath, 'package.json'));
|
|
125
|
+
}
|
|
126
|
+
})
|
|
127
|
+
.catch((e) => {
|
|
128
|
+
throw e;
|
|
129
|
+
})
|
|
130
|
+
}
|