Skip to content

Commit

Permalink
refactor: restructure components module with modular architecture
Browse files Browse the repository at this point in the history
- Split components module into separate pull, push, and core files
- Created dedicated directories for pull and push actions
- Moved constants, actions, and command implementations to respective modules
- Simplified index file to export core functionality
- Improved code organization and separation of concerns
- Maintained existing functionality while enhancing code structure
  • Loading branch information
alvarosabu committed Jan 30, 2025
1 parent a3ff665 commit 45f3d1b
Show file tree
Hide file tree
Showing 13 changed files with 949 additions and 940 deletions.
1 change: 1 addition & 0 deletions src/commands/components/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
- [ ] It should upsert groups if consolidated files are found `.storyblok/components/<TARGET_SPACE_ID>/groups.json`
- [ ] It should upsert deep nested groups if consolidated files are found `.storyblok/components/<TARGET_SPACE_ID>/groups.json`
- [ ] It should upsert the components to the target space `.storyblok/components/<TARGET_SPACE_ID>/components.json`
- [ ] It should resolve component whitelists (folders, components, tags)

#### Error handling
- [ ] It should throw and error if the space is not provided: `Please provide the target space as argument --space YOUR_SPACE_ID. `
Expand Down
Loading

0 comments on commit 45f3d1b

Please sign in to comment.