@eui/tools 6.16.4 → 6.16.6
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/.version.properties +1 -1
- package/CHANGELOG.md +18 -0
- package/package.json +1 -1
- package/scripts/csdr/init/resources/18.x/resolutions.json +0 -5
- package/scripts/csdr/init/resources/18.x/yarn.lock +4729 -3614
- package/scripts/csdr/init/resources/18.x/yarn.lock.old +13395 -0
- package/scripts/csdr/install/remotes.js +15 -3
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui18/src/_generated/app/app.module.ts +7 -8
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui18/src/_generated/app/core/reducers/index.ts +49 -49
- package/scripts/utils/pre-build/injection/skeletons.js +3 -0
|
@@ -77,6 +77,21 @@ const pkgInstall = (pkg, envTarget) => {
|
|
|
77
77
|
// merging base+composite
|
|
78
78
|
deps = { ...baseDeps, ...compositeDeps };
|
|
79
79
|
|
|
80
|
+
|
|
81
|
+
// parse eUI deps and explode the sub-packages (v17 issues)
|
|
82
|
+
// getting package eUI version
|
|
83
|
+
const euiVersion = configUtils.packages.getPackageEuiVersion(pkg);
|
|
84
|
+
|
|
85
|
+
// add sub-eUI packages for v17
|
|
86
|
+
if (euiVersion === '17.x') {
|
|
87
|
+
Object.keys(deps).forEach((dep) => {
|
|
88
|
+
if (dep === '@eui/deps-base') {
|
|
89
|
+
deps['@eui/components'] = deps[dep];
|
|
90
|
+
deps['@eui/showcase'] = deps[dep];
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
|
|
80
95
|
// updating package json file before installation
|
|
81
96
|
const pkgJsonFile = path.resolve(pkg.paths.root, 'package.json');
|
|
82
97
|
const pkgJson = require(pkgJsonFile);
|
|
@@ -86,9 +101,6 @@ const pkgInstall = (pkg, envTarget) => {
|
|
|
86
101
|
// store dependencies metadata for later fetch of remote deps installed for a particular version published
|
|
87
102
|
pkgJson.remoteDependencies = deps;
|
|
88
103
|
|
|
89
|
-
// getting package eUI version
|
|
90
|
-
const euiVersion = configUtils.packages.getPackageEuiVersion(pkg);
|
|
91
|
-
|
|
92
104
|
// checking for resolution updates according to eUI version used
|
|
93
105
|
initUtils.global.initRemoteFilesAndResolutions(pkg.paths.root, euiVersion);
|
|
94
106
|
|
|
@@ -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,
|
|
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
|
-
|
|
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
|
-
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
// -----------------
|
|
12
|
-
// ------------ AOT
|
|
13
|
-
export const TOKEN = new InjectionToken<any>('AppReducers');
|
|
14
|
-
|
|
15
|
-
export function getReducers(): ActionReducerMap<AppState, any> {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export const reducerProvider = [
|
|
23
|
-
|
|
24
|
-
];
|
|
25
|
-
|
|
26
|
-
// console.log all actions
|
|
27
|
-
export function logger(reducer: ActionReducer<AppState>): ActionReducer<AppState> {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export const metaReducers: MetaReducer<AppState>[] = [logger, localStorageSync, storeFreeze];
|
|
41
|
-
|
|
42
|
-
export const runtimeChecks: RuntimeChecks = {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
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') {
|