@stacksjs/config 0.38.3
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/LICENSE.md +21 -0
- package/README.md +59 -0
- package/dist/chunks/icons.mjs +1325 -0
- package/dist/chunks/icons2.mjs +1342 -0
- package/dist/index.d.ts +124 -0
- package/dist/index.mjs +298 -0
- package/package.json +50 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { CliOptions, AppOptions, DeployOptions, DocsConfig, GitOptions, HashingOptions, LibraryOptions, UiOptions } from '@stacksjs/types';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Determines the level of debugging.
|
|
5
|
+
* @param options
|
|
6
|
+
*/
|
|
7
|
+
declare function determineDebugMode(options?: CliOptions): boolean;
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* ### Application Options
|
|
11
|
+
*
|
|
12
|
+
* This configuration defines all of your application options. Because Stacks is full-typed,
|
|
13
|
+
* you may hover any of the options below and the definitions will be provided. In case
|
|
14
|
+
* you have any questions, feel free to reach out via Discord or GitHub Discussions.
|
|
15
|
+
*/
|
|
16
|
+
declare const app: AppOptions;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* ### Deployment Options
|
|
20
|
+
*
|
|
21
|
+
* This configuration defines all of your deploy options. Because Stacks is full-typed,
|
|
22
|
+
* you may hover any of the options below and the definitions will be provided. In case
|
|
23
|
+
* you have any questions, feel free to reach out via Discord or GitHub Discussions.
|
|
24
|
+
*/
|
|
25
|
+
declare const deploy: DeployOptions;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* ### Documentation Options
|
|
29
|
+
*
|
|
30
|
+
* This configuration defines all of your documentation options. Because Stacks is full-typed,
|
|
31
|
+
* you may hover any of the options below and the definitions will be provided. In case
|
|
32
|
+
* you have any questions, feel free to reach out via Discord or GitHub Discussions.
|
|
33
|
+
*/
|
|
34
|
+
declare const _default: DocsConfig;
|
|
35
|
+
|
|
36
|
+
declare namespace docs {
|
|
37
|
+
export {
|
|
38
|
+
_default as default,
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* ### Git Options
|
|
44
|
+
*
|
|
45
|
+
* This configuration defines all of your git options. Because Stacks is full-typed, you may
|
|
46
|
+
* hover any of the options below and the definitions will be provided. In case you
|
|
47
|
+
* have any questions, feel free to reach out via Discord or GitHub Discussions.
|
|
48
|
+
*/
|
|
49
|
+
declare const git: GitOptions;
|
|
50
|
+
|
|
51
|
+
declare const hashing: HashingOptions;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* ### Library Options
|
|
55
|
+
*
|
|
56
|
+
* This configuration defines all of your library options. Because Stacks is full-typed, you
|
|
57
|
+
* may hover any of the options below and the definitions will be provided. In case you
|
|
58
|
+
* have any questions, feel free to reach out via Discord or GitHub Discussions.
|
|
59
|
+
*/
|
|
60
|
+
declare const library: LibraryOptions;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* ### Services
|
|
64
|
+
*
|
|
65
|
+
* This configuration defines all of your services. Because Stacks is full-typed, you may
|
|
66
|
+
* hover any of the options below and the definitions will be provided. In case you
|
|
67
|
+
* have any questions, feel free to reach out via Discord or GitHub Discussions.
|
|
68
|
+
*/
|
|
69
|
+
declare const services: {
|
|
70
|
+
algolia: {
|
|
71
|
+
appId: string;
|
|
72
|
+
apiKey: string;
|
|
73
|
+
indexName: string;
|
|
74
|
+
};
|
|
75
|
+
meilisearch: {
|
|
76
|
+
appId: string;
|
|
77
|
+
apiKey: string;
|
|
78
|
+
indexName: string;
|
|
79
|
+
};
|
|
80
|
+
stripe: {
|
|
81
|
+
appId: string;
|
|
82
|
+
apiKey: string;
|
|
83
|
+
};
|
|
84
|
+
planetscale: {
|
|
85
|
+
appId: string;
|
|
86
|
+
apiKey: string;
|
|
87
|
+
};
|
|
88
|
+
supabase: {
|
|
89
|
+
appId: string;
|
|
90
|
+
apiKey: string;
|
|
91
|
+
};
|
|
92
|
+
aws: {
|
|
93
|
+
appId: string;
|
|
94
|
+
apiKey: string;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* ### UI Engine Options
|
|
100
|
+
*
|
|
101
|
+
* This configuration defines all of your UI Engine options. Because Stacks is full-typed, you
|
|
102
|
+
* may hover any of the options below and the definitions will be provided. In case you
|
|
103
|
+
* have any questions, feel free to reach out via Discord or GitHub Discussions.
|
|
104
|
+
*/
|
|
105
|
+
declare const ui: UiOptions;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* ### Cache Options
|
|
109
|
+
*
|
|
110
|
+
* This configuration defines all of your cache options. Because Stacks is full-typed,
|
|
111
|
+
* you may hover any of the options below and the definitions will be provided. In case
|
|
112
|
+
* you have any questions, feel free to reach out via Discord or GitHub Discussions.
|
|
113
|
+
*/
|
|
114
|
+
declare const cache: {
|
|
115
|
+
default: any;
|
|
116
|
+
redis: {
|
|
117
|
+
driver: string;
|
|
118
|
+
connection: string;
|
|
119
|
+
host: any;
|
|
120
|
+
port: any;
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
export { app, cache, deploy, determineDebugMode, docs, git, hashing, library, services, ui };
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
import { env } from '@stacksjs/utils';
|
|
2
|
+
import { frameworkPath } from '@stacksjs/path';
|
|
3
|
+
|
|
4
|
+
function determineDebugMode(options) {
|
|
5
|
+
if (options?.debug === true)
|
|
6
|
+
return true;
|
|
7
|
+
if (app.debug === true)
|
|
8
|
+
return true;
|
|
9
|
+
return false;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
const app = {
|
|
13
|
+
name: env("APP_NAME", "Stacks"),
|
|
14
|
+
env: env("APP_ENV", "local"),
|
|
15
|
+
key: env("APP_KEY", ""),
|
|
16
|
+
debug: env("APP_DEBUG", false),
|
|
17
|
+
url: env("APP_URL", "https://localhost"),
|
|
18
|
+
port: env("APP_PORT", 3333),
|
|
19
|
+
timezone: "UTC",
|
|
20
|
+
locale: "en",
|
|
21
|
+
fallbackLocale: "en",
|
|
22
|
+
cipher: "aes-256-cbc",
|
|
23
|
+
editor: "vscode"
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
const deploy = {
|
|
27
|
+
host: "netlify"
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
const services = {
|
|
31
|
+
algolia: {
|
|
32
|
+
appId: "",
|
|
33
|
+
apiKey: "",
|
|
34
|
+
indexName: ""
|
|
35
|
+
},
|
|
36
|
+
meilisearch: {
|
|
37
|
+
appId: "",
|
|
38
|
+
apiKey: "",
|
|
39
|
+
indexName: ""
|
|
40
|
+
},
|
|
41
|
+
stripe: {
|
|
42
|
+
appId: "",
|
|
43
|
+
apiKey: ""
|
|
44
|
+
},
|
|
45
|
+
planetscale: {
|
|
46
|
+
appId: "",
|
|
47
|
+
apiKey: ""
|
|
48
|
+
},
|
|
49
|
+
supabase: {
|
|
50
|
+
appId: "",
|
|
51
|
+
apiKey: ""
|
|
52
|
+
},
|
|
53
|
+
aws: {
|
|
54
|
+
appId: "",
|
|
55
|
+
apiKey: ""
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
const docs = {
|
|
60
|
+
outDir: frameworkPath("docs/dist"),
|
|
61
|
+
lang: "en-US",
|
|
62
|
+
title: "Stacks",
|
|
63
|
+
description: "Composability-First. UI/FX Framework.",
|
|
64
|
+
lastUpdated: true,
|
|
65
|
+
themeConfig: {
|
|
66
|
+
nav: nav(),
|
|
67
|
+
sidebar: {
|
|
68
|
+
"/guide/": sidebarGuide()
|
|
69
|
+
},
|
|
70
|
+
editLink: {
|
|
71
|
+
pattern: "https://github.com/stacksjs/stacks/edit/main/apps/docs/docs/:path",
|
|
72
|
+
text: "Edit this page on GitHub"
|
|
73
|
+
},
|
|
74
|
+
socialLinks: [
|
|
75
|
+
{ icon: "twitter", link: "https://twitter.com/stacksjs" },
|
|
76
|
+
{ icon: "github", link: "https://github.com/stacksjs/stacks" },
|
|
77
|
+
{ icon: "discord", link: "https://twitter.com/stacksjs" }
|
|
78
|
+
],
|
|
79
|
+
footer: {
|
|
80
|
+
message: "Released under the MIT License.",
|
|
81
|
+
copyright: "Copyright \xA9 2022-present Open Web Foundation"
|
|
82
|
+
},
|
|
83
|
+
algolia: services.algolia,
|
|
84
|
+
carbonAds: {
|
|
85
|
+
code: "",
|
|
86
|
+
placement: ""
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
function nav() {
|
|
91
|
+
return [
|
|
92
|
+
{ text: "Config", link: "/config", activeMatch: "/config" },
|
|
93
|
+
{
|
|
94
|
+
text: "Changelog",
|
|
95
|
+
link: "https://github.com/stacksjs/stacks/blob/main/CHANGELOG.md"
|
|
96
|
+
},
|
|
97
|
+
{ text: "Blog", link: "https://updates.ow3.org" }
|
|
98
|
+
];
|
|
99
|
+
}
|
|
100
|
+
function sidebarGuide() {
|
|
101
|
+
return [
|
|
102
|
+
{
|
|
103
|
+
text: "Introduction",
|
|
104
|
+
collapsible: true,
|
|
105
|
+
items: [
|
|
106
|
+
{ text: "What is Stacks?", link: "/guide/what-is-stacks" },
|
|
107
|
+
{ text: "Getting Started", link: "/guide/getting-started" },
|
|
108
|
+
{ text: "Configuration", link: "/guide/config" }
|
|
109
|
+
]
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
text: "Digging Deeper",
|
|
113
|
+
collapsible: true,
|
|
114
|
+
items: [
|
|
115
|
+
{ text: "How To?", link: "/guide/stacks" },
|
|
116
|
+
{ text: "Workflows / CI", link: "/guide/ci" },
|
|
117
|
+
{ text: "VS Code", link: "/guide/vs-code" },
|
|
118
|
+
{ text: "Apps", link: "/guide/apps" },
|
|
119
|
+
{ text: "Examples", link: "/guide/examples" },
|
|
120
|
+
{ text: "Packages", link: "/guide/packages" },
|
|
121
|
+
{ text: "Testing", link: "/guide/testing" },
|
|
122
|
+
{ text: "Single File Components", link: "/guide/sfcs" }
|
|
123
|
+
]
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
text: "Starters",
|
|
127
|
+
collapsible: true,
|
|
128
|
+
items: [
|
|
129
|
+
{ text: "Vue Starter", link: "/starter/vue" },
|
|
130
|
+
{ text: "Web Component Starter", link: "/starter/web-components" },
|
|
131
|
+
{ text: "Composable Starter", link: "/starter/web-components" },
|
|
132
|
+
{ text: "TypeScript Starter", link: "/starter/web-components" }
|
|
133
|
+
]
|
|
134
|
+
}
|
|
135
|
+
];
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
const docs$1 = {
|
|
139
|
+
__proto__: null,
|
|
140
|
+
default: docs
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
const git = {
|
|
144
|
+
hooks: {
|
|
145
|
+
"pre-commit": "lint-staged"
|
|
146
|
+
},
|
|
147
|
+
scopes: [
|
|
148
|
+
"",
|
|
149
|
+
"ci",
|
|
150
|
+
"deps",
|
|
151
|
+
"dx",
|
|
152
|
+
"release",
|
|
153
|
+
"docs",
|
|
154
|
+
"test",
|
|
155
|
+
"core",
|
|
156
|
+
"actions",
|
|
157
|
+
"arrays",
|
|
158
|
+
"auth",
|
|
159
|
+
"build",
|
|
160
|
+
"cache",
|
|
161
|
+
"cli",
|
|
162
|
+
"cloud",
|
|
163
|
+
"collections",
|
|
164
|
+
"config",
|
|
165
|
+
"database",
|
|
166
|
+
"datetime",
|
|
167
|
+
"docs",
|
|
168
|
+
"errors",
|
|
169
|
+
"git",
|
|
170
|
+
"lint",
|
|
171
|
+
"logging",
|
|
172
|
+
"modules",
|
|
173
|
+
"notifications",
|
|
174
|
+
"objects",
|
|
175
|
+
"path",
|
|
176
|
+
"realtime",
|
|
177
|
+
"router",
|
|
178
|
+
"runtime",
|
|
179
|
+
"security",
|
|
180
|
+
"server",
|
|
181
|
+
"storage",
|
|
182
|
+
"strings",
|
|
183
|
+
"tests",
|
|
184
|
+
"types",
|
|
185
|
+
"ui",
|
|
186
|
+
"utils"
|
|
187
|
+
],
|
|
188
|
+
messages: {
|
|
189
|
+
type: "Select the type of change that you're committing:",
|
|
190
|
+
scope: "Select the SCOPE of this change (optional):",
|
|
191
|
+
customScope: "Select the SCOPE of this change:",
|
|
192
|
+
subject: "Write a SHORT, IMPERATIVE tense description of the change:\n",
|
|
193
|
+
body: 'Provide a LONGER description of the change (optional). Use "|" to break new line:\n',
|
|
194
|
+
breaking: 'List any BREAKING CHANGES (optional). Use "|" to break new line:\n',
|
|
195
|
+
footerPrefixsSelect: "Select the ISSUES type of the change list by this change (optional):",
|
|
196
|
+
customFooterPrefixs: "Input ISSUES prefix:",
|
|
197
|
+
footer: "List any ISSUES by this change. E.g.: #31, #34:\n",
|
|
198
|
+
confirmCommit: "Are you sure you want to proceed with the commit above?"
|
|
199
|
+
},
|
|
200
|
+
types: [
|
|
201
|
+
{ value: "feat", name: "feat: \u2728 A new feature", emoji: ":sparkles:" },
|
|
202
|
+
{ value: "fix", name: "fix: \u{1F41B} A bug fix", emoji: ":bug:" },
|
|
203
|
+
{ value: "docs", name: "docs: \u{1F4DD} Documentation only changes", emoji: ":memo:" },
|
|
204
|
+
{ value: "style", name: "style: \u{1F484} Changes that do not affect the meaning of the code", emoji: ":lipstick:" },
|
|
205
|
+
{ value: "refactor", name: "refactor: \u267B\uFE0F A code change that neither fixes a bug nor adds a feature", emoji: ":recycle:" },
|
|
206
|
+
{ value: "perf", name: "perf: \u26A1\uFE0F A code change that improves performance", emoji: ":zap:" },
|
|
207
|
+
{ value: "test", name: "test: \u2705 Adding missing tests or adjusting existing tests", emoji: ":white_check_mark:" },
|
|
208
|
+
{ value: "build", name: "build: \u{1F4E6}\uFE0F Changes that affect the build system or external dependencies", emoji: ":package:" },
|
|
209
|
+
{ value: "ci", name: "ci: \u{1F3A1} Changes to our CI configuration files and scripts", emoji: ":ferris_wheel:" },
|
|
210
|
+
{ value: "chore", name: "chore: \u{1F528} Other changes that don't modify src or test files", emoji: ":hammer:" },
|
|
211
|
+
{ value: "revert", name: "revert: \u23EA\uFE0F Reverts a previous commit", emoji: ":rewind:" }
|
|
212
|
+
]
|
|
213
|
+
};
|
|
214
|
+
|
|
215
|
+
const hashing = {
|
|
216
|
+
driver: "bcrypt",
|
|
217
|
+
bcrypt: {
|
|
218
|
+
rounds: 10
|
|
219
|
+
},
|
|
220
|
+
argon: {
|
|
221
|
+
memory: 65536,
|
|
222
|
+
threads: 1,
|
|
223
|
+
time: 1
|
|
224
|
+
}
|
|
225
|
+
};
|
|
226
|
+
|
|
227
|
+
const library = {
|
|
228
|
+
name: "hello-world",
|
|
229
|
+
parentName: "@stacksjs",
|
|
230
|
+
repository: "stacksjs/stacks",
|
|
231
|
+
license: "MIT",
|
|
232
|
+
author: "Chris Breuer",
|
|
233
|
+
contributors: ["Chris Breuer <chris@ow3.org>"],
|
|
234
|
+
defaultLanguage: "en",
|
|
235
|
+
vueComponents: {
|
|
236
|
+
name: "hello-world-vue",
|
|
237
|
+
description: "Your Vue component library description",
|
|
238
|
+
keywords: ["component", "library", "vue", "vite", "typescript", "javascript"],
|
|
239
|
+
tags: [{
|
|
240
|
+
name: ["HelloWorld", "AppHelloWorld"],
|
|
241
|
+
description: "The Hello World custom element, built via this framework.",
|
|
242
|
+
attributes: [{
|
|
243
|
+
name: "greeting",
|
|
244
|
+
description: "The greeting."
|
|
245
|
+
}]
|
|
246
|
+
}]
|
|
247
|
+
},
|
|
248
|
+
webComponents: {
|
|
249
|
+
name: "hello-world-elements",
|
|
250
|
+
description: "Your framework agnostic web component library description.",
|
|
251
|
+
keywords: ["custom-elements", "web-components", "library", "framework-agnostic", "typescript", "javascript"],
|
|
252
|
+
tags: [{
|
|
253
|
+
name: ["HelloWorld", "AppHelloWorld"],
|
|
254
|
+
description: "The Hello World custom element, built via this framework.",
|
|
255
|
+
attributes: [{
|
|
256
|
+
name: "greeting",
|
|
257
|
+
description: "The greeting."
|
|
258
|
+
}]
|
|
259
|
+
}]
|
|
260
|
+
},
|
|
261
|
+
functions: {
|
|
262
|
+
name: "hello-world-fx",
|
|
263
|
+
description: "Your function library description.",
|
|
264
|
+
keywords: ["functions", "composables", "library", "typescript", "javascript"],
|
|
265
|
+
shouldBuildIife: false,
|
|
266
|
+
shouldGenerateSourcemap: false,
|
|
267
|
+
functions: [
|
|
268
|
+
"counter",
|
|
269
|
+
"dark"
|
|
270
|
+
]
|
|
271
|
+
}
|
|
272
|
+
};
|
|
273
|
+
|
|
274
|
+
const ui = {
|
|
275
|
+
shortcuts: [
|
|
276
|
+
["btn", "inline-flex items-center px-4 py-2 ml-2 border border-transparent shadow-sm text-base font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 cursor-pointer"]
|
|
277
|
+
],
|
|
278
|
+
safelist: "prose prose-sm m-auto text-left",
|
|
279
|
+
trigger: ":stx:",
|
|
280
|
+
classPrefix: "stx-",
|
|
281
|
+
reset: "tailwind",
|
|
282
|
+
icons: {
|
|
283
|
+
"heroicon-outline": () => import('./chunks/icons.mjs').then((i) => i.default),
|
|
284
|
+
"heroicon-solid": () => import('./chunks/icons2.mjs').then((i) => i.default)
|
|
285
|
+
}
|
|
286
|
+
};
|
|
287
|
+
|
|
288
|
+
const cache = {
|
|
289
|
+
default: env("CACHE_DRIVER", "redis"),
|
|
290
|
+
redis: {
|
|
291
|
+
driver: "redis",
|
|
292
|
+
connection: "cache",
|
|
293
|
+
host: env("REDIS_HOST", "127.0.0.1"),
|
|
294
|
+
port: env("REDIS_PORT", "6379")
|
|
295
|
+
}
|
|
296
|
+
};
|
|
297
|
+
|
|
298
|
+
export { app, cache, deploy, determineDebugMode, docs$1 as docs, git, hashing, library, services, ui };
|
package/package.json
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@stacksjs/config",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.38.3",
|
|
5
|
+
"packageManager": "pnpm@7.15.0",
|
|
6
|
+
"description": "The Stacks configuration.",
|
|
7
|
+
"author": "Chris Breuer",
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"funding": "https://github.com/sponsors/chrisbbreuer",
|
|
10
|
+
"homepage": "https://github.com/stacksjs/stacks/tree/main/.stacks/core/config#readme",
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "git+https://github.com/stacksjs/stacks.git",
|
|
14
|
+
"directory": "./.stacks/core/config"
|
|
15
|
+
},
|
|
16
|
+
"bugs": {
|
|
17
|
+
"url": "https://github.com/stacksjs/stacks/issues"
|
|
18
|
+
},
|
|
19
|
+
"keywords": [
|
|
20
|
+
"configuration",
|
|
21
|
+
"stacks"
|
|
22
|
+
],
|
|
23
|
+
"main": "dist/index.mjs",
|
|
24
|
+
"module": "dist/index.mjs",
|
|
25
|
+
"types": "dist/index.d.ts",
|
|
26
|
+
"contributors": [
|
|
27
|
+
"Chris Breuer <chris@ow3.org>"
|
|
28
|
+
],
|
|
29
|
+
"files": [
|
|
30
|
+
"dist",
|
|
31
|
+
"README.md"
|
|
32
|
+
],
|
|
33
|
+
"engines": {
|
|
34
|
+
"node": ">=v18.12.1",
|
|
35
|
+
"pnpm": ">=7.15.0"
|
|
36
|
+
},
|
|
37
|
+
"peerDependencies": {
|
|
38
|
+
"@stacksjs/utils": "0.38.3"
|
|
39
|
+
},
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"mkdist": "^0.4.0",
|
|
42
|
+
"typescript": "^4.8.4",
|
|
43
|
+
"unbuild": "^0.9.4"
|
|
44
|
+
},
|
|
45
|
+
"scripts": {
|
|
46
|
+
"build": "unbuild",
|
|
47
|
+
"dev": "unbuild --stub",
|
|
48
|
+
"typecheck": "tsc --noEmit"
|
|
49
|
+
}
|
|
50
|
+
}
|