@eui/tools 6.12.63 → 6.12.65

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.
Files changed (18) hide show
  1. package/.version.properties +1 -1
  2. package/CHANGELOG.md +18 -0
  3. package/package.json +1 -1
  4. package/scripts/csdr/config/angular.js +10 -2
  5. package/scripts/csdr/config/config-skeletons.js +273 -0
  6. package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui17/src/_generated/app/app.module.ts +52 -0
  7. package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui17/src/_generated/app/core/reducers/index.ts +49 -0
  8. package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui17/src/_generated/config/global.ts +4 -0
  9. package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui17/src/_generated/config/index.ts +8 -0
  10. package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui17/src/_generated/config/modules.ts +4 -0
  11. package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui17/src/_generated/environments/environment.dev.ts +9 -0
  12. package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui17/src/_generated/environments/environment.prod.ts +9 -0
  13. package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui17/src/_generated/environments/environment.ts +21 -0
  14. package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui17/src/_generated/favicon.ico +0 -0
  15. package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui17/src/_generated/main.ts +21 -0
  16. package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui17/tsconfig.app.json +28 -0
  17. package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui17/tsconfig.spec.json +9 -0
  18. package/scripts/utils/pre-build/injection/skeletons.js +9 -4
@@ -1 +1 @@
1
- 6.12.63
1
+ 6.12.65
package/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
1
+ ## 6.12.65 (2023-10-10)
2
+
3
+ ##### Chores
4
+
5
+ * **other:**
6
+ * add tscompiler options for v17 showcase injection - EUI-7843 [EUI-7843](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-7843) ([6ea94a0c](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/6ea94a0ce7c0fefc7174e13f8ba246668a2816e6))
7
+
8
+ * * *
9
+ * * *
10
+ ## 6.12.64 (2023-10-07)
11
+
12
+ ##### Chores
13
+
14
+ * **other:**
15
+ * adapted skeleton sources and config to v17 - EUI-7843 [EUI-7843](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-7843) ([3baac547](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/3baac547f5f1458f321956a0d9ea82ea4d0faa7b))
16
+
17
+ * * *
18
+ * * *
1
19
  ## 6.12.63 (2023-10-05)
2
20
 
3
21
  ##### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "6.12.63",
3
+ "version": "6.12.65",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -16,10 +16,12 @@ const {
16
16
  angularProjectDef,
17
17
  angularProjectDefV13,
18
18
  angularProjectDefV14,
19
+ angularProjectDefV17,
19
20
  angularProjectLightDef,
20
21
  angularProjectDefFullSkeleton,
21
22
  angularProjectDefFullSkeletonV13,
22
23
  angularProjectDefFullSkeletonV14,
24
+ angularProjectDefFullSkeletonV17,
23
25
  angularProjectDefConfiguration,
24
26
  angularProjectDefConfigurationHost,
25
27
  angularProjectDefConfigurationLight,
@@ -225,9 +227,12 @@ module.exports.registerAngularProjectDef = (project, build = false, element = fa
225
227
  if (euiVersion === '13.x') {
226
228
  projectDef = JSON.stringify(angularProjectDefFullSkeletonV13);
227
229
  tools.logInfo(`----using angularProjectDefFullSkeletonV13`);
228
- } else if (euiVersion === '14.x' || euiVersion === '15.x' || euiVersion === '16.x' || euiVersion === '17.x') {
230
+ } else if (euiVersion === '14.x' || euiVersion === '15.x' || euiVersion === '16.x') {
229
231
  projectDef = JSON.stringify(angularProjectDefFullSkeletonV14);
230
232
  tools.logInfo(`----using angularProjectDefFullSkeletonV14`);
233
+ } else if (euiVersion === '17.x') {
234
+ projectDef = JSON.stringify(angularProjectDefFullSkeletonV17);
235
+ tools.logInfo(`----using angularProjectDefFullSkeletonV17`);
231
236
  } else {
232
237
  projectDef = JSON.stringify(angularProjectDefFullSkeleton);
233
238
  tools.logInfo(`----using angularProjectDefFullSkeleton`);
@@ -237,9 +242,12 @@ module.exports.registerAngularProjectDef = (project, build = false, element = fa
237
242
  if (euiVersion === '13.x') {
238
243
  projectDef = JSON.stringify(angularProjectDefV13);
239
244
  tools.logInfo(`----using angularProjectDefV13`);
240
- } else if (euiVersion === '14.x' || euiVersion === '15.x' || euiVersion === '16.x' || euiVersion === '17.x') {
245
+ } else if (euiVersion === '14.x' || euiVersion === '15.x' || euiVersion === '16.x') {
241
246
  projectDef = JSON.stringify(angularProjectDefV14);
242
247
  tools.logInfo(`----using angularProjectDefV14`);
248
+ } else if (euiVersion === '17.x') {
249
+ projectDef = JSON.stringify(angularProjectDefV17);
250
+ tools.logInfo(`----using angularProjectDefV17`);
243
251
  } else {
244
252
  if (project.build && project.build.csdrFileReplacement === true) {
245
253
  projectDef = JSON.stringify(angularProjectLightDef);
@@ -542,6 +542,170 @@ module.exports.angularProjectDefV14 = {
542
542
  };
543
543
 
544
544
 
545
+ module.exports.angularProjectDefV17 = {
546
+ "root": "",
547
+ "sourceRoot": "apps/@project.name@/src",
548
+ "projectType": "application",
549
+ "prefix": "app",
550
+ "schematics": {
551
+ "@schematics/angular:component": {
552
+ "style": "scss"
553
+ },
554
+ "@schematics/angular:application": {
555
+ "strict": true
556
+ }
557
+ },
558
+ "architect": {
559
+ "lint": {
560
+ "builder": "@angular-eslint/builder:lint",
561
+ "options": {
562
+ "lintFilePatterns": [
563
+ "apps/@project.name@/**/*.ts",
564
+ "apps/@project.name@/**/*.html"
565
+ ],
566
+ "eslintConfig": "apps/@project.name@/.eslintrc.json"
567
+ }
568
+ },
569
+ "build": {
570
+ "builder": "@angular-devkit/build-angular:application",
571
+ "options": {
572
+ "outputPath": "apps/@project.name@/dist",
573
+ "index": "apps/@project.name@/src/index.html",
574
+ "browser": "apps/@project.name@/src/main.ts",
575
+ "polyfills": [
576
+ "zone.js"
577
+ ],
578
+ "tsConfig": "apps/@project.name@/tsconfig.app.json",
579
+ "assets": [
580
+ "apps/@project.name@/src/favicon.ico",
581
+ "apps/@project.name@/src/assets",
582
+ {
583
+ "glob": "**/*",
584
+ "input": "node_modules/@eui/core/assets/",
585
+ "output": "./assets"
586
+ }
587
+ ],
588
+ "styles": [
589
+ ]
590
+ },
591
+ "configurations": {
592
+ "production": {
593
+ "fileReplacements": [
594
+ {
595
+ "replace": "apps/@project.name@/src/environments/environment.ts",
596
+ "with": "apps/@project.name@/src/environments/environment.prod.ts"
597
+ }
598
+ ],
599
+ "optimization": false,
600
+ "outputHashing": "all",
601
+ "sourceMap": false,
602
+ "namedChunks": true,
603
+ "aot": true,
604
+ "extractLicenses": true,
605
+ "vendorChunk": false,
606
+ "buildOptimizer": false,
607
+ "budgets": [
608
+ {
609
+ "type": "initial",
610
+ "maximumWarning": "2mb",
611
+ "maximumError": "8mb"
612
+ }
613
+ ]
614
+ },
615
+ "production-optimized": {
616
+ "fileReplacements": [
617
+ {
618
+ "replace": "apps/@project.name@/src/environments/environment.ts",
619
+ "with": "apps/@project.name@/src/environments/environment.prod.ts"
620
+ }
621
+ ],
622
+ "optimization": {
623
+ "scripts": true,
624
+ "styles": {
625
+ "minify": false,
626
+ "inlineCritical": true
627
+ },
628
+ "fonts": true
629
+ },
630
+ "outputHashing": "all",
631
+ "sourceMap": false,
632
+ "namedChunks": true,
633
+ "aot": true,
634
+ "extractLicenses": true,
635
+ "vendorChunk": false,
636
+ "buildOptimizer": true,
637
+ "budgets": [
638
+ {
639
+ "type": "initial",
640
+ "maximumWarning": "2mb",
641
+ "maximumError": "8mb"
642
+ }
643
+ ]
644
+ },
645
+ "production-optimized-no-openid": {
646
+ "fileReplacements": [
647
+ {
648
+ "replace": "apps/@project.name@/src/environments/environment.ts",
649
+ "with": "apps/@project.name@/src/environments/environment.prod.ts"
650
+ }
651
+ ],
652
+ "optimization": {
653
+ "scripts": true,
654
+ "styles": {
655
+ "minify": false,
656
+ "inlineCritical": true
657
+ },
658
+ "fonts": true
659
+ },
660
+ "outputHashing": "all",
661
+ "sourceMap": false,
662
+ "namedChunks": true,
663
+ "aot": true,
664
+ "extractLicenses": true,
665
+ "vendorChunk": false,
666
+ "buildOptimizer": true,
667
+ "budgets": [
668
+ {
669
+ "type": "initial",
670
+ "maximumWarning": "2mb",
671
+ "maximumError": "8mb"
672
+ }
673
+ ]
674
+ },
675
+ "development": {
676
+ "buildOptimizer": false,
677
+ "optimization": false,
678
+ "vendorChunk": true,
679
+ "extractLicenses": false,
680
+ "sourceMap": true,
681
+ "namedChunks": true
682
+ }
683
+ },
684
+ "defaultConfiguration": "production"
685
+ },
686
+ "serve": {
687
+ "builder": "@angular-devkit/build-angular:dev-server",
688
+ "options": {
689
+ "browserTarget": "@project.name@:build"
690
+ },
691
+ "configurations": {
692
+ "proxy-mock": {
693
+ "browserTarget": "@project.name@:build:development",
694
+ "proxyConfig": "apps/@project.name@/proxy-mock.conf.json"
695
+ },
696
+ "production": {
697
+ "browserTarget": "@project.name@:build:production"
698
+ },
699
+ "development": {
700
+ "browserTarget": "@project.name@:build:development"
701
+ }
702
+ },
703
+ "defaultConfiguration": "development"
704
+ }
705
+ }
706
+ };
707
+
708
+
545
709
 
546
710
  module.exports.angularProjectLightDef = {
547
711
  "root": "",
@@ -1001,6 +1165,115 @@ module.exports.angularProjectDefFullSkeletonV14 = {
1001
1165
 
1002
1166
 
1003
1167
 
1168
+ module.exports.angularProjectDefFullSkeletonV17 = {
1169
+ "root": "",
1170
+ "sourceRoot": "apps/@project.name@/src",
1171
+ "projectType": "application",
1172
+ "prefix": "app",
1173
+ "schematics": {
1174
+ "@schematics/angular:component": {
1175
+ "style": "scss"
1176
+ },
1177
+ "@schematics/angular:application": {
1178
+ "strict": true
1179
+ }
1180
+ },
1181
+ "architect": {
1182
+ "build": {
1183
+ "builder": "@angular-devkit/build-angular:application",
1184
+ "options": {
1185
+ "outputPath": "apps/@project.name@/dist",
1186
+ "index": "apps/@project.name@/src/index.html",
1187
+ "browser": "apps/@project.name@/src/_generated/main.ts",
1188
+ "polyfills": [
1189
+ "zone.js"
1190
+ ],
1191
+ "tsConfig": "apps/@project.name@/tsconfig.app.json",
1192
+ "assets": [
1193
+ "apps/@project.name@/src/favicon.ico",
1194
+ "apps/@project.name@/src/assets",
1195
+ {
1196
+ "glob": "**/*",
1197
+ "input": "node_modules/@eui/core/assets/",
1198
+ "output": "./assets"
1199
+ }
1200
+ ],
1201
+ "styles": [
1202
+ ]
1203
+ },
1204
+ "configurations": {
1205
+ "production": {
1206
+ "fileReplacements": [
1207
+ {
1208
+ "replace": "apps/@project.name@/src/_generated/environments/environment.ts",
1209
+ "with": "apps/@project.name@/src/_generated/environments/environment.prod.ts"
1210
+ }
1211
+ ],
1212
+ "outputHashing": "all",
1213
+ "budgets": [
1214
+ {
1215
+ "type": "initial",
1216
+ "maximumWarning": "2mb",
1217
+ "maximumError": "10mb"
1218
+ }
1219
+ ]
1220
+ },
1221
+ "production-optimized-no-openid": {
1222
+ "fileReplacements": [
1223
+ {
1224
+ "replace": "apps/@project.name@/src/_generated/environments/environment.ts",
1225
+ "with": "apps/@project.name@/src/_generated/environments/environment.prod.ts"
1226
+ }
1227
+ ],
1228
+ "optimization": {
1229
+ "scripts": true,
1230
+ "styles": {
1231
+ "minify": false,
1232
+ "inlineCritical": true
1233
+ },
1234
+ "fonts": true
1235
+ },
1236
+ "outputHashing": "all",
1237
+ "budgets": [
1238
+ {
1239
+ "type": "initial",
1240
+ "maximumWarning": "2mb",
1241
+ "maximumError": "10mb"
1242
+ }
1243
+ ]
1244
+ },
1245
+ "development": {
1246
+ "optimization": false,
1247
+ "extractLicenses": false,
1248
+ "sourceMap": true
1249
+ }
1250
+ },
1251
+ "defaultConfiguration": "production"
1252
+ },
1253
+ "serve": {
1254
+ "builder": "@angular-devkit/build-angular:dev-server",
1255
+ "options": {
1256
+ "browserTarget": "@project.name@:build"
1257
+ },
1258
+ "configurations": {
1259
+ "proxy-mock": {
1260
+ "browserTarget": "@project.name@:build",
1261
+ "proxyConfig": "apps/@project.name@/proxy-mock.conf.json"
1262
+ },
1263
+ "production": {
1264
+ "browserTarget": "@project.name@:build:production"
1265
+ },
1266
+ "development": {
1267
+ "browserTarget": "@project.name@:build:development"
1268
+ }
1269
+ },
1270
+ "defaultConfiguration": "development"
1271
+ }
1272
+ }
1273
+ };
1274
+
1275
+
1276
+
1004
1277
 
1005
1278
 
1006
1279
  module.exports.angularProjectDefConfiguration = {
@@ -0,0 +1,52 @@
1
+ // ANGULAR & 3rd PARTIES
2
+ import { NgModule } from '@angular/core';
3
+ import { BrowserModule } from '@angular/platform-browser';
4
+ import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
5
+ import { HttpClientModule } from '@angular/common/http';
6
+ import { StoreModule } from '@ngrx/store';
7
+ import { EffectsModule } from '@ngrx/effects';
8
+ import { StoreDevtoolsModule } from '@ngrx/store-devtools';
9
+ import { TranslateModule } from '@ngx-translate/core';
10
+
11
+ // eUI IMPORTS
12
+ import {
13
+ CoreModule, CoreModuleEffects, translateConfig, EUI_CONFIG_TOKEN,
14
+ } from '@eui/core';
15
+ import { EuiAllModule } from '@eui/components';
16
+
17
+ import { appConfig } from '../config/index';
18
+ import { environment } from '../environments/environment';
19
+
20
+ // APP ROUTES & ROOT COMPONENTS
21
+ import { AppRoutingModule } from '../../app/app-routing.module';
22
+ import { AppComponent } from '../../app/app.component';
23
+
24
+ import { TOKEN, reducerProvider, metaReducers, runtimeChecks } from './core/reducers/index';
25
+
26
+ // APP ROOT MODULE
27
+ @NgModule({
28
+ imports: [
29
+ BrowserModule,
30
+ BrowserAnimationsModule,
31
+ HttpClientModule,
32
+ StoreModule.forRoot(TOKEN, { metaReducers, runtimeChecks }),
33
+ StoreDevtoolsModule.instrument({ name: 'CSDR App', maxAge: 150, logOnly: environment.production }),
34
+ EffectsModule.forRoot([...CoreModuleEffects]),
35
+ TranslateModule.forRoot(translateConfig),
36
+ CoreModule.forRoot(),
37
+ AppRoutingModule,
38
+ EuiAllModule,
39
+ ],
40
+ declarations: [
41
+ AppComponent,
42
+ ],
43
+ providers: [
44
+ { provide: EUI_CONFIG_TOKEN, useValue: { appConfig: appConfig, environment: environment } },
45
+ reducerProvider,
46
+ ],
47
+ bootstrap: [
48
+ AppComponent,
49
+ ],
50
+ })
51
+ export class AppModule {
52
+ }
@@ -0,0 +1,49 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ import { ActionReducer, ActionReducerMap, MetaReducer, RuntimeChecks } from '@ngrx/store';
3
+ import * as fromRouter from '@ngrx/router-store';
4
+ import { storeFreeze } from 'ngrx-store-freeze';
5
+ import { reducers as coreReducers, CoreState, localStorageSync } from '@eui/core';
6
+
7
+ export interface AppState extends CoreState {
8
+ router: fromRouter.RouterReducerState<any>;
9
+ }
10
+
11
+ // -----------------
12
+ // ------------ AOT
13
+ export const TOKEN = new InjectionToken<any>('AppReducers');
14
+
15
+ export function getReducers(): ActionReducerMap<AppState, any> {
16
+ return {
17
+ router: fromRouter.routerReducer,
18
+ ...coreReducers,
19
+ };
20
+ }
21
+
22
+ export const reducerProvider = [
23
+ { provide: TOKEN, useFactory: getReducers },
24
+ ];
25
+
26
+ // console.log all actions
27
+ export function logger(reducer: ActionReducer<AppState>): ActionReducer<AppState> {
28
+ return (state, action) => {
29
+ const result = reducer(state, action);
30
+ console.groupCollapsed(action.type);
31
+ console.log('prev state', state);
32
+ console.log('action', action);
33
+ console.log('next state', result);
34
+ console.groupEnd();
35
+
36
+ return result;
37
+ };
38
+ }
39
+
40
+ export const metaReducers: MetaReducer<AppState>[] = [logger, localStorageSync, storeFreeze];
41
+
42
+ export const runtimeChecks: RuntimeChecks = {
43
+ strictStateSerializability: false,
44
+ strictActionSerializability: false,
45
+ strictStateImmutability: false,
46
+ strictActionImmutability: false,
47
+ strictActionWithinNgZone: false,
48
+ strictActionTypeUniqueness: false,
49
+ };
@@ -0,0 +1,4 @@
1
+ import { GlobalConfig } from '@eui/core';
2
+
3
+ export const GLOBAL: GlobalConfig = {
4
+ };
@@ -0,0 +1,8 @@
1
+ import { EuiAppConfig } from '@eui/core';
2
+ import { GLOBAL } from './global';
3
+ import { MODULES } from './modules';
4
+
5
+ export const appConfig: EuiAppConfig = {
6
+ global: GLOBAL,
7
+ modules: MODULES,
8
+ };
@@ -0,0 +1,4 @@
1
+ import { ModulesConfig } from '@eui/core';
2
+
3
+ export const MODULES: ModulesConfig = {
4
+ };
@@ -0,0 +1,9 @@
1
+ // activated by running :
2
+ // npm run build -- --configuration=dev
3
+ // OR
4
+ // npm run build-dev
5
+
6
+ export const environment = {
7
+ production: false,
8
+ enableDevToolRedux: true,
9
+ };
@@ -0,0 +1,9 @@
1
+ import { EuiEnvConfig } from '@eui/core';
2
+
3
+ export const environment: EuiEnvConfig = {
4
+ production: true,
5
+ enableDevToolRedux: false,
6
+ envDynamicConfig: {
7
+ uri: 'assets/config/env-json-config.json',
8
+ },
9
+ };
@@ -0,0 +1,21 @@
1
+ // used by serve / when no configuration is provided on the build script
2
+ // run npm run build
3
+
4
+ import { EuiEnvConfig } from '@eui/core';
5
+
6
+ export const environment: EuiEnvConfig = {
7
+ production: false,
8
+ enableDevToolRedux: true,
9
+ envDynamicConfig: {
10
+ uri: 'assets/config/env-json-config.json',
11
+ },
12
+ };
13
+
14
+ /*
15
+ * For easier debugging in development mode, you can import the following file
16
+ * to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.
17
+ *
18
+ * This import should be commented out in production mode because it will have a negative impact
19
+ * on performance if an error is thrown.
20
+ */
21
+ // import 'zone.js/dist/zone-error'; // Included with Angular CLI.
@@ -0,0 +1,21 @@
1
+ import { enableProdMode } from '@angular/core';
2
+ import { preInitApp } from '@eui/core';
3
+ import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
4
+
5
+ import { AppModule } from './app/app.module';
6
+ import { environment } from './environments/environment';
7
+ import { ApplicationRef } from '@angular/core';
8
+ import { enableDebugTools } from '@angular/platform-browser';
9
+
10
+ if (environment.production) {
11
+ enableProdMode();
12
+ }
13
+ preInitApp(environment).then(() => {
14
+ platformBrowserDynamic().bootstrapModule(AppModule)
15
+ .then(moduleRef => {
16
+ const applicationRef = moduleRef.injector.get(ApplicationRef);
17
+ const componentRef = applicationRef.components[0];
18
+ enableDebugTools(componentRef);
19
+ })
20
+ .catch(err => console.log(err));
21
+ });
@@ -0,0 +1,28 @@
1
+ {
2
+ "extends": "../../tsconfig.json",
3
+ "compilerOptions": {
4
+ "outDir": "./dist",
5
+ "types": [],
6
+ "target": "ES2022",
7
+ "module": "ES2022",
8
+ "lib": [
9
+ "ES2022",
10
+ "dom"
11
+ ],
12
+ "useDefineForClassFields": false
13
+ },
14
+ "angularCompilerOptions": {
15
+ "annotateForClosureCompiler": true,
16
+ "strictTemplates": true,
17
+ "strictInjectionParameters": true,
18
+ },
19
+ "exclude": [
20
+ "test.ts",
21
+ "**/*.spec.ts",
22
+ "_todo/**/*.ts",
23
+ "**/_todo/**/*.ts",
24
+ "src/assets/samples/**/*.ts",
25
+ "dist/assets/samples/**/*.ts"
26
+ ],
27
+ "include": ["**/*.ts"]
28
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "extends": "../../tsconfig.json",
3
+ "compilerOptions": {
4
+ "outDir": "./dist",
5
+ "types": ["jasmine", "node"]
6
+ },
7
+ "files": ["src/test.ts", "src/polyfills.ts"],
8
+ "include": ["**/*.spec.ts", "**/*.d.ts"]
9
+ }
@@ -56,14 +56,19 @@ module.exports.injectCsdrFullSkeletonSources = (project, euiVersion) => {
56
56
  // copying skeleton sources
57
57
  if (euiVersion === '13.x') {
58
58
  tools.copydir(path.join(__dirname, 'app-sources-full-skeleton-eui13'), project.folder, false);
59
- } else if (euiVersion === '14.x' || euiVersion === '15.x' || euiVersion === '16.x' || euiVersion === '17.x') {
59
+ tools.move(path.join(project.folder, 'src', '_generated', 'tst.ts'), path.join(project.folder, 'src', '_generated', 'test.ts'));
60
+
61
+ } else if (euiVersion === '14.x' || euiVersion === '15.x' || euiVersion === '16.x') {
60
62
  tools.copydir(path.join(__dirname, 'app-sources-full-skeleton-eui14'), project.folder, false);
63
+ tools.move(path.join(project.folder, 'src', '_generated', 'tst.ts'), path.join(project.folder, 'src', '_generated', 'test.ts'));
64
+
65
+ } else if (euiVersion === '17.x') {
66
+ tools.copydir(path.join(__dirname, 'app-sources-full-skeleton-eui17'), project.folder, false);
67
+
61
68
  } else {
62
69
  tools.copydir(path.join(__dirname, 'app-sources-full-skeleton'), project.folder, false);
70
+ tools.move(path.join(project.folder, 'src', '_generated', 'tst.ts'), path.join(project.folder, 'src', '_generated', 'test.ts'));
63
71
  }
64
-
65
- // renaming tst.ts as it's conflicting with Jest... (TODO)
66
- tools.move(path.join(project.folder, 'src', '_generated', 'tst.ts'), path.join(project.folder, 'src', '_generated', 'test.ts'));
67
72
  })
68
73
 
69
74
  .catch((e) => {