@eui/tools 6.16.5 → 6.16.7

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.
@@ -34,7 +34,7 @@ module.exports.installDeps = (deps) => {
34
34
  .then(() => {
35
35
  const euiVersion = configUtils.global.getLocalEuiVersion();
36
36
 
37
- if (euiVersion === '17.x') {
37
+ if (euiVersion === '17.x' || euiVersion === '18.x') {
38
38
  Object.keys(deps).forEach((dep) => {
39
39
  if (dep === '@eui/deps-base') {
40
40
  deps['@eui/components'] = deps[dep];
@@ -4,13 +4,13 @@ import { BrowserModule } from '@angular/platform-browser';
4
4
  import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
5
5
  import { HttpClientModule } from '@angular/common/http';
6
6
  import { StoreModule } from '@ngrx/store';
7
- import { EffectsModule } from '@ngrx/effects';
8
- import { StoreDevtoolsModule } from '@ngrx/store-devtools';
7
+ // import { EffectsModule } from '@ngrx/effects';
8
+ // import { StoreDevtoolsModule } from '@ngrx/store-devtools';
9
9
  import { TranslateModule } from '@ngx-translate/core';
10
10
 
11
11
  // eUI IMPORTS
12
12
  import {
13
- CoreModule, CoreModuleEffects, translateConfig, EUI_CONFIG_TOKEN,
13
+ CoreModule, translateConfig, EUI_CONFIG_TOKEN,
14
14
  } from '@eui/core';
15
15
  import { EuiAllModule } from '@eui/components';
16
16
 
@@ -21,7 +21,7 @@ import { environment } from '../environments/environment';
21
21
  import { AppRoutingModule } from '../../app/app-routing.module';
22
22
  import { AppComponent } from '../../app/app.component';
23
23
 
24
- import { TOKEN, reducerProvider, metaReducers, runtimeChecks } from './core/reducers/index';
24
+ // import { TOKEN, reducerProvider, metaReducers, runtimeChecks } from './core/reducers/index';
25
25
 
26
26
  // APP ROOT MODULE
27
27
  @NgModule({
@@ -29,9 +29,8 @@ import { TOKEN, reducerProvider, metaReducers, runtimeChecks } from './core/redu
29
29
  BrowserModule,
30
30
  BrowserAnimationsModule,
31
31
  HttpClientModule,
32
- StoreModule.forRoot(TOKEN, { metaReducers, runtimeChecks }),
33
- StoreDevtoolsModule.instrument({ name: 'CSDR App', maxAge: 150, logOnly: environment.production }),
34
- EffectsModule.forRoot([...CoreModuleEffects]),
32
+ // StoreModule.forRoot(TOKEN, { metaReducers, runtimeChecks }),
33
+ StoreModule.forRoot(),
35
34
  TranslateModule.forRoot(translateConfig),
36
35
  CoreModule.forRoot(),
37
36
  AppRoutingModule,
@@ -42,7 +41,7 @@ import { TOKEN, reducerProvider, metaReducers, runtimeChecks } from './core/redu
42
41
  ],
43
42
  providers: [
44
43
  { provide: EUI_CONFIG_TOKEN, useValue: { appConfig: appConfig, environment: environment } },
45
- reducerProvider,
44
+ // reducerProvider,
46
45
  ],
47
46
  bootstrap: [
48
47
  AppComponent,
@@ -1,49 +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
- };
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
+ // };
@@ -52,6 +52,9 @@ module.exports.injectCsdrFullSkeletonSources = (project, euiVersion) => {
52
52
  tools.logInfo(`Injecting CSDR full skeleton sources for : ${project.name} - eUI version : ${euiVersion}`);
53
53
 
54
54
  return Promise.resolve()
55
+ .then(() => {
56
+ tools.rimraf(path.join(project.folder, 'src', '_generated'));
57
+ })
55
58
  .then(() => {
56
59
  // copying skeleton sources
57
60
  if (euiVersion === '13.x') {