@cabloy/module-glob 5.0.4 → 5.0.5

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/dist/index.d.ts CHANGED
@@ -5,10 +5,5 @@ export declare function glob(options: IModuleGlobOptions): Promise<{
5
5
  suites: Record<string, ISuite>;
6
6
  modules: Record<string, IModule>;
7
7
  modulesArray: IModule[];
8
- modulesLocal: Record<string, IModule>;
9
- modulesGlobal: Record<string, IModule>;
10
- modulesMonkey: Record<string, IModule>;
11
- suitesLocal: Record<string, ISuite>;
12
- suitesVendor: Record<string, ISuite>;
13
8
  }>;
14
9
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -48,6 +48,8 @@ async function glob(options) {
48
48
  modulesLocal: {},
49
49
  modulesGlobal: {},
50
50
  modulesMonkey: {},
51
+ modulesSync: {},
52
+ modulesIcon: {},
51
53
  //
52
54
  suitesLocal: {},
53
55
  suitesVendor: {},
@@ -75,6 +77,10 @@ async function glob(options) {
75
77
  __orderModules(context, modules);
76
78
  }
77
79
  else {
80
+ for (const moduleName in modules) {
81
+ const module = modules[moduleName];
82
+ context.modulesArray.push(module);
83
+ }
78
84
  context.modules = modules;
79
85
  }
80
86
  // log
@@ -86,12 +92,12 @@ async function glob(options) {
86
92
  modules: context.modules,
87
93
  modulesArray: context.modulesArray,
88
94
  //
89
- modulesLocal: context.modulesLocal,
90
- modulesGlobal: context.modulesGlobal,
91
- modulesMonkey: context.modulesMonkey,
95
+ // modulesLocal: context.modulesLocal,
96
+ // modulesGlobal: context.modulesGlobal,
97
+ // modulesMonkey: context.modulesMonkey,
92
98
  //
93
- suitesLocal: context.suitesLocal,
94
- suitesVendor: context.suitesVendor,
99
+ // suitesLocal: context.suitesLocal,
100
+ // suitesVendor: context.suitesVendor,
95
101
  };
96
102
  }
97
103
  exports.glob = glob;
@@ -228,6 +234,12 @@ function __logModules(context, log) {
228
234
  if (module.info.monkey) {
229
235
  context.modulesMonkey[relativeName] = module;
230
236
  }
237
+ if (module.info.sync) {
238
+ context.modulesSync[relativeName] = module;
239
+ }
240
+ if (module.info.icon) {
241
+ context.modulesIcon[relativeName] = module;
242
+ }
231
243
  if (module.info.public) {
232
244
  context.modulesGlobal[relativeName] = module;
233
245
  }
@@ -250,6 +262,14 @@ function __logModules(context, log) {
250
262
  for (const key in context.modulesMonkey) {
251
263
  console.log(chalk_1.default.cyan('> ' + key));
252
264
  }
265
+ console.log(chalk_1.default.yellow('\n=== Sync Modules ==='));
266
+ for (const key in context.modulesSync) {
267
+ console.log(chalk_1.default.cyan('> ' + key));
268
+ }
269
+ console.log(chalk_1.default.yellow('\n=== Icon Modules ==='));
270
+ for (const key in context.modulesIcon) {
271
+ console.log(chalk_1.default.cyan('> ' + key));
272
+ }
253
273
  console.log(chalk_1.default.keyword('orange')(`\n=== Total Modules: ${context.modulesArray.length} ===`));
254
274
  // console.log('\n');
255
275
  }
@@ -16,6 +16,8 @@ export interface IModuleGlobContext {
16
16
  modulesLocal: Record<string, IModule>;
17
17
  modulesGlobal: Record<string, IModule>;
18
18
  modulesMonkey: Record<string, IModule>;
19
+ modulesSync: Record<string, IModule>;
20
+ modulesIcon: Record<string, IModule>;
19
21
  suitesLocal: Record<string, ISuite>;
20
22
  suitesVendor: Record<string, ISuite>;
21
23
  disabledModules: Record<string, boolean>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cabloy/module-glob",
3
- "version": "5.0.4",
3
+ "version": "5.0.5",
4
4
  "description": "cabloy module-glob",
5
5
  "publishConfig": {
6
6
  "access": "public"