@stacksjs/types 0.37.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/app.d.ts +119 -0
- package/dist/app.mjs +0 -0
- package/dist/auto-imports.d.ts +2 -0
- package/dist/auto-imports.mjs +0 -0
- package/dist/build.d.ts +2 -0
- package/dist/build.mjs +0 -0
- package/dist/cli.d.ts +48 -0
- package/dist/cli.mjs +38 -0
- package/dist/components.d.ts +61 -0
- package/dist/components.mjs +0 -0
- package/dist/deploy.d.ts +11 -0
- package/dist/deploy.mjs +0 -0
- package/dist/docs.d.ts +2 -0
- package/dist/docs.mjs +0 -0
- package/dist/exit-code.d.ts +10 -0
- package/dist/exit-code.mjs +6 -0
- package/dist/fs.d.ts +16 -0
- package/dist/fs.mjs +0 -0
- package/dist/git.d.ts +128 -0
- package/dist/git.mjs +0 -0
- package/dist/hashing.d.ts +101 -0
- package/dist/hashing.mjs +0 -0
- package/dist/i18n.d.ts +19 -0
- package/dist/i18n.mjs +0 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.mjs +21 -0
- package/dist/inspect.d.ts +9 -0
- package/dist/inspect.mjs +0 -0
- package/dist/layout.d.ts +7 -0
- package/dist/layout.mjs +0 -0
- package/dist/library.d.ts +128 -0
- package/dist/library.mjs +0 -0
- package/dist/manifest.d.ts +9 -0
- package/dist/manifest.mjs +0 -0
- package/dist/markdown.d.ts +167 -0
- package/dist/markdown.mjs +0 -0
- package/dist/pages.d.ts +7 -0
- package/dist/pages.mjs +0 -0
- package/dist/pwa.d.ts +7 -0
- package/dist/pwa.mjs +0 -0
- package/dist/ssg.d.ts +2 -0
- package/dist/ssg.mjs +0 -0
- package/dist/ui.d.ts +132 -0
- package/dist/ui.mjs +0 -0
- package/package.json +59 -0
package/LICENSE.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022 Open Web Foundation
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# Stacks Types
|
|
2
|
+
|
|
3
|
+
This package contains the Stacks TypeScript types.
|
|
4
|
+
|
|
5
|
+
## โ๏ธ Features
|
|
6
|
+
|
|
7
|
+
wip
|
|
8
|
+
|
|
9
|
+
- โก๏ธ
|
|
10
|
+
|
|
11
|
+
wip
|
|
12
|
+
|
|
13
|
+
## ๐ค Usage
|
|
14
|
+
|
|
15
|
+
wip
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
pnpm i -D @stacksjs/types
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Now, you can use it in your project:
|
|
22
|
+
|
|
23
|
+
```js
|
|
24
|
+
// import * as types from '@stacksjs/types'
|
|
25
|
+
|
|
26
|
+
// wip
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Learn more in the docs.
|
|
30
|
+
|
|
31
|
+
## ๐งช Testing
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
pnpm test
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## ๐ Changelog
|
|
38
|
+
|
|
39
|
+
Please see our [releases](https://github.com/stacksjs/stacksjs/releases) page for more information on what has changed recently.
|
|
40
|
+
|
|
41
|
+
## ๐ช๐ผ Contributing
|
|
42
|
+
|
|
43
|
+
Please see [CONTRIBUTING](../../.github/CONTRIBUTING.md) for details.
|
|
44
|
+
|
|
45
|
+
## ๐ Community
|
|
46
|
+
|
|
47
|
+
For help, discussion about best practices, or any other conversation that would benefit from being searchable:
|
|
48
|
+
|
|
49
|
+
[Discussions on GitHub](https://github.com/stacksjs/stacks/discussions)
|
|
50
|
+
|
|
51
|
+
For casual chit-chat with others using this package:
|
|
52
|
+
|
|
53
|
+
[Join the Open Web Discord Server](https://discord.ow3.org)
|
|
54
|
+
|
|
55
|
+
## ๐ License
|
|
56
|
+
|
|
57
|
+
The MIT License (MIT). Please see [LICENSE](https://github.com/stacksjs/stacks/tree/main/LICENSE.md) for more information.
|
|
58
|
+
|
|
59
|
+
Made with โค๏ธ
|
package/dist/app.d.ts
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ### Application Options
|
|
3
|
+
*
|
|
4
|
+
* This configuration defines all of your application options. Because Stacks is full-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
|
+
*/
|
|
8
|
+
export interface AppOptions {
|
|
9
|
+
/**
|
|
10
|
+
* ### Application Name
|
|
11
|
+
*
|
|
12
|
+
* This value is the name of your application. This value is used when the
|
|
13
|
+
* framework needs to place the application's name in a log or any
|
|
14
|
+
* other location as required by the application or its packages.
|
|
15
|
+
*
|
|
16
|
+
* @default string "Stacks"
|
|
17
|
+
*/
|
|
18
|
+
name: string;
|
|
19
|
+
/**
|
|
20
|
+
* ### Application Environment
|
|
21
|
+
*
|
|
22
|
+
* This value determines the "environment" your application is currently
|
|
23
|
+
* running in. This may determine how you prefer to configure various
|
|
24
|
+
* services the application utilizes. Set this in your ".env" file
|
|
25
|
+
*
|
|
26
|
+
* @default "local"
|
|
27
|
+
*/
|
|
28
|
+
env?: 'development' | 'production' | 'local';
|
|
29
|
+
/**
|
|
30
|
+
* ### Application URL
|
|
31
|
+
*
|
|
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.
|
|
35
|
+
*
|
|
36
|
+
* @default string "https://localhost"
|
|
37
|
+
* @example
|
|
38
|
+
* https://hello-world.test
|
|
39
|
+
*/
|
|
40
|
+
url?: string;
|
|
41
|
+
/**
|
|
42
|
+
* ### Application Debug Mode
|
|
43
|
+
*
|
|
44
|
+
* When your application is in debug mode, detailed error messages with
|
|
45
|
+
* stack traces will be shown on every error that occurs within your
|
|
46
|
+
* application. If disabled, a simple generic error page is shown.
|
|
47
|
+
*
|
|
48
|
+
* @default false
|
|
49
|
+
*/
|
|
50
|
+
debug: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* ### Application Port
|
|
53
|
+
*
|
|
54
|
+
* This port is used when Stacks creates a server you. You should set
|
|
55
|
+
* a port that's not already in use by your machine. Stacks defaults
|
|
56
|
+
* to a memorable port that likely is free on your end: 3333.
|
|
57
|
+
*
|
|
58
|
+
* @default number 3333
|
|
59
|
+
*/
|
|
60
|
+
port: number;
|
|
61
|
+
/**
|
|
62
|
+
* ### Encryption Key
|
|
63
|
+
*
|
|
64
|
+
* This key is used by the Stacks encrypter service and should be set to
|
|
65
|
+
* a random, 32 character string, otherwise these encrypted strings will
|
|
66
|
+
* not be safe. Please do this before deploying an application!
|
|
67
|
+
*/
|
|
68
|
+
key?: string;
|
|
69
|
+
/**
|
|
70
|
+
* ### Application Timezone
|
|
71
|
+
*
|
|
72
|
+
* Here you may specify the default timezone for your application, which
|
|
73
|
+
* will be used by Stacks and date-time functions. We have gone ahead
|
|
74
|
+
* and set this to a sensible default for you out of the box.
|
|
75
|
+
*
|
|
76
|
+
* @default string "UTC"
|
|
77
|
+
*/
|
|
78
|
+
timezone?: string;
|
|
79
|
+
/**
|
|
80
|
+
* ### Application Locale Configuration
|
|
81
|
+
*
|
|
82
|
+
* The application locale determines the default locale that will be used
|
|
83
|
+
* by the translation service provider. You are free to set this value
|
|
84
|
+
* to any of the locales which will be supported by the application.
|
|
85
|
+
*
|
|
86
|
+
* @default string "en"
|
|
87
|
+
* @example
|
|
88
|
+
* de // ./lang/de.yml needs to be present for this
|
|
89
|
+
*/
|
|
90
|
+
locale?: string;
|
|
91
|
+
/**
|
|
92
|
+
* ### Application Fallback Locale
|
|
93
|
+
*
|
|
94
|
+
* The fallback locale determines the locale to use when the current one
|
|
95
|
+
* is not available. You may change the value to correspond to any of
|
|
96
|
+
* the language folders that are provided through your application.
|
|
97
|
+
*
|
|
98
|
+
* @default string "en"
|
|
99
|
+
*/
|
|
100
|
+
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
|
+
/**
|
|
112
|
+
* ### Cipher
|
|
113
|
+
*
|
|
114
|
+
* Description WIP.
|
|
115
|
+
*
|
|
116
|
+
* @default string "aes-256-cbc"
|
|
117
|
+
*/
|
|
118
|
+
cipher: string;
|
|
119
|
+
}
|
package/dist/app.mjs
ADDED
|
File without changes
|
|
File without changes
|
package/dist/build.d.ts
ADDED
package/dist/build.mjs
ADDED
|
File without changes
|
package/dist/cli.d.ts
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The parsed command-line arguments
|
|
3
|
+
*/
|
|
4
|
+
export interface StacksOptions {
|
|
5
|
+
componentsSrcPath?: string;
|
|
6
|
+
dtsPath?: string;
|
|
7
|
+
extensions?: string[];
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* The available npm scripts within the Stacks toolkit.
|
|
11
|
+
*/
|
|
12
|
+
export declare const enum NpmScript {
|
|
13
|
+
Build = "build",
|
|
14
|
+
BuildComponents = "build:components",
|
|
15
|
+
BuildWebComponents = "build:web-components",
|
|
16
|
+
BuildFunctions = "build:functions",
|
|
17
|
+
BuildDocs = "build:docs",
|
|
18
|
+
BuildStacks = "build:stacks",
|
|
19
|
+
Dev = "dev",
|
|
20
|
+
DevComponents = "dev:components",
|
|
21
|
+
DevDocs = "dev:docs",
|
|
22
|
+
Fresh = "fresh",
|
|
23
|
+
Update = "update",
|
|
24
|
+
UpdateDependencies = "update:dependencies",
|
|
25
|
+
UpdateFramework = "update:framework",
|
|
26
|
+
UpdatePackageManager = "update:package-manager",
|
|
27
|
+
Lint = "lint",
|
|
28
|
+
LintFix = "lint:fix",
|
|
29
|
+
MakeStack = "make:stack",
|
|
30
|
+
Test = "test",
|
|
31
|
+
TestTypes = "test:types",
|
|
32
|
+
TestCoverage = "test:coverage",
|
|
33
|
+
Generate = "generate",
|
|
34
|
+
GenerateEntries = "generate:entries",
|
|
35
|
+
GenerateVueCompat = "generate:vue-compatibility",
|
|
36
|
+
GenerateWebTypes = "generate:web-types",
|
|
37
|
+
GenerateVsCodeCustomData = "generate:vscode-custom-data",
|
|
38
|
+
GenerateIdeHelpers = "generate:ide-helpers",
|
|
39
|
+
GenerateComponentMeta = "generate:component-meta",
|
|
40
|
+
Release = "release",
|
|
41
|
+
Commit = "commit",
|
|
42
|
+
Example = "example",
|
|
43
|
+
ExampleVue = "example:vue",
|
|
44
|
+
ExampleWebComponents = "example:web-components",
|
|
45
|
+
KeyGenerate = "key:generate",
|
|
46
|
+
TypesFix = "types:fix",
|
|
47
|
+
TypesGenerate = "types:generate"
|
|
48
|
+
}
|
package/dist/cli.mjs
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export var NpmScript = /* @__PURE__ */ ((NpmScript2) => {
|
|
2
|
+
NpmScript2["Build"] = "build";
|
|
3
|
+
NpmScript2["BuildComponents"] = "build:components";
|
|
4
|
+
NpmScript2["BuildWebComponents"] = "build:web-components";
|
|
5
|
+
NpmScript2["BuildFunctions"] = "build:functions";
|
|
6
|
+
NpmScript2["BuildDocs"] = "build:docs";
|
|
7
|
+
NpmScript2["BuildStacks"] = "build:stacks";
|
|
8
|
+
NpmScript2["Dev"] = "dev";
|
|
9
|
+
NpmScript2["DevComponents"] = "dev:components";
|
|
10
|
+
NpmScript2["DevDocs"] = "dev:docs";
|
|
11
|
+
NpmScript2["Fresh"] = "fresh";
|
|
12
|
+
NpmScript2["Update"] = "update";
|
|
13
|
+
NpmScript2["UpdateDependencies"] = "update:dependencies";
|
|
14
|
+
NpmScript2["UpdateFramework"] = "update:framework";
|
|
15
|
+
NpmScript2["UpdatePackageManager"] = "update:package-manager";
|
|
16
|
+
NpmScript2["Lint"] = "lint";
|
|
17
|
+
NpmScript2["LintFix"] = "lint:fix";
|
|
18
|
+
NpmScript2["MakeStack"] = "make:stack";
|
|
19
|
+
NpmScript2["Test"] = "test";
|
|
20
|
+
NpmScript2["TestTypes"] = "test:types";
|
|
21
|
+
NpmScript2["TestCoverage"] = "test:coverage";
|
|
22
|
+
NpmScript2["Generate"] = "generate";
|
|
23
|
+
NpmScript2["GenerateEntries"] = "generate:entries";
|
|
24
|
+
NpmScript2["GenerateVueCompat"] = "generate:vue-compatibility";
|
|
25
|
+
NpmScript2["GenerateWebTypes"] = "generate:web-types";
|
|
26
|
+
NpmScript2["GenerateVsCodeCustomData"] = "generate:vscode-custom-data";
|
|
27
|
+
NpmScript2["GenerateIdeHelpers"] = "generate:ide-helpers";
|
|
28
|
+
NpmScript2["GenerateComponentMeta"] = "generate:component-meta";
|
|
29
|
+
NpmScript2["Release"] = "release";
|
|
30
|
+
NpmScript2["Commit"] = "commit";
|
|
31
|
+
NpmScript2["Example"] = "example";
|
|
32
|
+
NpmScript2["ExampleVue"] = "example:vue";
|
|
33
|
+
NpmScript2["ExampleWebComponents"] = "example:web-components";
|
|
34
|
+
NpmScript2["KeyGenerate"] = "key:generate";
|
|
35
|
+
NpmScript2["TypesFix"] = "types:fix";
|
|
36
|
+
NpmScript2["TypesGenerate"] = "types:generate";
|
|
37
|
+
return NpmScript2;
|
|
38
|
+
})(NpmScript || {});
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import type { Options } from 'unplugin-vue-components';
|
|
2
|
+
export interface TagOption {
|
|
3
|
+
/**
|
|
4
|
+
* ### Tag Name
|
|
5
|
+
*
|
|
6
|
+
* This is the name of the component to be included in your library build.
|
|
7
|
+
* When defining a tag, ensure that the name corresponds to a file within
|
|
8
|
+
* root component directory.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* {
|
|
12
|
+
* tags: [{
|
|
13
|
+
* name: 'HelloWorld' // results in `<HelloWorld />`
|
|
14
|
+
* }]
|
|
15
|
+
* }
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* {
|
|
19
|
+
* tags: [{
|
|
20
|
+
* name: ['HelloWorld', 'AppHelloWorld'] // results in `<AppHelloWorld />`
|
|
21
|
+
* }]
|
|
22
|
+
* }
|
|
23
|
+
* @see https://stacksjs.dev/docs/components
|
|
24
|
+
*/
|
|
25
|
+
name: string | string[];
|
|
26
|
+
/**
|
|
27
|
+
* ### Tag Description
|
|
28
|
+
*
|
|
29
|
+
* This is the description of your component. This value is
|
|
30
|
+
* used when to provide additional information to IDEs.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* {
|
|
34
|
+
* name: 'HelloWorld' // results in `<HelloWorld />`
|
|
35
|
+
* }
|
|
36
|
+
* @see https://stacksjs.dev/docs/components
|
|
37
|
+
*/
|
|
38
|
+
description?: string;
|
|
39
|
+
/**
|
|
40
|
+
* ### Tag Attributes
|
|
41
|
+
*
|
|
42
|
+
* These are your component's attributes. While it's an optional field, you should aim
|
|
43
|
+
* to define all of your component attributes here, to provide as much context
|
|
44
|
+
* to your IDEs as possible, when actually using the library as an end-user.
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* {
|
|
48
|
+
* attributes: {
|
|
49
|
+
* name: 'greeting',
|
|
50
|
+
* description: 'The way to greet the user.',
|
|
51
|
+
* }
|
|
52
|
+
* }
|
|
53
|
+
* @see https://stacksjs.dev/docs/components
|
|
54
|
+
*/
|
|
55
|
+
attributes?: {
|
|
56
|
+
name: string;
|
|
57
|
+
description: string;
|
|
58
|
+
}[];
|
|
59
|
+
}
|
|
60
|
+
export declare type TagsOptions = TagOption[];
|
|
61
|
+
export declare type ComponentOptions = Options;
|
|
File without changes
|
package/dist/deploy.d.ts
ADDED
package/dist/deploy.mjs
ADDED
|
File without changes
|
package/dist/docs.d.ts
ADDED
package/dist/docs.mjs
ADDED
|
File without changes
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export var ExitCode = /* @__PURE__ */ ((ExitCode2) => {
|
|
2
|
+
ExitCode2[ExitCode2["Success"] = 0] = "Success";
|
|
3
|
+
ExitCode2[ExitCode2["FatalError"] = 1] = "FatalError";
|
|
4
|
+
ExitCode2[ExitCode2["InvalidArgument"] = 9] = "InvalidArgument";
|
|
5
|
+
return ExitCode2;
|
|
6
|
+
})(ExitCode || {});
|
package/dist/fs.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Describes a plain-text file.
|
|
3
|
+
*/
|
|
4
|
+
export interface TextFile {
|
|
5
|
+
path: string;
|
|
6
|
+
data: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Describes a JSON file.
|
|
10
|
+
*/
|
|
11
|
+
export interface JsonFile {
|
|
12
|
+
path: string;
|
|
13
|
+
data: unknown;
|
|
14
|
+
indent: string;
|
|
15
|
+
newline: string | undefined;
|
|
16
|
+
}
|
package/dist/fs.mjs
ADDED
|
File without changes
|
package/dist/git.d.ts
ADDED
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ### Git Options
|
|
3
|
+
*
|
|
4
|
+
* This configuration defines all of your git options. Because Stacks is full-typed, you may
|
|
5
|
+
* hover any of the options below and the definitions will be provided. In case you
|
|
6
|
+
* have any questions, feel free to reach out via Discord or GitHub Discussions.
|
|
7
|
+
*/
|
|
8
|
+
export interface GitOptions {
|
|
9
|
+
/**
|
|
10
|
+
* ### Git Hooks
|
|
11
|
+
*
|
|
12
|
+
* The git hooks to use.
|
|
13
|
+
*
|
|
14
|
+
* @see https://git-scm.com/docs/githooks
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* git: {
|
|
18
|
+
* hooks: {
|
|
19
|
+
* 'pre-commit': 'lint-staged',
|
|
20
|
+
* }
|
|
21
|
+
* }
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
hooks: GitHooks;
|
|
25
|
+
/**
|
|
26
|
+
* ### Git Commit Scopes
|
|
27
|
+
*
|
|
28
|
+
* The git commit scopes to use.
|
|
29
|
+
*
|
|
30
|
+
* @see https://stacksjs.dev/docs/git/scopes
|
|
31
|
+
* @example
|
|
32
|
+
* git: [
|
|
33
|
+
* scopes: [
|
|
34
|
+
* '', 'ci', 'deps', 'dx', 'release', 'readme', 'test', 'actions', 'build', 'cli',
|
|
35
|
+
* 'config', 'examples', 'functions', 'modules', 'pages', 'router', 'scripts',
|
|
36
|
+
* 'ui', 'utils', 'arrays', 'collections', 'fs', 'objects', 'strings',
|
|
37
|
+
* ]
|
|
38
|
+
* ]
|
|
39
|
+
*/
|
|
40
|
+
scopes: string[];
|
|
41
|
+
/**
|
|
42
|
+
* ### Git Commit Types
|
|
43
|
+
*
|
|
44
|
+
* The git commit types to use.
|
|
45
|
+
*
|
|
46
|
+
* @default array
|
|
47
|
+
* @see https://stacksjs.dev/docs/git/types
|
|
48
|
+
* @see https://www.conventionalcommits.org/en/v1.0.0/
|
|
49
|
+
* @example
|
|
50
|
+
* ```ts
|
|
51
|
+
* git: [
|
|
52
|
+
* types: [
|
|
53
|
+
* 'build', 'chore', 'ci', 'docs', 'feat', 'fix', 'perf', 'refactor', 'revert', 'style', 'test',
|
|
54
|
+
* ]
|
|
55
|
+
* ]
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
types: {
|
|
59
|
+
value: string;
|
|
60
|
+
name: string;
|
|
61
|
+
emoji: string;
|
|
62
|
+
}[];
|
|
63
|
+
/**
|
|
64
|
+
* ### MessagesโOptions
|
|
65
|
+
*
|
|
66
|
+
* The git messages/prompts to use.
|
|
67
|
+
*
|
|
68
|
+
* @default object
|
|
69
|
+
* @example
|
|
70
|
+
* ```ts
|
|
71
|
+
* messages: {
|
|
72
|
+
* type: 'Select the type of change that you\'re committing:',
|
|
73
|
+
* scope: 'Denote the SCOPE of this change:',
|
|
74
|
+
* subject: 'Write a SHORT, IMPERATIVE tense description of the change:\n',
|
|
75
|
+
* body: 'Provide a LONGER description of the change (optional). Use "|" to break new line:\n',
|
|
76
|
+
* breaking: 'List any BREAKING CHANGES (optional):\n',
|
|
77
|
+
* footer: 'List any ISSUES CLOSED by this change (optional). E.g.: #31, #34:\n',
|
|
78
|
+
* confirmCommit: 'Are you sure you want to proceed with the commit above?',
|
|
79
|
+
* }
|
|
80
|
+
* ```
|
|
81
|
+
* @see https://stacksjs.dev/docs/git/messages
|
|
82
|
+
*/
|
|
83
|
+
messages: {
|
|
84
|
+
type: string;
|
|
85
|
+
scope: string;
|
|
86
|
+
customScope: string;
|
|
87
|
+
subject: string;
|
|
88
|
+
body: string;
|
|
89
|
+
breaking: string;
|
|
90
|
+
footerPrefixsSelect: string;
|
|
91
|
+
customFooterPrefixs: string;
|
|
92
|
+
footer: string;
|
|
93
|
+
confirmCommit: string;
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
interface Hooks {
|
|
97
|
+
'applypatch-msg'?: string;
|
|
98
|
+
'pre-applypatch'?: string;
|
|
99
|
+
'post-applypatch'?: string;
|
|
100
|
+
'pre-commit'?: string;
|
|
101
|
+
'pre-merge-commit'?: string;
|
|
102
|
+
'prepare-commit-msg'?: string;
|
|
103
|
+
'commit-msg'?: string;
|
|
104
|
+
'post-commit'?: string;
|
|
105
|
+
'pre-rebase'?: string;
|
|
106
|
+
'post-checkout'?: string;
|
|
107
|
+
'post-merge'?: string;
|
|
108
|
+
'pre-push'?: string;
|
|
109
|
+
'pre-receive'?: string;
|
|
110
|
+
'update'?: string;
|
|
111
|
+
'proc-receive'?: string;
|
|
112
|
+
'post-receive'?: string;
|
|
113
|
+
'post-update'?: string;
|
|
114
|
+
'reference-transaction'?: string;
|
|
115
|
+
'push-to-checkout'?: string;
|
|
116
|
+
'pre-auto-gc'?: string;
|
|
117
|
+
'post-rewrite'?: string;
|
|
118
|
+
'sendemail-validate'?: string;
|
|
119
|
+
'fsmonitor-watchman'?: string;
|
|
120
|
+
'p4-changelist'?: string;
|
|
121
|
+
'p4-prepare-changelist'?: string;
|
|
122
|
+
'p4-post-changelist'?: string;
|
|
123
|
+
'p4-pre-submit'?: string;
|
|
124
|
+
'post-index-change'?: string;
|
|
125
|
+
}
|
|
126
|
+
export interface GitHooks extends Hooks {
|
|
127
|
+
}
|
|
128
|
+
export {};
|
package/dist/git.mjs
ADDED
|
File without changes
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Stacks runtime provides secure Bcrypt & Argon2 hashing for storing user passwords.
|
|
3
|
+
* If you are using one of the Laravel application starter kits, Bcrypt will be used for
|
|
4
|
+
* registration and authentication by default.
|
|
5
|
+
*
|
|
6
|
+
* Bcrypt is a great choice for hashing passwords because its "work factor" is adjustable, which
|
|
7
|
+
* means that the time it takes to generate a hash can be increased as hardware power increases.
|
|
8
|
+
* When hashing passwords, slow is good. The longer an algorithm takes to hash a password, the
|
|
9
|
+
* longer it takes malicious users to generate "rainbow tables" of all possible string hash
|
|
10
|
+
* values that may be used in brute force attacks against applications.
|
|
11
|
+
*
|
|
12
|
+
* @see https://stacksjs.dev/docs/hashing
|
|
13
|
+
*/
|
|
14
|
+
export interface HashingOptions {
|
|
15
|
+
/**
|
|
16
|
+
* ### Hashing Driver
|
|
17
|
+
*
|
|
18
|
+
* This option controls the default hash driver that will be used to hash
|
|
19
|
+
* passwords for your application. By default, the bcrypt algorithm is
|
|
20
|
+
* used; however, you remain free to modify this option if you wish.
|
|
21
|
+
*
|
|
22
|
+
* @see https://stacksjs.dev/docs/hashing
|
|
23
|
+
*/
|
|
24
|
+
driver: 'argon' | 'bcrypt';
|
|
25
|
+
/**
|
|
26
|
+
* ### Bcrypt Option
|
|
27
|
+
*
|
|
28
|
+
* Here you may specify the configuration options that should be used when
|
|
29
|
+
* passwords are hashed using the Bcrypt algorithm. This will allow you
|
|
30
|
+
* to control the amount of time it takes to hash the given password.
|
|
31
|
+
*
|
|
32
|
+
* @see https://stacksjs.dev/docs/hashing
|
|
33
|
+
*/
|
|
34
|
+
bcrypt?: BcryptOptions;
|
|
35
|
+
/**
|
|
36
|
+
* ### Argon Options
|
|
37
|
+
*
|
|
38
|
+
* Here you may specify the configuration options that should be used when
|
|
39
|
+
* passwords are hashed using the Argon algorithm. These will allow you
|
|
40
|
+
* to control the amount of time it takes to hash the given password.
|
|
41
|
+
*
|
|
42
|
+
* @see https://stacksjs.dev/docs/hashing
|
|
43
|
+
*/
|
|
44
|
+
argon?: ArgonOptions;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* ### Bcrypt Options
|
|
48
|
+
*
|
|
49
|
+
* Here you may specify the configuration options that should be used when
|
|
50
|
+
* passwords are hashed using the Bcrypt algorithm. This will allow you
|
|
51
|
+
* to control the amount of time it takes to hash the given password.
|
|
52
|
+
*
|
|
53
|
+
* @see https://stacksjs.dev/docs/hashing
|
|
54
|
+
*/
|
|
55
|
+
export interface BcryptOptions {
|
|
56
|
+
/**
|
|
57
|
+
* Bcrypt salt rounds.
|
|
58
|
+
*
|
|
59
|
+
* @default number 10
|
|
60
|
+
* @see https://stacksjs.dev/docs/hashing
|
|
61
|
+
*/
|
|
62
|
+
rounds?: number;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* ### Argon Options
|
|
66
|
+
*
|
|
67
|
+
* Here you may specify the configuration options that should be used when
|
|
68
|
+
* passwords are hashed using the Argon algorithm. These will allow you
|
|
69
|
+
* to control the amount of time it takes to hash the given password.
|
|
70
|
+
*
|
|
71
|
+
* @see https://stacksjs.dev/docs/hashing
|
|
72
|
+
*/
|
|
73
|
+
export interface ArgonOptions {
|
|
74
|
+
/**
|
|
75
|
+
* ### Argon Memory
|
|
76
|
+
*
|
|
77
|
+
* Amount of memory (in kibibytes) to use.
|
|
78
|
+
*
|
|
79
|
+
* @default number 65536
|
|
80
|
+
* @see https://stacksjs.dev/docs/hashing
|
|
81
|
+
*/
|
|
82
|
+
memory?: number;
|
|
83
|
+
/**
|
|
84
|
+
* ### Argon Parallelism
|
|
85
|
+
*
|
|
86
|
+
* Degree of parallelism (i.e. number of threads).
|
|
87
|
+
*
|
|
88
|
+
* @default number 1
|
|
89
|
+
* @see https://stacksjs.dev/docs/hashing
|
|
90
|
+
*/
|
|
91
|
+
threads?: number;
|
|
92
|
+
/**
|
|
93
|
+
* ### Argon time
|
|
94
|
+
*
|
|
95
|
+
* Execution time.
|
|
96
|
+
*
|
|
97
|
+
* @default number 1
|
|
98
|
+
* @see https://stacksjs.dev/docs/hashing
|
|
99
|
+
*/
|
|
100
|
+
time?: number;
|
|
101
|
+
}
|
package/dist/hashing.mjs
ADDED
|
File without changes
|
package/dist/i18n.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
interface VitePluginVueI18nOptions {
|
|
2
|
+
forceStringify?: boolean;
|
|
3
|
+
runtimeOnly?: boolean;
|
|
4
|
+
compositionOnly?: boolean;
|
|
5
|
+
fullInstall?: boolean;
|
|
6
|
+
include?: string | string[];
|
|
7
|
+
defaultSFCLang?: 'json' | 'json5' | 'yml' | 'yaml';
|
|
8
|
+
globalSFCScope?: boolean;
|
|
9
|
+
useVueI18nImportName?: boolean;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* ### Internationalization Options
|
|
13
|
+
*
|
|
14
|
+
* The i18n option.
|
|
15
|
+
*
|
|
16
|
+
* @see https://github.com/intlify/bundle-tools/blob/main/packages/vite-plugin-vue-i18n/src/options.ts
|
|
17
|
+
*/
|
|
18
|
+
export declare type i18nOptions = VitePluginVueI18nOptions;
|
|
19
|
+
export {};
|
package/dist/i18n.mjs
ADDED
|
File without changes
|