-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
54 lines (52 loc) · 1.45 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
export interface CLISchemaObject {
[x: string]: (boolean | string)[] | boolean | string | undefined
/**
* Hides all the output from the tool.
*
* @defaultValue `false`
*/
silent?: boolean
}
export interface BarrellyOptions extends CLISchemaObject {
/**
* Extension aliases handled by the bundler.
*
* @defaultValue `[]`
*/
aliases?: string[]
/**
* Flag deciding whether the tool should export everything or just have the barrel files internally. This is necessary for libraries and subfolders.
*
* @defaultValue `false`
*/
exportEverything?: boolean
/**
* Glob describing the extension of every file to walk through.
*
* @defaultValue `.ts`
*/
glob?: string
/**
* Folders to ignore from the barrel file tree
*
* @defaultValue '[]'
*/
ignore?: string[]
/**
* The target folder as the root folder for the barrel file tree.
*
* @defaultValue `./src`
*/
path: string
/**
* Flag deciding whether the barrel file should use a semicolon (;) at the end of every line or not.
*/
semi?: boolean
}
/**
* Starts the CLI-Tool `barrelly`. This tool will go through the entire file tree of the given path in the options and create a barrel file
* for each folder
*
* @param options - the options for this tool.
*/
export default function run(options: BarrellyOptions): Promise<void>