@onexapis/cli 1.0.0 → 1.0.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 +197 -214
- package/dist/cli.js +423 -183
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +422 -184
- package/dist/cli.mjs.map +1 -1
- package/dist/index.d.mts +25 -2
- package/dist/index.d.ts +25 -2
- package/dist/index.js +418 -184
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +416 -186
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -1
package/dist/index.d.mts
CHANGED
|
@@ -44,9 +44,14 @@ interface UploadOptions {
|
|
|
44
44
|
version?: string;
|
|
45
45
|
environment?: "staging" | "production";
|
|
46
46
|
dryRun?: boolean;
|
|
47
|
+
skipSource?: boolean;
|
|
48
|
+
sourceDir?: string;
|
|
47
49
|
}
|
|
48
50
|
/**
|
|
49
|
-
* Upload theme to S3
|
|
51
|
+
* Upload theme to S3 as zip files
|
|
52
|
+
*
|
|
53
|
+
* Creates bundle.zip (compiled output) and source.zip (theme source code),
|
|
54
|
+
* then uploads both to S3. Much faster than uploading 100+ individual files.
|
|
50
55
|
*/
|
|
51
56
|
declare function uploadCommand(options: UploadOptions): Promise<void>;
|
|
52
57
|
|
|
@@ -59,9 +64,27 @@ interface DownloadOptions {
|
|
|
59
64
|
}
|
|
60
65
|
/**
|
|
61
66
|
* Download theme from S3
|
|
67
|
+
*
|
|
68
|
+
* Downloads bundle.zip (single S3 request) and extracts all files locally.
|
|
69
|
+
* Much faster than downloading 100+ individual files.
|
|
62
70
|
*/
|
|
63
71
|
declare function downloadCommand(options: DownloadOptions): Promise<void>;
|
|
64
72
|
|
|
73
|
+
interface CloneOptions {
|
|
74
|
+
version?: string;
|
|
75
|
+
output?: string;
|
|
76
|
+
bucket?: string;
|
|
77
|
+
environment?: "staging" | "production";
|
|
78
|
+
install?: boolean;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Clone theme source code from S3
|
|
82
|
+
*
|
|
83
|
+
* Downloads source.zip and extracts it to a local directory.
|
|
84
|
+
* Intended for theme developers who want to fork or customize a theme.
|
|
85
|
+
*/
|
|
86
|
+
declare function cloneCommand(themeName: string, options: CloneOptions): Promise<void>;
|
|
87
|
+
|
|
65
88
|
declare class Logger {
|
|
66
89
|
private spinner;
|
|
67
90
|
success(message: string): void;
|
|
@@ -164,4 +187,4 @@ declare function validateCategory(category: string): boolean;
|
|
|
164
187
|
*/
|
|
165
188
|
declare function getValidCategories(): string[];
|
|
166
189
|
|
|
167
|
-
export { Logger, buildCommand, copyTemplate, createBlockCommand, createComponentCommand, createSectionCommand, detectPackageManager, downloadCommand, ensureOneXProject, getFeaturesDir, getProjectRoot, getThemesDir, getValidCategories, initCommand, installDependencies, isOneXProject, listCommand, listThemes, logger, pathExists, renderTemplate, themeExists, toCamelCase, toKebabCase, toPascalCase, uploadCommand, validateCategory, validateName, validateThemeName, writeFile };
|
|
190
|
+
export { Logger, buildCommand, cloneCommand, copyTemplate, createBlockCommand, createComponentCommand, createSectionCommand, detectPackageManager, downloadCommand, ensureOneXProject, getFeaturesDir, getProjectRoot, getThemesDir, getValidCategories, initCommand, installDependencies, isOneXProject, listCommand, listThemes, logger, pathExists, renderTemplate, themeExists, toCamelCase, toKebabCase, toPascalCase, uploadCommand, validateCategory, validateName, validateThemeName, writeFile };
|
package/dist/index.d.ts
CHANGED
|
@@ -44,9 +44,14 @@ interface UploadOptions {
|
|
|
44
44
|
version?: string;
|
|
45
45
|
environment?: "staging" | "production";
|
|
46
46
|
dryRun?: boolean;
|
|
47
|
+
skipSource?: boolean;
|
|
48
|
+
sourceDir?: string;
|
|
47
49
|
}
|
|
48
50
|
/**
|
|
49
|
-
* Upload theme to S3
|
|
51
|
+
* Upload theme to S3 as zip files
|
|
52
|
+
*
|
|
53
|
+
* Creates bundle.zip (compiled output) and source.zip (theme source code),
|
|
54
|
+
* then uploads both to S3. Much faster than uploading 100+ individual files.
|
|
50
55
|
*/
|
|
51
56
|
declare function uploadCommand(options: UploadOptions): Promise<void>;
|
|
52
57
|
|
|
@@ -59,9 +64,27 @@ interface DownloadOptions {
|
|
|
59
64
|
}
|
|
60
65
|
/**
|
|
61
66
|
* Download theme from S3
|
|
67
|
+
*
|
|
68
|
+
* Downloads bundle.zip (single S3 request) and extracts all files locally.
|
|
69
|
+
* Much faster than downloading 100+ individual files.
|
|
62
70
|
*/
|
|
63
71
|
declare function downloadCommand(options: DownloadOptions): Promise<void>;
|
|
64
72
|
|
|
73
|
+
interface CloneOptions {
|
|
74
|
+
version?: string;
|
|
75
|
+
output?: string;
|
|
76
|
+
bucket?: string;
|
|
77
|
+
environment?: "staging" | "production";
|
|
78
|
+
install?: boolean;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Clone theme source code from S3
|
|
82
|
+
*
|
|
83
|
+
* Downloads source.zip and extracts it to a local directory.
|
|
84
|
+
* Intended for theme developers who want to fork or customize a theme.
|
|
85
|
+
*/
|
|
86
|
+
declare function cloneCommand(themeName: string, options: CloneOptions): Promise<void>;
|
|
87
|
+
|
|
65
88
|
declare class Logger {
|
|
66
89
|
private spinner;
|
|
67
90
|
success(message: string): void;
|
|
@@ -164,4 +187,4 @@ declare function validateCategory(category: string): boolean;
|
|
|
164
187
|
*/
|
|
165
188
|
declare function getValidCategories(): string[];
|
|
166
189
|
|
|
167
|
-
export { Logger, buildCommand, copyTemplate, createBlockCommand, createComponentCommand, createSectionCommand, detectPackageManager, downloadCommand, ensureOneXProject, getFeaturesDir, getProjectRoot, getThemesDir, getValidCategories, initCommand, installDependencies, isOneXProject, listCommand, listThemes, logger, pathExists, renderTemplate, themeExists, toCamelCase, toKebabCase, toPascalCase, uploadCommand, validateCategory, validateName, validateThemeName, writeFile };
|
|
190
|
+
export { Logger, buildCommand, cloneCommand, copyTemplate, createBlockCommand, createComponentCommand, createSectionCommand, detectPackageManager, downloadCommand, ensureOneXProject, getFeaturesDir, getProjectRoot, getThemesDir, getValidCategories, initCommand, installDependencies, isOneXProject, listCommand, listThemes, logger, pathExists, renderTemplate, themeExists, toCamelCase, toKebabCase, toPascalCase, uploadCommand, validateCategory, validateName, validateThemeName, writeFile };
|