|
1 | 1 | import { publish as _publish } from './publish';
|
2 | 2 | import { packageCommand, listFiles as _listFiles } from './package';
|
3 | 3 |
|
4 |
| -export interface ICreateVSIXOptions { |
| 4 | +export interface IVSIXOptions { |
5 | 5 | /**
|
6 |
| - * The location of the extension in the file system. |
7 |
| - * |
8 |
| - * Defaults to `process.cwd()`. |
| 6 | + * The base URL for links detected in Markdown files. |
9 | 7 | */
|
10 |
| - cwd?: string; |
| 8 | + baseContentUrl?: string; |
11 | 9 |
|
12 | 10 | /**
|
13 |
| - * The destination of the packaged the VSIX. |
14 |
| - * |
15 |
| - * Defaults to `NAME-VERSION.vsix`. |
| 11 | + * The base URL for images detected in Markdown files. |
16 | 12 | */
|
17 |
| - packagePath?: string; |
| 13 | + baseImagesUrl?: string; |
18 | 14 |
|
19 | 15 | /**
|
20 |
| - * The base URL for links detected in Markdown files. |
| 16 | + * Github branch used to publish the package. Used to automatically infer |
| 17 | + * the base content and images URI. |
21 | 18 | */
|
22 |
| - baseContentUrl?: string; |
| 19 | + githubBranch?: string; |
23 | 20 |
|
24 | 21 | /**
|
25 |
| - * The base URL for images detected in Markdown files. |
| 22 | + * Gitlab branch used to publish the package. Used to automatically infer |
| 23 | + * the base content and images URI. |
26 | 24 | */
|
27 |
| - baseImagesUrl?: string; |
| 25 | + gitlabBranch?: string; |
28 | 26 |
|
29 | 27 | /**
|
30 | 28 | * Should use Yarn instead of NPM.
|
31 | 29 | */
|
32 | 30 | useYarn?: boolean;
|
33 | 31 | }
|
34 | 32 |
|
| 33 | +export interface ICreateVSIXOptions extends IVSIXOptions { |
| 34 | + /** |
| 35 | + * The location of the extension in the file system. |
| 36 | + * |
| 37 | + * Defaults to `process.cwd()`. |
| 38 | + */ |
| 39 | + cwd?: string; |
| 40 | + |
| 41 | + /** |
| 42 | + * The destination of the packaged the VSIX. |
| 43 | + * |
| 44 | + * Defaults to `NAME-VERSION.vsix`. |
| 45 | + */ |
| 46 | + packagePath?: string; |
| 47 | +} |
| 48 | + |
35 | 49 | export interface IPublishOptions {
|
36 | 50 | /**
|
37 | 51 | * The location of the extension in the file system.
|
@@ -97,28 +111,13 @@ export interface IListFilesOptions {
|
97 | 111 | ignoreFile?: string;
|
98 | 112 | }
|
99 | 113 |
|
100 |
| -export interface IPublishVSIXOptions { |
| 114 | +export interface IPublishVSIXOptions extends IVSIXOptions { |
101 | 115 | /**
|
102 | 116 | * The Personal Access Token to use.
|
103 | 117 | *
|
104 | 118 | * Defaults to the stored one.
|
105 | 119 | */
|
106 | 120 | pat?: string;
|
107 |
| - |
108 |
| - /** |
109 |
| - * The base URL for links detected in Markdown files. |
110 |
| - */ |
111 |
| - baseContentUrl?: string; |
112 |
| - |
113 |
| - /** |
114 |
| - * The base URL for images detected in Markdown files. |
115 |
| - */ |
116 |
| - baseImagesUrl?: string; |
117 |
| - |
118 |
| - /** |
119 |
| - * Should use Yarn instead of NPM. |
120 |
| - */ |
121 |
| - useYarn?: boolean; |
122 | 121 | }
|
123 | 122 |
|
124 | 123 | /**
|
|
0 commit comments