@sprucelabs/spruce-templates 14.28.2 → 14.28.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/build/index.d.ts CHANGED
@@ -92,6 +92,9 @@ export declare const templates: {
92
92
  storeTypes(options: {
93
93
  stores: StoreTemplateItem[];
94
94
  }): string;
95
+ stores(options: {
96
+ stores: StoreTemplateItem[];
97
+ }): string;
95
98
  skillViewController(options: {
96
99
  namePascal: string;
97
100
  nameKebab: string;
package/build/index.js CHANGED
@@ -210,6 +210,10 @@ exports.templates = {
210
210
  const template = templateImporter_utility_1.default.getTemplate('store/stores.types.ts.hbs');
211
211
  return template(options);
212
212
  },
213
+ stores(options) {
214
+ const template = templateImporter_utility_1.default.getTemplate('store/stores.ts.hbs');
215
+ return template(options);
216
+ },
213
217
  skillViewController(options) {
214
218
  const template = templateImporter_utility_1.default.getTemplate('view/View.svc.ts.hbs');
215
219
  return template(options);
@@ -25,7 +25,9 @@ class SchemaFeature implements SkillFeature {
25
25
  }
26
26
 
27
27
  public execute = async () => {
28
- await this.loadSchemas();
28
+ if (process.env.SHOULD_VALIDATE_SCHEMAS_ON_BOOT !== 'false') {
29
+ await this.loadSchemas();
30
+ }
29
31
  this._isBooted = true
30
32
  this.bootHandler?.()
31
33
  };
@@ -0,0 +1,5 @@
1
+ export default {
2
+ {{#each stores}}
3
+ {{nameCamelPlural}}: {{namePascalPlural}}Store
4
+ {{/each}}
5
+ }
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "14.28.2",
6
+ "version": "14.28.6",
7
7
  "files": [
8
8
  "build/**/*",
9
9
  "tsconfig.json",
@@ -56,9 +56,9 @@
56
56
  "watch.tsc": "tsc -w"
57
57
  },
58
58
  "dependencies": {
59
- "@sprucelabs/mercury-types": "^26.1.950",
60
- "@sprucelabs/schema": "^25.4.47",
61
- "@sprucelabs/spruce-skill-utils": "^22.1.27",
59
+ "@sprucelabs/mercury-types": "^26.1.973",
60
+ "@sprucelabs/schema": "^25.4.58",
61
+ "@sprucelabs/spruce-skill-utils": "^22.1.40",
62
62
  "globby": "^11.0.4",
63
63
  "handlebars": "^4.7.7",
64
64
  "lodash": "^4.17.21",
@@ -78,5 +78,5 @@
78
78
  "globby"
79
79
  ]
80
80
  },
81
- "gitHead": "ce0a3224b4c90a432d6533fa976498e1881ac8fc"
81
+ "gitHead": "3f4f8dba43a7588da686e8253b4a90b487debe28"
82
82
  }