-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: pull components cmd #139
Draft
alvarosabu
wants to merge
13
commits into
next
Choose a base branch
from
feature/pull-components-cmd
base: next
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Conversation
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
alvarosabu
added
p3-significant
[Priority] Moderate issues, major enhancements
feature
[Issue] New feature or request
labels
Dec 3, 2024
…ing suffix optional
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
feature
[Issue] New feature or request
p3-significant
[Priority] Moderate issues, major enhancements
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR introduces the new implementation of the
pull-components
commandHow to test this PR
295017
or295018
pnpm install
pnpm run dev pull-components --space <SPACE_ID>
Testing checklist
components.295017.json
file inside of.storyblok/components
directory containing an array with all the components available✔ Components downloaded successfully in ./storyblok/components/components.295017.json
Please provide the space as argument --space YOUR_SPACE_ID.
--separate-files
Space A Component Inside Folder 1
should generatespace-a-component-inside-folder-1.295017.json
The --filename option is ignored when using --separate-files
if--filename
flag is used along--sf
--path
components.295017.json
file inside of the path provided.--separate-files
--filename
custom-filename.295017.json
inside of the.storyblok/components
directorycustom-filename.295017.json
inside of the provided path if--path
is provided--suffix
components.suffix.json
inside of the.storyblok/components
directorycustom-filename.suffix.json
inside of the provided path if--path
is provided--separate-files
is used. Example: component namedSpace A Component Inside Folder 1
should generatespace-a-component-inside-folder-1.suffix.json