@stacksjs/types 0.51.0 → 0.52.0
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 +1 -1
- package/dist/app.d.ts +4 -15
- package/dist/auto-imports.d.ts +1 -2
- package/dist/build.d.ts +1 -1
- package/dist/build.mjs +0 -1
- package/dist/cache.d.ts +69 -0
- package/dist/cache.mjs +0 -0
- package/dist/cdn.d.ts +15 -0
- package/dist/cdn.mjs +0 -0
- package/dist/cli.d.ts +68 -49
- package/dist/cli.mjs +26 -19
- package/dist/components.d.ts +1 -2
- package/dist/cron-jobs.d.ts +16 -0
- package/dist/cron-jobs.mjs +0 -0
- package/dist/database.d.ts +32 -2
- package/dist/deploy.d.ts +7 -9
- package/dist/dns.d.ts +43 -0
- package/dist/dns.mjs +0 -0
- package/dist/docs.d.ts +1 -0
- package/dist/events.d.ts +1 -1
- package/dist/git.d.ts +1 -1
- package/dist/index.d.ts +10 -2
- package/dist/index.mjs +10 -2
- package/dist/library.d.ts +5 -1
- package/dist/model.d.ts +41 -0
- package/dist/model.mjs +0 -0
- package/dist/notifications.d.ts +118 -98
- package/dist/payments.d.ts +59 -0
- package/dist/payments.mjs +0 -0
- package/dist/reactivity.d.ts +1 -2
- package/dist/router.d.ts +26 -0
- package/dist/router.mjs +0 -0
- package/dist/search-engine.d.ts +48 -8
- package/dist/ssg.d.ts +1 -1
- package/dist/stacks.d.ts +163 -0
- package/dist/stacks.mjs +0 -0
- package/dist/ui.d.ts +1 -1
- package/package.json +33 -24
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
|
-
##
|
|
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
|
|
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
|
|
34
|
-
* your application so that it is used when running
|
|
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
|
*
|
package/dist/auto-imports.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
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 {
|
|
2
|
+
export type { ViteSSGContext } from 'vite-ssg';
|
package/dist/build.mjs
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {} from "vite-ssg";
|
package/dist/cache.d.ts
ADDED
|
@@ -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,11 +2,10 @@
|
|
|
2
2
|
* The parsed command-line arguments
|
|
3
3
|
*/
|
|
4
4
|
import type { Ora } from 'ora';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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 {
|
|
11
10
|
startTime?: number;
|
|
12
11
|
useSeconds?: boolean;
|
|
@@ -19,26 +18,25 @@ export interface IntroOptions {
|
|
|
19
18
|
showPerformance?: boolean;
|
|
20
19
|
}
|
|
21
20
|
type SpinnerOptions = Ora;
|
|
21
|
+
export type CliOptionsKeys = keyof CliOptions;
|
|
22
|
+
/**
|
|
23
|
+
* The CLI Options used in `./config/cli.ts`.
|
|
24
|
+
*/
|
|
25
|
+
export interface UserCliOptions {
|
|
26
|
+
name?: string;
|
|
27
|
+
command?: string;
|
|
28
|
+
description?: string;
|
|
29
|
+
}
|
|
22
30
|
/**
|
|
23
31
|
* The options to pass to the CLI.
|
|
24
32
|
*/
|
|
25
33
|
export interface CliOptions {
|
|
26
34
|
/**
|
|
27
|
-
* **
|
|
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**
|
|
35
|
+
* **Verbose Output**
|
|
38
36
|
*
|
|
39
|
-
* When your application is in verbose
|
|
40
|
-
* like useful outputs for debugging reasons, will be
|
|
41
|
-
* disabled, it defaults to the "normal experience."
|
|
37
|
+
* When your application is in "verbose"-mode, a different level of,
|
|
38
|
+
* information like useful outputs for debugging reasons, will be
|
|
39
|
+
* shown. When disabled, it defaults to the "normal experience."
|
|
42
40
|
*
|
|
43
41
|
* @default false
|
|
44
42
|
*/
|
|
@@ -84,11 +82,22 @@ export interface CliOptions {
|
|
|
84
82
|
* @default false
|
|
85
83
|
*/
|
|
86
84
|
shell?: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* **Encoding**
|
|
87
|
+
*
|
|
88
|
+
* Encoding type
|
|
89
|
+
*
|
|
90
|
+
* @default 'utf-8'
|
|
91
|
+
*/
|
|
92
|
+
encoding?: string;
|
|
87
93
|
}
|
|
88
94
|
export type { Ora as SpinnerOptions } from 'ora';
|
|
89
|
-
export type
|
|
90
|
-
|
|
91
|
-
|
|
95
|
+
export type ActionOption = 'types';
|
|
96
|
+
/**
|
|
97
|
+
* The options to pass to the Action.
|
|
98
|
+
*/
|
|
99
|
+
export type ActionOptions = {
|
|
100
|
+
[key in ActionOption]?: boolean;
|
|
92
101
|
} & CliOptions;
|
|
93
102
|
export type BuildOption = 'components' | 'vueComponents' | 'webComponents' | 'elements' | 'functions' | 'docs' | 'pages' | 'stacks' | 'all';
|
|
94
103
|
export type BuildOptions = {
|
|
@@ -117,19 +126,19 @@ export type LintOption = 'fix';
|
|
|
117
126
|
export type LintOptions = {
|
|
118
127
|
[key in LintOption]: boolean;
|
|
119
128
|
} & CliOptions;
|
|
120
|
-
export type MakeStringOption = 'name' | 'chat' | 'sms';
|
|
129
|
+
export type MakeStringOption = 'name' | 'chat' | 'sms' | 'env';
|
|
121
130
|
export type MakeBooleanOption = 'component' | 'page' | 'function' | 'language' | 'database' | 'migration' | 'factory' | 'notification' | 'stack';
|
|
122
131
|
export type MakeOptions = {
|
|
123
132
|
[key in MakeBooleanOption]: boolean;
|
|
124
133
|
} & {
|
|
125
134
|
[key in MakeStringOption]: string;
|
|
126
135
|
} & CliOptions;
|
|
127
|
-
export type
|
|
128
|
-
export type
|
|
129
|
-
export type
|
|
130
|
-
[key in
|
|
136
|
+
export type UpgradeBoolean = 'framework' | 'dependencies' | 'packageManager' | 'node' | 'all' | 'force';
|
|
137
|
+
export type UpgradeString = 'version';
|
|
138
|
+
export type UpgradeOptions = {
|
|
139
|
+
[key in UpgradeBoolean]: boolean;
|
|
131
140
|
} & {
|
|
132
|
-
[key in
|
|
141
|
+
[key in UpgradeString]: string;
|
|
133
142
|
} & CliOptions;
|
|
134
143
|
export type ExamplesString = 'version';
|
|
135
144
|
export type ExamplesBoolean = 'components' | 'vue' | 'webComponents' | 'elements' | 'all' | 'force';
|
|
@@ -150,12 +159,16 @@ export interface KeyOptions extends CliOptions {
|
|
|
150
159
|
}
|
|
151
160
|
export interface FreshOptions extends CliOptions {
|
|
152
161
|
}
|
|
162
|
+
export interface InspireOptions extends CliOptions {
|
|
163
|
+
}
|
|
153
164
|
export interface ReleaseOptions extends CliOptions {
|
|
154
165
|
}
|
|
155
166
|
export interface PreinstallOptions extends CliOptions {
|
|
156
167
|
}
|
|
157
168
|
export interface PrepublishOptions extends CliOptions {
|
|
158
169
|
}
|
|
170
|
+
export interface TinkerOptions extends CliOptions {
|
|
171
|
+
}
|
|
159
172
|
export interface TypesOptions extends CliOptions {
|
|
160
173
|
}
|
|
161
174
|
export type LibEntryType = 'vue-components' | 'web-components' | 'functions' | 'all';
|
|
@@ -169,20 +182,15 @@ export declare const enum NpmScript {
|
|
|
169
182
|
BuildFunctions = "build:functions",
|
|
170
183
|
BuildDocs = "build:docs",
|
|
171
184
|
BuildStacks = "build:stacks",
|
|
172
|
-
Clean = "rimraf ./pnpm-lock.yaml ./node_modules/ ./.stacks/**/node_modules",
|
|
185
|
+
Clean = "rimraf ./pnpm-lock.yaml ./node_modules/ ./.stacks/**/node_modules ./.stacks/**/dist",
|
|
173
186
|
Dev = "dev",
|
|
174
187
|
DevComponents = "vite --config ./core/build/src/vue-components.ts",
|
|
175
|
-
DevDocs = "dev
|
|
188
|
+
DevDocs = "npx vitepress dev ./docs/src",
|
|
176
189
|
DevDesktop = "dev:desktop",
|
|
177
190
|
DevPages = "dev:pages",
|
|
178
191
|
DevFunctions = "dev:functions",
|
|
179
192
|
Fresh = "fresh",
|
|
180
|
-
|
|
181
|
-
UpdateDependencies = "pnpm update",
|
|
182
|
-
UpdateFramework = "update:framework",
|
|
183
|
-
UpdatePackageManager = "update:package-manager",
|
|
184
|
-
UpdateNode = "pnpm env use",
|
|
185
|
-
Lint = "eslint .",
|
|
193
|
+
Lint = "eslint . ; npx publint",
|
|
186
194
|
LintFix = "eslint . --fix",
|
|
187
195
|
MakeStack = "make:stack",
|
|
188
196
|
Test = "vitest --config vitest.config.ts",
|
|
@@ -190,7 +198,7 @@ export declare const enum NpmScript {
|
|
|
190
198
|
TestFeature = "playwright test --config playwright.config.ts",
|
|
191
199
|
TestUi = "vitest --config vitest.config.ts --ui",
|
|
192
200
|
TestCoverage = "vitest --config vitest.config.ts --coverage",
|
|
193
|
-
TestTypes = "vue-tsc --noEmit",
|
|
201
|
+
TestTypes = "vue-npx tsc --noEmit",
|
|
194
202
|
Generate = "generate",
|
|
195
203
|
GenerateTypes = "generate:types",
|
|
196
204
|
GenerateEntries = "generate:entries",
|
|
@@ -209,37 +217,48 @@ export declare const enum NpmScript {
|
|
|
209
217
|
TypesGenerate = "types:generate",
|
|
210
218
|
Preinstall = "preinstall",
|
|
211
219
|
Prepublish = "prepublish",
|
|
212
|
-
Wip = "wip"
|
|
220
|
+
Wip = "wip",
|
|
221
|
+
UpgradeNode = "./.stacks/scripts/setup.sh +nodejs.org",
|
|
222
|
+
UpgradePackageManager = "./.stacks/scripts/setup.sh +pnpm.io"
|
|
213
223
|
}
|
|
214
224
|
export declare const enum Action {
|
|
215
225
|
Bump = "bump",
|
|
216
|
-
|
|
217
|
-
Prepublish = "prepublish",
|
|
218
|
-
BuildStacks = "build-stacks",
|
|
226
|
+
BuildStacks = "build/stacks",
|
|
219
227
|
BuildComponentLibs = "build-component-libs",
|
|
220
228
|
BuildVueComponentLib = "build-vue-component-lib",
|
|
221
229
|
BuildWebComponentLib = "build-web-component-lib",
|
|
222
230
|
BuildCli = "build-cli",
|
|
223
|
-
BuildCore = "build
|
|
231
|
+
BuildCore = "build/core",
|
|
224
232
|
BuildDocs = "build-docs",
|
|
225
233
|
BuildFunctionLib = "build-function-lib",
|
|
226
234
|
Changelog = "changelog",
|
|
235
|
+
Clean = "clean",
|
|
236
|
+
DevComponents = "dev/components",
|
|
237
|
+
DevDocs = "dev/docs",
|
|
238
|
+
Deploy = "deploy",
|
|
227
239
|
Fresh = "fresh",
|
|
228
240
|
GeneratePackageJsons = "generate-package-jsons",
|
|
229
241
|
GenerateSettings = "generate-settings",
|
|
230
242
|
GenerateOnboarding = "generate-onboarding",
|
|
231
|
-
|
|
232
|
-
|
|
243
|
+
Inspire = "inspire",
|
|
244
|
+
KeyGenerate = "key-generate",
|
|
245
|
+
MakeNotification = "make-notification",
|
|
246
|
+
Migrate = "migrate",
|
|
247
|
+
Seed = "seed",
|
|
248
|
+
Lint = "lint/index",
|
|
249
|
+
LintFix = "lint/fix",
|
|
250
|
+
Prepublish = "prepublish",
|
|
251
|
+
Release = "release",
|
|
252
|
+
ShowFeatureTestReport = "show-feature-test-report",
|
|
233
253
|
Test = "test",
|
|
234
254
|
TestUi = "test-ui",
|
|
235
255
|
TestUnit = "test-unit",
|
|
236
256
|
TestFeature = "test-feature",
|
|
237
257
|
TestCoverage = "test-coverage",
|
|
238
|
-
|
|
258
|
+
Tinker = "tinker",
|
|
239
259
|
Typecheck = "typecheck",
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
260
|
+
Upgrade = "upgrade/index",
|
|
261
|
+
UpgradeNode = "upgrade/node",
|
|
262
|
+
UpgradePackageManager = "upgrade/package-manager"
|
|
243
263
|
}
|
|
244
264
|
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
|
|
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["
|
|
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["
|
|
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
|
|
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["
|
|
69
|
-
Action2["
|
|
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["
|
|
82
|
+
Action2["Tinker"] = "tinker";
|
|
76
83
|
Action2["Typecheck"] = "typecheck";
|
|
77
|
-
Action2["
|
|
78
|
-
Action2["
|
|
79
|
-
Action2["
|
|
84
|
+
Action2["Upgrade"] = "upgrade/index";
|
|
85
|
+
Action2["UpgradeNode"] = "upgrade/node";
|
|
86
|
+
Action2["UpgradePackageManager"] = "upgrade/package-manager";
|
|
80
87
|
return Action2;
|
|
81
88
|
})(Action || {});
|
package/dist/components.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
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
|
package/dist/database.d.ts
CHANGED
|
@@ -1,2 +1,32 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export type DatabaseClient =
|
|
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
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
|
|
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/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
|
|
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
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
export * from './app';
|
|
2
2
|
export * from './auto-imports';
|
|
3
3
|
export * from './build';
|
|
4
|
-
export * from './
|
|
4
|
+
export * from './cache';
|
|
5
|
+
export * from './cdn';
|
|
5
6
|
export * from './cli';
|
|
7
|
+
export * from './components';
|
|
8
|
+
export * from './cron-jobs';
|
|
6
9
|
export * from './database';
|
|
7
|
-
export * from './deploy';
|
|
8
10
|
export * from './debug';
|
|
11
|
+
export * from './deploy';
|
|
12
|
+
export * from './dns';
|
|
9
13
|
export * from './docs';
|
|
10
14
|
export * from './errors';
|
|
11
15
|
export * from './events';
|
|
@@ -19,13 +23,17 @@ export * from './layout';
|
|
|
19
23
|
export * from './library';
|
|
20
24
|
export * from './manifest';
|
|
21
25
|
export * from './markdown';
|
|
26
|
+
export * from './model';
|
|
22
27
|
export * from './notifications';
|
|
23
28
|
export * from './pages';
|
|
29
|
+
export * from './payments';
|
|
24
30
|
export * from './promise';
|
|
25
31
|
export * from './pwa';
|
|
26
32
|
export * from './reactivity';
|
|
33
|
+
export * from './router';
|
|
27
34
|
export * from './search-engine';
|
|
28
35
|
export * from './ssg';
|
|
36
|
+
export * from './stacks';
|
|
29
37
|
export * from './tables';
|
|
30
38
|
export * from './ui';
|
|
31
39
|
export * from './utils';
|