@stacksjs/types 0.51.0 → 0.52.1

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 CHANGED
@@ -38,7 +38,7 @@ pnpm test
38
38
 
39
39
  Please see our [releases](https://github.com/stacksjs/stacks/releases) page for more information on what has changed recently.
40
40
 
41
- ## 💪🏼 Contributing
41
+ ## 🚜 Contributing
42
42
 
43
43
  Please review the [Contributing Guide](https://github.com/stacksjs/contributing) for details.
44
44
 
package/dist/app.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * **Application Options**
3
3
  *
4
- * This configuration defines all of your application options. Because Stacks is full-typed,
4
+ * This configuration defines all of your application options. Because Stacks is fully-typed,
5
5
  * you may hover any of the options below and the definitions will be provided. In case
6
6
  * you have any questions, feel free to reach out via Discord or GitHub Discussions.
7
7
  */
@@ -30,12 +30,11 @@ export interface AppOptions {
30
30
  * **Application URL**
31
31
  *
32
32
  * This URL is used by the console to properly generate URLs when using
33
- * the Artisan command line tool. You should set this to the root of
34
- * your application so that it is used when running Artisan tasks.
33
+ * the Buddy command line tool. You should set this to the root of
34
+ * your application so that it is used when running Buddy tasks.
35
35
  *
36
36
  * @default string "https://localhost"
37
- * @example
38
- * https://hello-world.test
37
+ * @example "https://hello-world.test"
39
38
  */
40
39
  url?: string;
41
40
  /**
@@ -98,16 +97,6 @@ export interface AppOptions {
98
97
  * @default string "en"
99
98
  */
100
99
  fallbackLocale: 'en';
101
- /**
102
- * **Integrated Development Environment**
103
- *
104
- * Currently, only VS Code is fully supported. While you may use Stacks with
105
- * any editor, some of its tooling is VS Code specific. Hence, for the
106
- * best experience, VS Code is currently the recommended editor.
107
- *
108
- * @default string "vscode"
109
- */
110
- editor: string;
111
100
  /**
112
101
  * **Cipher**
113
102
  *
@@ -1,2 +1 @@
1
- import type { Options } from 'unplugin-auto-import/types';
2
- export type AutoImportsOptions = Options;
1
+ export type { Options as AutoImportsOptions } from 'unplugin-auto-import/types';
package/dist/build.d.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  export type { UserConfig as ViteConfig } from 'vite';
2
- export { type ViteSSGContext } from 'vite-ssg';
2
+ export type { ViteSSGContext } from 'vite-ssg';
package/dist/build.mjs CHANGED
@@ -1 +0,0 @@
1
- export {} from "vite-ssg";
@@ -0,0 +1,69 @@
1
+ export interface CacheOptions {
2
+ /**
3
+ * **Cache Driver**
4
+ *
5
+ * This value determines the cache driver that will be used by your application to store
6
+ * cached data. By default, Stacks uses the "redis" driver, which stores cached data in
7
+ * in a self-configufed Redis instance. You may use any of the other drivers provided
8
+ * by Stacks or write your own custom driver.
9
+ *
10
+ * @default "redis"
11
+ * @example "redis"
12
+ * @example "memcached"
13
+ * @example "dynamodb"
14
+ *
15
+ * @see https://stacks.js.org/docs/cache
16
+ */
17
+ driver: string;
18
+ /**
19
+ * **Cache Prefix**
20
+ *
21
+ * This value determines the prefix that will be used when storing items in the cache. This
22
+ * prefix may be useful when multiple applications are sharing the same cache driver so that
23
+ * they may avoid collisions when attempting to retrieve items from the cache.
24
+ *
25
+ * @default string "stacks"
26
+ * @example "stacks"
27
+ *
28
+ * @see https://stacks.js.org/docs/cache
29
+ */
30
+ prefix: string;
31
+ /**
32
+ * **Cache TTL**
33
+ *
34
+ * This value determines the default time to live for items stored in the cache. This value
35
+ * may be overridden when storing items in the cache. If no value is specified, the cache
36
+ * driver will default to a reasonable time to live for the given item.
37
+ *
38
+ * @default number 3600
39
+ * @example 3600
40
+ * @example 3600 * 24
41
+ * @example -1 (never expires)
42
+ */
43
+ ttl: number;
44
+ drivers: {
45
+ redis?: {
46
+ connection: string;
47
+ /**
48
+ * **Redis Host**
49
+ *
50
+ * This value determines the host that will be used to connect to the Redis server.
51
+ *
52
+ * @default string "localhost"
53
+ * @example "localhost"
54
+ */
55
+ host: string;
56
+ /**
57
+ * **Redis Port**
58
+ *
59
+ * This value determines the port that will be used to connect to the Redis server.
60
+ *
61
+ * @default number 6379
62
+ * @example 6379
63
+ */
64
+ port: number;
65
+ };
66
+ memcached?: {};
67
+ dynamodb?: {};
68
+ };
69
+ }
package/dist/cache.mjs ADDED
File without changes
package/dist/cdn.d.ts ADDED
@@ -0,0 +1,15 @@
1
+ export interface CdnOptions {
2
+ /**
3
+ * **CDN Driver**
4
+ *
5
+ * This value determines the default CDN driver that will be used when interacting with the
6
+ * CDN service. This value may be overridden when interacting with the CDN service.
7
+ *
8
+ * @default "cloudfront"
9
+ * @example "cloudfront"
10
+ * @example "fastly" wip
11
+ *
12
+ * @see https://stacks.js.org/docs/cdn
13
+ */
14
+ driver: string;
15
+ }
package/dist/cdn.mjs ADDED
File without changes
package/dist/cli.d.ts CHANGED
@@ -2,12 +2,12 @@
2
2
  * The parsed command-line arguments
3
3
  */
4
4
  import type { Ora } from 'ora';
5
- export interface StacksOptions {
6
- componentsSrcPath?: string;
7
- dtsPath?: string;
8
- extensions?: string[];
9
- }
5
+ import type { ExecaReturnValue } from 'execa';
6
+ import type { Err, Ok } from './errors';
7
+ export type CommandReturnValue = ExecaReturnValue<string>;
8
+ export type CommandResult = Ok<ExecaReturnValue<string>, Error | void> | Err<ExecaReturnValue<string>, Error | string | void>;
10
9
  export interface OutroOptions {
10
+ type?: 'success' | 'error' | 'warning' | 'info';
11
11
  startTime?: number;
12
12
  useSeconds?: boolean;
13
13
  isError?: boolean;
@@ -19,26 +19,25 @@ export interface IntroOptions {
19
19
  showPerformance?: boolean;
20
20
  }
21
21
  type SpinnerOptions = Ora;
22
+ export type CliOptionsKeys = keyof CliOptions;
23
+ /**
24
+ * The CLI Options used in `./config/cli.ts`.
25
+ */
26
+ export interface UserCliOptions {
27
+ name?: string;
28
+ command?: string;
29
+ description?: string;
30
+ }
22
31
  /**
23
32
  * The options to pass to the CLI.
24
33
  */
25
34
  export interface CliOptions {
26
35
  /**
27
- * **CLI Debug Level**
28
- *
29
- * When your application is in debug mode, a different level
30
- * of information, like stack traces, will be shown. When
31
- * disabled, it defaults to the "normal experience."
32
- *
33
- * @default false
34
- */
35
- debug?: boolean;
36
- /**
37
- * **Verbosity Mode**
36
+ * **Verbose Output**
38
37
  *
39
- * When your application is in verbose mode, a different level of information,
40
- * like useful outputs for debugging reasons, will be shown. When
41
- * disabled, it defaults to the "normal experience."
38
+ * When your application is in "verbose"-mode, a different level of,
39
+ * information like useful outputs for debugging reasons, will be
40
+ * shown. When disabled, it defaults to the "normal experience."
42
41
  *
43
42
  * @default false
44
43
  */
@@ -84,11 +83,22 @@ export interface CliOptions {
84
83
  * @default false
85
84
  */
86
85
  shell?: boolean;
86
+ /**
87
+ * **Encoding**
88
+ *
89
+ * Encoding type
90
+ *
91
+ * @default 'utf-8'
92
+ */
93
+ encoding?: string;
87
94
  }
88
95
  export type { Ora as SpinnerOptions } from 'ora';
89
- export type ActionsOption = 'types';
90
- export type ActionsOptions = {
91
- [key in ActionsOption]?: boolean;
96
+ export type ActionOption = 'types';
97
+ /**
98
+ * The options to pass to the Action.
99
+ */
100
+ export type ActionOptions = {
101
+ [key in ActionOption]?: boolean;
92
102
  } & CliOptions;
93
103
  export type BuildOption = 'components' | 'vueComponents' | 'webComponents' | 'elements' | 'functions' | 'docs' | 'pages' | 'stacks' | 'all';
94
104
  export type BuildOptions = {
@@ -117,19 +127,19 @@ export type LintOption = 'fix';
117
127
  export type LintOptions = {
118
128
  [key in LintOption]: boolean;
119
129
  } & CliOptions;
120
- export type MakeStringOption = 'name' | 'chat' | 'sms';
130
+ export type MakeStringOption = 'name' | 'chat' | 'sms' | 'env';
121
131
  export type MakeBooleanOption = 'component' | 'page' | 'function' | 'language' | 'database' | 'migration' | 'factory' | 'notification' | 'stack';
122
132
  export type MakeOptions = {
123
133
  [key in MakeBooleanOption]: boolean;
124
134
  } & {
125
135
  [key in MakeStringOption]: string;
126
136
  } & CliOptions;
127
- export type UpdateString = 'version';
128
- export type UpdateBoolean = 'framework' | 'dependencies' | 'packageManager' | 'node' | 'all' | 'force';
129
- export type UpdateOptions = {
130
- [key in UpdateString]: string;
137
+ export type UpgradeBoolean = 'framework' | 'dependencies' | 'packageManager' | 'node' | 'all' | 'force';
138
+ export type UpgradeString = 'version';
139
+ export type UpgradeOptions = {
140
+ [key in UpgradeBoolean]: boolean;
131
141
  } & {
132
- [key in UpdateBoolean]: boolean;
142
+ [key in UpgradeString]: string;
133
143
  } & CliOptions;
134
144
  export type ExamplesString = 'version';
135
145
  export type ExamplesBoolean = 'components' | 'vue' | 'webComponents' | 'elements' | 'all' | 'force';
@@ -150,12 +160,16 @@ export interface KeyOptions extends CliOptions {
150
160
  }
151
161
  export interface FreshOptions extends CliOptions {
152
162
  }
163
+ export interface InspireOptions extends CliOptions {
164
+ }
153
165
  export interface ReleaseOptions extends CliOptions {
154
166
  }
155
167
  export interface PreinstallOptions extends CliOptions {
156
168
  }
157
169
  export interface PrepublishOptions extends CliOptions {
158
170
  }
171
+ export interface TinkerOptions extends CliOptions {
172
+ }
159
173
  export interface TypesOptions extends CliOptions {
160
174
  }
161
175
  export type LibEntryType = 'vue-components' | 'web-components' | 'functions' | 'all';
@@ -169,20 +183,15 @@ export declare const enum NpmScript {
169
183
  BuildFunctions = "build:functions",
170
184
  BuildDocs = "build:docs",
171
185
  BuildStacks = "build:stacks",
172
- Clean = "rimraf ./pnpm-lock.yaml ./node_modules/ ./.stacks/**/node_modules",
186
+ Clean = "rimraf pnpm-lock.yaml node_modules/ .stacks/**/node_modules .stacks/**/dist",
173
187
  Dev = "dev",
174
188
  DevComponents = "vite --config ./core/build/src/vue-components.ts",
175
- DevDocs = "dev:docs",
189
+ DevDocs = "npx vitepress dev ./docs/src",
176
190
  DevDesktop = "dev:desktop",
177
191
  DevPages = "dev:pages",
178
192
  DevFunctions = "dev:functions",
179
193
  Fresh = "fresh",
180
- Update = "update",
181
- UpdateDependencies = "pnpm update",
182
- UpdateFramework = "update:framework",
183
- UpdatePackageManager = "update:package-manager",
184
- UpdateNode = "pnpm env use",
185
- Lint = "eslint .",
194
+ Lint = "eslint . ; npx publint",
186
195
  LintFix = "eslint . --fix",
187
196
  MakeStack = "make:stack",
188
197
  Test = "vitest --config vitest.config.ts",
@@ -190,7 +199,7 @@ export declare const enum NpmScript {
190
199
  TestFeature = "playwright test --config playwright.config.ts",
191
200
  TestUi = "vitest --config vitest.config.ts --ui",
192
201
  TestCoverage = "vitest --config vitest.config.ts --coverage",
193
- TestTypes = "vue-tsc --noEmit",
202
+ TestTypes = "vue-npx tsc --noEmit",
194
203
  Generate = "generate",
195
204
  GenerateTypes = "generate:types",
196
205
  GenerateEntries = "generate:entries",
@@ -209,37 +218,48 @@ export declare const enum NpmScript {
209
218
  TypesGenerate = "types:generate",
210
219
  Preinstall = "preinstall",
211
220
  Prepublish = "prepublish",
212
- Wip = "wip"
221
+ Wip = "wip",
222
+ UpgradeNode = "./.stacks/scripts/setup.sh +nodejs.org",
223
+ UpgradePackageManager = "./.stacks/scripts/setup.sh +pnpm.io"
213
224
  }
214
225
  export declare const enum Action {
215
226
  Bump = "bump",
216
- Release = "release",
217
- Prepublish = "prepublish",
218
- BuildStacks = "build-stacks",
227
+ BuildStacks = "build/stacks",
219
228
  BuildComponentLibs = "build-component-libs",
220
229
  BuildVueComponentLib = "build-vue-component-lib",
221
230
  BuildWebComponentLib = "build-web-component-lib",
222
231
  BuildCli = "build-cli",
223
- BuildCore = "build-core",
232
+ BuildCore = "build/core",
224
233
  BuildDocs = "build-docs",
225
234
  BuildFunctionLib = "build-function-lib",
226
235
  Changelog = "changelog",
236
+ Clean = "clean",
237
+ DevComponents = "dev/components",
238
+ DevDocs = "dev/docs",
239
+ Deploy = "deploy",
227
240
  Fresh = "fresh",
228
241
  GeneratePackageJsons = "generate-package-jsons",
229
242
  GenerateSettings = "generate-settings",
230
243
  GenerateOnboarding = "generate-onboarding",
231
- Lint = "lint",
232
- LintFix = "lint-fix",
244
+ Inspire = "inspire",
245
+ KeyGenerate = "key-generate",
246
+ MakeNotification = "make-notification",
247
+ Migrate = "migrate",
248
+ Seed = "seed",
249
+ Lint = "lint/index",
250
+ LintFix = "lint/fix",
251
+ Prepublish = "prepublish",
252
+ Release = "release",
253
+ ShowFeatureTestReport = "show-feature-test-report",
233
254
  Test = "test",
234
255
  TestUi = "test-ui",
235
256
  TestUnit = "test-unit",
236
257
  TestFeature = "test-feature",
237
258
  TestCoverage = "test-coverage",
238
- ShowFeatureTestReport = "show-feature-test-report",
259
+ Tinker = "tinker",
239
260
  Typecheck = "typecheck",
240
- KeyGenerate = "key-generate",
241
- MakeNotification = "make-notification",
242
- DevComponents = "dev-components"
261
+ Upgrade = "upgrade/index",
262
+ UpgradeNode = "upgrade/node",
263
+ UpgradePackageManager = "upgrade/package-manager"
243
264
  }
244
265
  export type { CAC as CLI } from 'cac';
245
- export type { ExecaReturnValue as CommandResult } from 'execa';
package/dist/cli.mjs CHANGED
@@ -5,20 +5,15 @@ export var NpmScript = /* @__PURE__ */ ((NpmScript2) => {
5
5
  NpmScript2["BuildFunctions"] = "build:functions";
6
6
  NpmScript2["BuildDocs"] = "build:docs";
7
7
  NpmScript2["BuildStacks"] = "build:stacks";
8
- NpmScript2["Clean"] = "rimraf ./pnpm-lock.yaml ./node_modules/ ./.stacks/**/node_modules";
8
+ NpmScript2["Clean"] = "rimraf pnpm-lock.yaml node_modules/ .stacks/**/node_modules .stacks/**/dist";
9
9
  NpmScript2["Dev"] = "dev";
10
10
  NpmScript2["DevComponents"] = "vite --config ./core/build/src/vue-components.ts";
11
- NpmScript2["DevDocs"] = "dev:docs";
11
+ NpmScript2["DevDocs"] = "npx vitepress dev ./docs/src";
12
12
  NpmScript2["DevDesktop"] = "dev:desktop";
13
13
  NpmScript2["DevPages"] = "dev:pages";
14
14
  NpmScript2["DevFunctions"] = "dev:functions";
15
15
  NpmScript2["Fresh"] = "fresh";
16
- NpmScript2["Update"] = "update";
17
- NpmScript2["UpdateDependencies"] = "pnpm update";
18
- NpmScript2["UpdateFramework"] = "update:framework";
19
- NpmScript2["UpdatePackageManager"] = "update:package-manager";
20
- NpmScript2["UpdateNode"] = "pnpm env use";
21
- NpmScript2["Lint"] = "eslint .";
16
+ NpmScript2["Lint"] = "eslint . ; npx publint";
22
17
  NpmScript2["LintFix"] = "eslint . --fix";
23
18
  NpmScript2["MakeStack"] = "make:stack";
24
19
  NpmScript2["Test"] = "vitest --config vitest.config.ts";
@@ -26,7 +21,7 @@ export var NpmScript = /* @__PURE__ */ ((NpmScript2) => {
26
21
  NpmScript2["TestFeature"] = "playwright test --config playwright.config.ts";
27
22
  NpmScript2["TestUi"] = "vitest --config vitest.config.ts --ui";
28
23
  NpmScript2["TestCoverage"] = "vitest --config vitest.config.ts --coverage";
29
- NpmScript2["TestTypes"] = "vue-tsc --noEmit";
24
+ NpmScript2["TestTypes"] = "vue-npx tsc --noEmit";
30
25
  NpmScript2["Generate"] = "generate";
31
26
  NpmScript2["GenerateTypes"] = "generate:types";
32
27
  NpmScript2["GenerateEntries"] = "generate:entries";
@@ -46,36 +41,48 @@ export var NpmScript = /* @__PURE__ */ ((NpmScript2) => {
46
41
  NpmScript2["Preinstall"] = "preinstall";
47
42
  NpmScript2["Prepublish"] = "prepublish";
48
43
  NpmScript2["Wip"] = "wip";
44
+ NpmScript2["UpgradeNode"] = "./.stacks/scripts/setup.sh +nodejs.org";
45
+ NpmScript2["UpgradePackageManager"] = "./.stacks/scripts/setup.sh +pnpm.io";
49
46
  return NpmScript2;
50
47
  })(NpmScript || {});
51
48
  export var Action = /* @__PURE__ */ ((Action2) => {
52
49
  Action2["Bump"] = "bump";
53
- Action2["Release"] = "release";
54
- Action2["Prepublish"] = "prepublish";
55
- Action2["BuildStacks"] = "build-stacks";
50
+ Action2["BuildStacks"] = "build/stacks";
56
51
  Action2["BuildComponentLibs"] = "build-component-libs";
57
52
  Action2["BuildVueComponentLib"] = "build-vue-component-lib";
58
53
  Action2["BuildWebComponentLib"] = "build-web-component-lib";
59
54
  Action2["BuildCli"] = "build-cli";
60
- Action2["BuildCore"] = "build-core";
55
+ Action2["BuildCore"] = "build/core";
61
56
  Action2["BuildDocs"] = "build-docs";
62
57
  Action2["BuildFunctionLib"] = "build-function-lib";
63
58
  Action2["Changelog"] = "changelog";
59
+ Action2["Clean"] = "clean";
60
+ Action2["DevComponents"] = "dev/components";
61
+ Action2["DevDocs"] = "dev/docs";
62
+ Action2["Deploy"] = "deploy";
64
63
  Action2["Fresh"] = "fresh";
65
64
  Action2["GeneratePackageJsons"] = "generate-package-jsons";
66
65
  Action2["GenerateSettings"] = "generate-settings";
67
66
  Action2["GenerateOnboarding"] = "generate-onboarding";
68
- Action2["Lint"] = "lint";
69
- Action2["LintFix"] = "lint-fix";
67
+ Action2["Inspire"] = "inspire";
68
+ Action2["KeyGenerate"] = "key-generate";
69
+ Action2["MakeNotification"] = "make-notification";
70
+ Action2["Migrate"] = "migrate";
71
+ Action2["Seed"] = "seed";
72
+ Action2["Lint"] = "lint/index";
73
+ Action2["LintFix"] = "lint/fix";
74
+ Action2["Prepublish"] = "prepublish";
75
+ Action2["Release"] = "release";
76
+ Action2["ShowFeatureTestReport"] = "show-feature-test-report";
70
77
  Action2["Test"] = "test";
71
78
  Action2["TestUi"] = "test-ui";
72
79
  Action2["TestUnit"] = "test-unit";
73
80
  Action2["TestFeature"] = "test-feature";
74
81
  Action2["TestCoverage"] = "test-coverage";
75
- Action2["ShowFeatureTestReport"] = "show-feature-test-report";
82
+ Action2["Tinker"] = "tinker";
76
83
  Action2["Typecheck"] = "typecheck";
77
- Action2["KeyGenerate"] = "key-generate";
78
- Action2["MakeNotification"] = "make-notification";
79
- Action2["DevComponents"] = "dev-components";
84
+ Action2["Upgrade"] = "upgrade/index";
85
+ Action2["UpgradeNode"] = "upgrade/node";
86
+ Action2["UpgradePackageManager"] = "upgrade/package-manager";
80
87
  return Action2;
81
88
  })(Action || {});
@@ -1,4 +1,4 @@
1
- import type { Options } from 'unplugin-vue-components';
1
+ export type { Options as ComponentOptions } from 'unplugin-vue-components';
2
2
  export interface TagOption {
3
3
  /**
4
4
  * **Tag Name**
@@ -58,4 +58,3 @@ export interface TagOption {
58
58
  }[];
59
59
  }
60
60
  export type TagsOptions = TagOption[];
61
- export type ComponentOptions = Options;
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Cron Job Options.
3
+ */
4
+ export interface CronJobOptions {
5
+ /**
6
+ * The name of the cron job.
7
+ */
8
+ name?: string;
9
+ function: string;
10
+ schedule: string;
11
+ description?: string;
12
+ enabled?: boolean;
13
+ timezone?: string;
14
+ }
15
+ export type CronJob = CronJobOptions;
16
+ export type CronJobs = CronJob[];
File without changes
@@ -1,2 +1,32 @@
1
- import type { PrismaClient } from '@prisma/client';
2
- export type DatabaseClient = PrismaClient;
1
+ import type { Model } from './model';
2
+ export type DatabaseClient = any;
3
+ export interface DatabaseOptions {
4
+ driver: string;
5
+ drivers: {
6
+ mysql: {
7
+ url?: string;
8
+ host?: string;
9
+ port?: number;
10
+ client?: DatabaseClient;
11
+ name: string;
12
+ username?: string;
13
+ password?: string;
14
+ };
15
+ planetscale: {};
16
+ postgres: {};
17
+ };
18
+ }
19
+ export interface FactoryOptions {
20
+ name: string;
21
+ count?: number;
22
+ items: object;
23
+ columns: object;
24
+ }
25
+ export interface SchemaOptions {
26
+ database: string;
27
+ }
28
+ export interface DatabaseDriver {
29
+ client: DatabaseClient;
30
+ migrate: (models: Model[], path: string, options?: SchemaOptions) => Promise<void>;
31
+ factory: (modelName: string, fileName: string, path: string) => Promise<void>;
32
+ }
package/dist/deploy.d.ts CHANGED
@@ -1,11 +1,9 @@
1
+ /**
2
+ * **Deploy Options**
3
+ *
4
+ * This configuration defines all of your deployment options. Because Stacks is fully-typed,
5
+ * you may hover any of the options below and the definitions will be provided. In case
6
+ * you have any questions, feel free to reach out via Discord or GitHub Discussions.
7
+ */
1
8
  export interface DeployOptions {
2
- /**
3
- * **Deployment Host**
4
- *
5
- * The host to deploy to.
6
- *
7
- * @default string 'netlify'
8
- * @see https://stacksjs.dev/docs/components
9
- */
10
- driver: 'netlify' | 'vercel';
11
9
  }
package/dist/dns.d.ts ADDED
@@ -0,0 +1,43 @@
1
+ export interface ARecord {
2
+ name: string | '@' | '*';
3
+ address: string;
4
+ ttl?: number | 'auto';
5
+ }
6
+ export interface CNameRecord {
7
+ name: string;
8
+ target: string;
9
+ ttl: number | 'auto';
10
+ }
11
+ export interface MXRecord {
12
+ name: string | '@';
13
+ mailServer: string;
14
+ ttl: number | 'auto';
15
+ priority: number;
16
+ }
17
+ export interface TxtRecord {
18
+ name: string | '@';
19
+ ttl: number | 'auto';
20
+ content: string;
21
+ }
22
+ export interface AAAARecord {
23
+ name: string | '@' | '*';
24
+ address: string;
25
+ ttl: number | 'auto';
26
+ }
27
+ export type DnsRecord = ARecord | CNameRecord | MXRecord | TxtRecord | AAAARecord;
28
+ /**
29
+ * **DNS Options**
30
+ *
31
+ * This configuration defines all of your DNS options. Because Stacks is fully-typed,
32
+ * you may hover any of the options below and the definitions will be provided. In case
33
+ * you have any questions, feel free to reach out via Discord or GitHub Discussions.
34
+ *
35
+ * @see https://stacksjs.dev/docs/dns
36
+ */
37
+ export interface DnsOptions {
38
+ a?: ARecord[];
39
+ aaaa?: AAAARecord[];
40
+ cname?: CNameRecord[];
41
+ mx?: MXRecord[];
42
+ txt?: TxtRecord[];
43
+ }
package/dist/dns.mjs ADDED
File without changes
package/dist/docs.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  import type { UserConfig } from 'vitepress';
2
2
  export type DocsConfig = UserConfig;
3
+ export type DocsOptions = DocsConfig;
package/dist/events.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * **Events**
3
3
  *
4
- * This configuration defines all of your events. Because Stacks is full-typed, you may
4
+ * This configuration defines all of your events. Because Stacks is fully-typed, you may
5
5
  * hover any of the options below and the definitions will be provided. In case you
6
6
  * have any questions, feel free to reach out via Discord or GitHub Discussions.
7
7
  *
package/dist/fs.d.ts CHANGED
@@ -14,3 +14,9 @@ export interface JsonFile {
14
14
  indent: string;
15
15
  newline: string | undefined;
16
16
  }
17
+ /**
18
+ * Describes a package.json file.
19
+ */
20
+ export interface PackageJson {
21
+ packageManager: string;
22
+ }
package/dist/git.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * **Git Options**
3
3
  *
4
- * This configuration defines all of your git options. Because Stacks is full-typed, you may
4
+ * This configuration defines all of your git options. Because Stacks is fully-typed, you may
5
5
  * hover any of the options below and the definitions will be provided. In case you
6
6
  * have any questions, feel free to reach out via Discord or GitHub Discussions.
7
7
  */