@onexapis/cli 1.1.45 → 1.1.46
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/dist/cli.js +220 -12
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +220 -12
- package/dist/cli.mjs.map +1 -1
- package/dist/index.d.mts +6 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/templates/default/.cursorrules +126 -0
- package/templates/default/AGENTS.md +126 -0
- package/templates/default/CLAUDE.md +88 -1726
- package/templates/default/THEME_REFERENCE.md +1764 -0
package/dist/index.d.mts
CHANGED
|
@@ -134,6 +134,11 @@ declare function renderTemplate(templatePath: string, data: Record<string, unkno
|
|
|
134
134
|
* Write a file with directory creation
|
|
135
135
|
*/
|
|
136
136
|
declare function writeFile(filePath: string, content: string): Promise<void>;
|
|
137
|
+
/**
|
|
138
|
+
* Get the templates directory
|
|
139
|
+
* Works in both development and production (bundled) environments
|
|
140
|
+
*/
|
|
141
|
+
declare function getTemplatesDir(): string;
|
|
137
142
|
/**
|
|
138
143
|
* Copy template directory
|
|
139
144
|
*/
|
|
@@ -212,4 +217,4 @@ declare function validateCategory(category: string): boolean;
|
|
|
212
217
|
*/
|
|
213
218
|
declare function getValidCategories(): string[];
|
|
214
219
|
|
|
215
|
-
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 };
|
|
220
|
+
export { Logger, buildCommand, cloneCommand, copyTemplate, createBlockCommand, createComponentCommand, createSectionCommand, detectPackageManager, downloadCommand, ensureOneXProject, getFeaturesDir, getProjectRoot, getTemplatesDir, 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
|
@@ -134,6 +134,11 @@ declare function renderTemplate(templatePath: string, data: Record<string, unkno
|
|
|
134
134
|
* Write a file with directory creation
|
|
135
135
|
*/
|
|
136
136
|
declare function writeFile(filePath: string, content: string): Promise<void>;
|
|
137
|
+
/**
|
|
138
|
+
* Get the templates directory
|
|
139
|
+
* Works in both development and production (bundled) environments
|
|
140
|
+
*/
|
|
141
|
+
declare function getTemplatesDir(): string;
|
|
137
142
|
/**
|
|
138
143
|
* Copy template directory
|
|
139
144
|
*/
|
|
@@ -212,4 +217,4 @@ declare function validateCategory(category: string): boolean;
|
|
|
212
217
|
*/
|
|
213
218
|
declare function getValidCategories(): string[];
|
|
214
219
|
|
|
215
|
-
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 };
|
|
220
|
+
export { Logger, buildCommand, cloneCommand, copyTemplate, createBlockCommand, createComponentCommand, createSectionCommand, detectPackageManager, downloadCommand, ensureOneXProject, getFeaturesDir, getProjectRoot, getTemplatesDir, getThemesDir, getValidCategories, initCommand, installDependencies, isOneXProject, listCommand, listThemes, logger, pathExists, renderTemplate, themeExists, toCamelCase, toKebabCase, toPascalCase, uploadCommand, validateCategory, validateName, validateThemeName, writeFile };
|
package/dist/index.js
CHANGED
|
@@ -3400,6 +3400,7 @@ exports.downloadCommand = downloadCommand;
|
|
|
3400
3400
|
exports.ensureOneXProject = ensureOneXProject;
|
|
3401
3401
|
exports.getFeaturesDir = getFeaturesDir;
|
|
3402
3402
|
exports.getProjectRoot = getProjectRoot;
|
|
3403
|
+
exports.getTemplatesDir = getTemplatesDir;
|
|
3403
3404
|
exports.getThemesDir = getThemesDir;
|
|
3404
3405
|
exports.getValidCategories = getValidCategories;
|
|
3405
3406
|
exports.initCommand = initCommand;
|