-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: suffix command and new file organization for pull-components
- Loading branch information
1 parent
15ff9f9
commit 6cabaab
Showing
5 changed files
with
90 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import type { CommandOptions } from '../../types' | ||
|
||
/** | ||
* Interface representing the options for the `pull-components` command. | ||
*/ | ||
export interface PullComponentsOptions extends CommandOptions { | ||
/** | ||
* The path to save the components file to. | ||
* Defaults to `.storyblok/components`. | ||
* @default `.storyblok/components` | ||
*/ | ||
path?: string | ||
/** | ||
* The space ID. | ||
* @required true | ||
*/ | ||
space: string | ||
/** | ||
* The filename to save the file as. | ||
* Defaults to `components`. The file will be saved as `<filename>.<space>.json`. | ||
* @default `components | ||
*/ | ||
filename?: string | ||
/** | ||
* The suffix to add to the filename. | ||
* Defaults to the space ID. | ||
* @default space | ||
*/ | ||
suffix?: string | ||
/** | ||
* Indicates whether to save each component to a separate file. | ||
* @default false | ||
*/ | ||
separateFiles?: boolean | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters