@stacksjs/config 0.46.4 → 0.47.2

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
@@ -1,4 +1,4 @@
1
- import { CliOptions, AppOptions, DebugOptions, DeployOptions, DocsConfig, GitOptions, HashingOptions, LibraryOptions, NotificationOptions, SearchEngineOptions, UiOptions } from '@stacksjs/types';
1
+ import { CliOptions, AppOptions, DebugOptions, DeployOptions, Events, DocsConfig, GitOptions, HashingOptions, LibraryOptions, NotificationOptions, SearchEngineOptions, UiOptions } from '@stacksjs/types';
2
2
 
3
3
  type Config = 'app' | 'cache' | 'database' | 'debug' | 'deploy' | 'docs' | 'git' | 'hashing' | 'library' | 'notification' | 'searchEngine' | 'services' | 'storage' | 'ui';
4
4
  declare function config(key?: Config, fallback?: any): any;
@@ -26,15 +26,13 @@ declare const app: AppOptions;
26
26
  * you have any questions, feel free to reach out via Discord or GitHub Discussions.
27
27
  */
28
28
  declare const cache: {
29
- default: any;
29
+ driver: any;
30
30
  redis: {
31
- driver: string;
32
31
  connection: string;
33
32
  host: any;
34
33
  port: any;
35
34
  };
36
35
  memcached: {
37
- driver: string;
38
36
  persistent_id: any;
39
37
  sasl: any[];
40
38
  options: {};
@@ -45,7 +43,6 @@ declare const cache: {
45
43
  }[];
46
44
  };
47
45
  dynamodb: {
48
- driver: string;
49
46
  key: any;
50
47
  secret: any;
51
48
  region: any;
@@ -83,9 +80,14 @@ declare const debug: DebugOptions;
83
80
  */
84
81
  declare const deploy: DeployOptions;
85
82
 
86
- declare const email: {
87
- purgeCSS: boolean;
88
- };
83
+ /**
84
+ * **Events**
85
+ *
86
+ * This configuration defines all of your events. Because Stacks is full-typed, you may
87
+ * hover any of the options below and the definitions will be provided. In case you
88
+ * have any questions, feel free to reach out via Discord or GitHub Discussions.
89
+ */
90
+ declare const events: Events;
89
91
 
90
92
  /**
91
93
  * **Documentation Options**
@@ -174,6 +176,9 @@ declare const services: {
174
176
  appId: string;
175
177
  apiKey: string;
176
178
  };
179
+ novu: {
180
+ key: any;
181
+ };
177
182
  };
178
183
 
179
184
  /**
@@ -196,4 +201,4 @@ declare const storage: {
196
201
  */
197
202
  declare const ui: UiOptions;
198
203
 
199
- export { app, cache, config, database, debug, deploy, determineDebugMode, docs, email, env, git, hashing, library, notification, searchEngine, services, storage, ui };
204
+ export { app, cache, config, database, debug, deploy, determineDebugMode, docs, env, events, git, hashing, library, notification, searchEngine, services, storage, ui };
package/dist/index.mjs CHANGED
@@ -12,7 +12,7 @@ const c = {
12
12
  get database () { return database; },
13
13
  get debug () { return debug; },
14
14
  get deploy () { return deploy; },
15
- get email () { return email; },
15
+ get events () { return events; },
16
16
  get git () { return git; },
17
17
  get hashing () { return hashing; },
18
18
  get library () { return library; },
@@ -48,37 +48,17 @@ const app = {
48
48
  locale: "en",
49
49
  fallbackLocale: "en",
50
50
  cipher: "aes-256-cbc",
51
- editor: "vscode",
52
- font: {
53
- email: {
54
- body: "Inter",
55
- title: "Roboto"
56
- },
57
- desktop: {
58
- body: "Inter",
59
- title: "Roboto"
60
- },
61
- mobile: {
62
- body: "Inter",
63
- title: "Roboto"
64
- },
65
- web: {
66
- body: "Inter",
67
- title: "Roboto"
68
- }
69
- }
51
+ editor: "vscode"
70
52
  };
71
53
 
72
54
  const cache = {
73
- default: env$1("CACHE_DRIVER", "redis"),
55
+ driver: env$1("CACHE_DRIVER", "redis"),
74
56
  redis: {
75
- driver: "redis",
76
57
  connection: "cache",
77
58
  host: env$1("REDIS_HOST", "127.0.0.1"),
78
59
  port: env$1("REDIS_PORT", "6379")
79
60
  },
80
61
  memcached: {
81
- driver: "memcached",
82
62
  persistent_id: env$1("MEMCACHED_PERSISTENT_ID", ""),
83
63
  sasl: [
84
64
  env$1("MEMCACHED_USERNAME", ""),
@@ -92,7 +72,6 @@ const cache = {
92
72
  }]
93
73
  },
94
74
  dynamodb: {
95
- driver: "dynamodb",
96
75
  key: env$1("AWS_ACCESS_KEY_ID", ""),
97
76
  secret: env$1("AWS_SECRET_ACCESS_KEY", ""),
98
77
  region: env$1("AWS_DEFAULT_REGION", "us-east-1"),
@@ -106,19 +85,16 @@ const database = {
106
85
  };
107
86
 
108
87
  const debug = {
109
- driver: "ray",
110
88
  enabled: true,
111
89
  host: "localhost",
112
90
  port: 23517
113
91
  };
114
92
 
115
93
  const deploy = {
116
- host: "netlify"
94
+ driver: "netlify"
117
95
  };
118
96
 
119
- const email = {
120
- purgeCSS: false
121
- };
97
+ const events = {};
122
98
 
123
99
  const services = {
124
100
  algolia: {
@@ -146,6 +122,9 @@ const services = {
146
122
  aws: {
147
123
  appId: "",
148
124
  apiKey: ""
125
+ },
126
+ novu: {
127
+ key: env$1("NOVU_API_KEY", "test-key")
149
128
  }
150
129
  };
151
130
 
@@ -366,10 +345,8 @@ const library = {
366
345
 
367
346
  const notification = {
368
347
  driver: env$1("NOTIFICATION_DRIVER", "sendgrid"),
369
- novu: {
370
- key: env$1("NOVU_API_KEY", "test-key")
371
- },
372
348
  email: {
349
+ purgeCSS: false,
373
350
  sendgrid: {
374
351
  key: env$1("SENDGRID_API_KEY", "test-value"),
375
352
  from: env$1("SENDGRID_FROM", "test-value"),
@@ -492,9 +469,23 @@ const ui = {
492
469
  reset: "tailwind",
493
470
  icons: ["heroicon-outline", "heroicon-solid"],
494
471
  fonts: {
495
- title: "Mona",
496
- text: "Hubot"
472
+ email: {
473
+ title: "Mona",
474
+ text: "Hubot"
475
+ },
476
+ desktop: {
477
+ title: "Mona",
478
+ text: "Hubot"
479
+ },
480
+ mobile: {
481
+ title: "Mona",
482
+ text: "Hubot"
483
+ },
484
+ web: {
485
+ title: "Mona",
486
+ text: "Hubot"
487
+ }
497
488
  }
498
489
  };
499
490
 
500
- export { app, cache, config, database, debug, deploy, determineDebugMode, docs$1 as docs, email, env, git, hashing, library, notification, searchEngine, services, storage, ui };
491
+ export { app, cache, config, database, debug, deploy, determineDebugMode, docs$1 as docs, env, events, git, hashing, library, notification, searchEngine, services, storage, ui };
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/config",
3
3
  "type": "module",
4
- "version": "0.46.4",
5
- "packageManager": "pnpm@7.19.0",
4
+ "version": "0.47.2",
5
+ "packageManager": "pnpm@7.21.0",
6
6
  "description": "The Stacks configuration.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -32,17 +32,17 @@
32
32
  ],
33
33
  "engines": {
34
34
  "node": ">=v18.12.1",
35
- "pnpm": ">=7.19.0"
35
+ "pnpm": ">=7.21.0"
36
36
  },
37
37
  "peerDependencies": {
38
- "@stacksjs/path": "0.46.4",
39
- "@stacksjs/utils": "0.46.4"
38
+ "@stacksjs/path": "0.47.2",
39
+ "@stacksjs/utils": "0.47.2"
40
40
  },
41
41
  "devDependencies": {
42
42
  "mkdist": "^1.0.0",
43
43
  "typescript": "^4.9.4",
44
44
  "unbuild": "^1.0.2",
45
- "@stacksjs/testing": "0.46.4"
45
+ "@stacksjs/testing": "0.47.2"
46
46
  },
47
47
  "scripts": {
48
48
  "build": "unbuild",