@stacksjs/config 0.43.1 → 0.44.7
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/README.md +4 -10
- package/dist/index.d.ts +6 -1
- package/dist/index.mjs +30 -6
- package/package.json +8 -7
package/README.md
CHANGED
|
@@ -1,29 +1,23 @@
|
|
|
1
1
|
# Stacks Config
|
|
2
2
|
|
|
3
|
-
This package
|
|
3
|
+
This package simplifies accessing your Stacks configuration.
|
|
4
4
|
|
|
5
5
|
## ☘️ Features
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
- ⚡️
|
|
10
|
-
|
|
11
|
-
wip
|
|
7
|
+
- ⚡️ API to access your Stacks config
|
|
12
8
|
|
|
13
9
|
## 🤖 Usage
|
|
14
10
|
|
|
15
|
-
wip
|
|
16
|
-
|
|
17
11
|
```bash
|
|
18
12
|
pnpm i -D @stacksjs/config
|
|
19
13
|
```
|
|
20
14
|
|
|
21
15
|
Now, you can use it in your project:
|
|
22
16
|
|
|
23
|
-
```
|
|
17
|
+
```ts
|
|
24
18
|
import { app, deploy, docs, git, hashing, library, services, ui } from '@stacksjs/config'
|
|
25
19
|
|
|
26
|
-
console.log(app)
|
|
20
|
+
console.log(app) // { name: 'Your App Name', env: 'local', url: 'https://localhost', ... }
|
|
27
21
|
```
|
|
28
22
|
|
|
29
23
|
Learn more in the docs.
|
package/dist/index.d.ts
CHANGED
|
@@ -83,6 +83,10 @@ declare const debug: DebugOptions;
|
|
|
83
83
|
*/
|
|
84
84
|
declare const deploy: DeployOptions;
|
|
85
85
|
|
|
86
|
+
declare const email: {
|
|
87
|
+
purgeCSS: boolean;
|
|
88
|
+
};
|
|
89
|
+
|
|
86
90
|
/**
|
|
87
91
|
* **Documentation Options**
|
|
88
92
|
*
|
|
@@ -183,6 +187,7 @@ declare const notification: {
|
|
|
183
187
|
sid: any;
|
|
184
188
|
authToken: any;
|
|
185
189
|
from: any;
|
|
190
|
+
to: any;
|
|
186
191
|
};
|
|
187
192
|
nexmo: {
|
|
188
193
|
key: any;
|
|
@@ -292,4 +297,4 @@ declare const storage: {
|
|
|
292
297
|
*/
|
|
293
298
|
declare const ui: UiOptions;
|
|
294
299
|
|
|
295
|
-
export { app, cache, config, database, debug, deploy, determineDebugMode, docs, env, git, hashing, library, notification, searchEngine, services, storage, ui };
|
|
300
|
+
export { app, cache, config, database, debug, deploy, determineDebugMode, docs, email, env, git, hashing, library, notification, searchEngine, services, storage, ui };
|
package/dist/index.mjs
CHANGED
|
@@ -12,6 +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
16
|
get git () { return git; },
|
|
16
17
|
get hashing () { return hashing; },
|
|
17
18
|
get library () { return library; },
|
|
@@ -47,7 +48,25 @@ const app = {
|
|
|
47
48
|
locale: "en",
|
|
48
49
|
fallbackLocale: "en",
|
|
49
50
|
cipher: "aes-256-cbc",
|
|
50
|
-
editor: "vscode"
|
|
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
70
|
};
|
|
52
71
|
|
|
53
72
|
const cache = {
|
|
@@ -97,6 +116,10 @@ const deploy = {
|
|
|
97
116
|
host: "netlify"
|
|
98
117
|
};
|
|
99
118
|
|
|
119
|
+
const email = {
|
|
120
|
+
purgeCSS: false
|
|
121
|
+
};
|
|
122
|
+
|
|
100
123
|
const services = {
|
|
101
124
|
algolia: {
|
|
102
125
|
appId: "",
|
|
@@ -262,8 +285,8 @@ const git = {
|
|
|
262
285
|
subject: "Write a SHORT, IMPERATIVE tense description of the change:\n",
|
|
263
286
|
body: 'Provide a LONGER description of the change (optional). Use "|" to break new line:\n',
|
|
264
287
|
breaking: 'List any BREAKING CHANGES (optional). Use "|" to break new line:\n',
|
|
265
|
-
|
|
266
|
-
|
|
288
|
+
footerPrefixesSelect: "Select the ISSUES type of the change list by this change (optional):",
|
|
289
|
+
customFooterPrefixes: "Input ISSUES prefix:",
|
|
267
290
|
footer: "List any ISSUES by this change. E.g.: #31, #34:\n",
|
|
268
291
|
confirmCommit: "Are you sure you want to proceed with the commit above?"
|
|
269
292
|
},
|
|
@@ -396,9 +419,10 @@ const notification = {
|
|
|
396
419
|
},
|
|
397
420
|
sms: {
|
|
398
421
|
twilio: {
|
|
399
|
-
sid: env$1("TWILIO_ACCOUNT_SID", "
|
|
422
|
+
sid: env$1("TWILIO_ACCOUNT_SID", "ACTEST"),
|
|
400
423
|
authToken: env$1("TWILIO_AUTH_TOKEN", "test-value"),
|
|
401
|
-
from: env$1("TWILIO_FROM_NUMBER", "test-value")
|
|
424
|
+
from: env$1("TWILIO_FROM_NUMBER", "test-value"),
|
|
425
|
+
to: env$1("TWILIO_TO_NUMBER", "test-value")
|
|
402
426
|
},
|
|
403
427
|
nexmo: {
|
|
404
428
|
key: env$1("VONAGE_API_KEY", "test-value"),
|
|
@@ -470,4 +494,4 @@ const ui = {
|
|
|
470
494
|
}
|
|
471
495
|
};
|
|
472
496
|
|
|
473
|
-
export { app, cache, config, database, debug, deploy, determineDebugMode, docs$1 as docs, env, git, hashing, library, notification, searchEngine, services, storage, ui };
|
|
497
|
+
export { app, cache, config, database, debug, deploy, determineDebugMode, docs$1 as docs, email, env, 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.
|
|
5
|
-
"packageManager": "pnpm@7.
|
|
4
|
+
"version": "0.44.7",
|
|
5
|
+
"packageManager": "pnpm@7.18.2",
|
|
6
6
|
"description": "The Stacks configuration.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
8
8
|
"license": "MIT",
|
|
@@ -32,16 +32,17 @@
|
|
|
32
32
|
],
|
|
33
33
|
"engines": {
|
|
34
34
|
"node": ">=v18.12.1",
|
|
35
|
-
"pnpm": ">=7.
|
|
35
|
+
"pnpm": ">=7.18.2"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
|
-
"@stacksjs/
|
|
38
|
+
"@stacksjs/path": "0.44.7",
|
|
39
|
+
"@stacksjs/utils": "0.44.7"
|
|
39
40
|
},
|
|
40
41
|
"devDependencies": {
|
|
41
42
|
"mkdist": "^1.0.0",
|
|
42
|
-
"typescript": "^4.9.
|
|
43
|
-
"unbuild": "^1.0.
|
|
44
|
-
"@stacksjs/testing": "0.
|
|
43
|
+
"typescript": "^4.9.4",
|
|
44
|
+
"unbuild": "^1.0.2",
|
|
45
|
+
"@stacksjs/testing": "0.44.7"
|
|
45
46
|
},
|
|
46
47
|
"scripts": {
|
|
47
48
|
"build": "unbuild",
|