@sprucelabs/spruce-test-fixtures 62.4.31 → 62.4.32

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
- import { ViewController, SkillViewController, ViewControllerMap, SpruceSchemas, ViewControllerPluginsByName } from '@sprucelabs/heartwood-view-controllers';
1
+ import { ViewController, SkillViewController, ViewControllerMap, SpruceSchemas, ViewControllerPluginsByName, AppControllerConstructor } from '@sprucelabs/heartwood-view-controllers';
2
2
  import { HealthCheckView } from '../types/view.types';
3
3
  declare const vcDiskUtil: {
4
4
  loadViewControllers(activeDir: string, options?: {
@@ -12,11 +12,13 @@ declare const vcDiskUtil: {
12
12
  } & HealthCheckView)[];
13
13
  ids: string[];
14
14
  theme: SpruceSchemas.HeartwoodViewControllers.v2021_02_11.Theme | undefined;
15
+ App: AppControllerConstructor | undefined;
15
16
  pluginsByName: ViewControllerPluginsByName;
16
17
  };
17
18
  loadViewControllersAndBuildMap(namespace: string, vcDir: string): {
18
19
  map: Partial<ViewControllerMap>;
19
20
  pluginsByName: ViewControllerPluginsByName;
21
+ App: AppControllerConstructor | undefined;
20
22
  };
21
23
  resolveCombinedViewsPath(activeDir: string): string | false;
22
24
  resolveThemeFile(activeDir: string): string | false;
@@ -10,7 +10,7 @@ const vcDiskUtil = {
10
10
  if (!path) {
11
11
  throw new Error(`Could not find path to skill views. Running \`spruce sync.views\` may help.`);
12
12
  }
13
- const { default: controllerMap, pluginsByName } = require(path);
13
+ const { default: controllerMap, pluginsByName, App } = require(path);
14
14
  const controllers = Object.values(controllerMap);
15
15
  const vcs = [];
16
16
  const svcs = [];
@@ -75,11 +75,12 @@ const vcDiskUtil = {
75
75
  vcs,
76
76
  ids,
77
77
  theme,
78
+ App: App,
78
79
  pluginsByName: pluginsByName,
79
80
  };
80
81
  },
81
82
  loadViewControllersAndBuildMap(namespace, vcDir) {
82
- const { vcs, svcs, pluginsByName } = this.loadViewControllers(vcDir);
83
+ const { vcs, svcs, pluginsByName, App } = this.loadViewControllers(vcDir);
83
84
  const map = {};
84
85
  const all = [...vcs, ...svcs];
85
86
  for (const item of all) {
@@ -91,6 +92,7 @@ const vcDiskUtil = {
91
92
  return {
92
93
  map,
93
94
  pluginsByName,
95
+ App,
94
96
  };
95
97
  },
96
98
  resolveCombinedViewsPath(activeDir) {
@@ -1,4 +1,4 @@
1
- import { ViewController, SkillViewController, ViewControllerMap, SpruceSchemas, ViewControllerPluginsByName } from '@sprucelabs/heartwood-view-controllers';
1
+ import { ViewController, SkillViewController, ViewControllerMap, SpruceSchemas, ViewControllerPluginsByName, AppControllerConstructor } from '@sprucelabs/heartwood-view-controllers';
2
2
  import { HealthCheckView } from '../types/view.types';
3
3
  declare const vcDiskUtil: {
4
4
  loadViewControllers(activeDir: string, options?: {
@@ -12,11 +12,13 @@ declare const vcDiskUtil: {
12
12
  } & HealthCheckView)[];
13
13
  ids: string[];
14
14
  theme: SpruceSchemas.HeartwoodViewControllers.v2021_02_11.Theme | undefined;
15
+ App: AppControllerConstructor | undefined;
15
16
  pluginsByName: ViewControllerPluginsByName;
16
17
  };
17
18
  loadViewControllersAndBuildMap(namespace: string, vcDir: string): {
18
19
  map: Partial<ViewControllerMap>;
19
20
  pluginsByName: ViewControllerPluginsByName;
21
+ App: AppControllerConstructor | undefined;
20
22
  };
21
23
  resolveCombinedViewsPath(activeDir: string): string | false;
22
24
  resolveThemeFile(activeDir: string): string | false;
@@ -14,7 +14,7 @@ const vcDiskUtil = {
14
14
  if (!path) {
15
15
  throw new Error(`Could not find path to skill views. Running \`spruce sync.views\` may help.`);
16
16
  }
17
- const { default: controllerMap, pluginsByName } = require(path);
17
+ const { default: controllerMap, pluginsByName, App } = require(path);
18
18
  const controllers = Object.values(controllerMap);
19
19
  const vcs = [];
20
20
  const svcs = [];
@@ -79,11 +79,12 @@ const vcDiskUtil = {
79
79
  vcs,
80
80
  ids,
81
81
  theme,
82
+ App: App,
82
83
  pluginsByName: pluginsByName,
83
84
  };
84
85
  },
85
86
  loadViewControllersAndBuildMap(namespace, vcDir) {
86
- const { vcs, svcs, pluginsByName } = this.loadViewControllers(vcDir);
87
+ const { vcs, svcs, pluginsByName, App } = this.loadViewControllers(vcDir);
87
88
  const map = {};
88
89
  const all = [...vcs, ...svcs];
89
90
  for (const item of all) {
@@ -95,6 +96,7 @@ const vcDiskUtil = {
95
96
  return {
96
97
  map,
97
98
  pluginsByName,
99
+ App,
98
100
  };
99
101
  },
100
102
  resolveCombinedViewsPath(activeDir) {
package/package.json CHANGED
@@ -13,7 +13,7 @@
13
13
  "@sprucelabs/spruce-test-fixtures"
14
14
  ]
15
15
  },
16
- "version": "62.4.31",
16
+ "version": "62.4.32",
17
17
  "files": [
18
18
  "build/**/*",
19
19
  "!build/__tests__",
@@ -71,7 +71,7 @@
71
71
  "@sprucelabs/spruce-core-schemas": "^40.1.550",
72
72
  "@sprucelabs/spruce-event-utils": "^40.1.326",
73
73
  "@sprucelabs/spruce-permission-utils": "^8.1.29",
74
- "@sprucelabs/spruce-skill-booter": "^62.4.31",
74
+ "@sprucelabs/spruce-skill-booter": "^62.4.32",
75
75
  "@sprucelabs/spruce-skill-utils": "^31.0.627",
76
76
  "@sprucelabs/test-utils": "^5.1.504",
77
77
  "dotenv": "^16.4.5",
@@ -114,5 +114,5 @@
114
114
  "^#spruce/(.*)$": "<rootDir>/build/.spruce/$1"
115
115
  }
116
116
  },
117
- "gitHead": "46ab3b5cfdf4a4c4454a4d00e30db3395ee0b7ba"
117
+ "gitHead": "42e872e4fc0cd120df8eb5b0d4eed90124fa9523"
118
118
  }
package/tsconfig.json CHANGED
@@ -33,7 +33,7 @@
33
33
  "./src/.spruce/**/*",
34
34
  "./src/__tests__/**/.spruce/**/*.ts",
35
35
  "./src/__tests__/**/build/**/*.ts"
36
- ],
36
+ , "src/__tests__/testDirsAndFiles/app1/build/App.ac.ts" ],
37
37
  "exclude": [
38
38
  "build",
39
39
  "esm"