hokit 1.2.2-beta.1 → 1.2.3-beta.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 +9 -4
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -16,21 +16,26 @@ bun add hokit --dev
|
|
|
16
16
|
|
|
17
17
|
## Usage
|
|
18
18
|
|
|
19
|
-

|
|
20
20
|
|
|
21
21
|
Build your snippets:
|
|
22
22
|
|
|
23
|
-

|
|
24
|
+
|
|
25
|
+
Scripts:
|
|
26
|
+
|
|
27
|
+

|
|
24
28
|
|
|
25
29
|
Run:
|
|
26
30
|
|
|
27
31
|
```sh
|
|
28
|
-
bun run build
|
|
32
|
+
bun run build # or
|
|
33
|
+
bun run lint
|
|
29
34
|
```
|
|
30
35
|
|
|
31
36
|
Generated output:
|
|
32
37
|
|
|
33
|
-

|
|
34
39
|
|
|
35
40
|
<div align="right">
|
|
36
41
|
<img src="https://xgjzloifyvgpbmyonaya.supabase.co/storage/v1/object/public/files/CLkIt_6NNL/original" alt="Logo" width="50">
|
package/dist/index.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ interface Config {
|
|
|
31
31
|
output: string;
|
|
32
32
|
snippets: SnippetBuilder[];
|
|
33
33
|
}
|
|
34
|
-
declare function
|
|
34
|
+
declare function defineConfig(config: Config): Config;
|
|
35
35
|
//#endregion
|
|
36
36
|
//#region src/build.d.ts
|
|
37
37
|
declare function build(...config: Config[]): Promise<void>;
|
|
@@ -42,7 +42,7 @@ interface HokitConfig {
|
|
|
42
42
|
}
|
|
43
43
|
//#endregion
|
|
44
44
|
//#region src/define-hokit-config.d.ts
|
|
45
|
-
declare function
|
|
45
|
+
declare function defineHokitConfig(config: HokitConfig): HokitConfig;
|
|
46
46
|
//#endregion
|
|
47
47
|
//#region src/lint.d.ts
|
|
48
48
|
declare function lint(...configs: Config[]): Promise<void>;
|
|
@@ -52,4 +52,4 @@ declare abstract class Registry {
|
|
|
52
52
|
static name(name: string): SnippetBuilder;
|
|
53
53
|
}
|
|
54
54
|
//#endregion
|
|
55
|
-
export { HokitConfig, Registry, type Snippet, build,
|
|
55
|
+
export { HokitConfig, Registry, type Snippet, build, defineConfig, defineHokitConfig, lint };
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e,t}from"./lint-CMzvqp4X.js";function n(e){return e}function r(e){return e}var i=class{snippet={};name(e){return this.snippet.name=e,this}scope(e){return this.snippet.scope=[...e].sort(),this}prefix(e){return this.snippet.prefix=e,this}body(e){return this.snippet.body=e,this}describe(e){return this.snippet.description=e,this}template(e=!0){return this.snippet.isFileTemplate=e,this}tag(e){return this.snippet.tags=e,this}build(){return this.snippet}},a=class{static name(e){return new i().name(e)}};export{a as Registry,e as build,n as
|
|
1
|
+
import{n as e,t}from"./lint-CMzvqp4X.js";function n(e){return e}function r(e){return e}var i=class{snippet={};name(e){return this.snippet.name=e,this}scope(e){return this.snippet.scope=[...e].sort(),this}prefix(e){return this.snippet.prefix=e,this}body(e){return this.snippet.body=e,this}describe(e){return this.snippet.description=e,this}template(e=!0){return this.snippet.isFileTemplate=e,this}tag(e){return this.snippet.tags=e,this}build(){return this.snippet}},a=class{static name(e){return new i().name(e)}};export{a as Registry,e as build,n as defineConfig,r as defineHokitConfig,t as lint};
|