-
Notifications
You must be signed in to change notification settings - Fork 7
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
fix: handle invalid directory errors when creating atomic component #1327
Closed
Closed
Changes from 7 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
5d4442e
Add onto the code duplication pile
dmbrooke f4a80f4
Correct import
dmbrooke 9a07d73
Wrap into main method
dmbrooke 5bbb649
Remove duplicate definition
dmbrooke e26eced
Add missing dep
dmbrooke 2ba4317
Update snapshot :shrug:
dmbrooke 2e92fa6
Don't return like a dummy
dmbrooke b9f374b
Basic UT for directory validity
dmbrooke 2529b3e
Improve error message string
dmbrooke 4fea0ec
Improve docs, add tests for result-component
dmbrooke e246895
Add tests for create-atomic-component-project
dmbrooke e939d53
Merge branch 'master' into KIT-2722-throw-invalid-directory-errors
dmbrooke 9f161a4
Revert package-lock.json?
dmbrooke 34d3968
Merge branch 'master' into KIT-2722-throw-invalid-directory-errors
louis-bompart File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe specifying how to initialize an atomic project
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe link to some relevant doc which explains the process e.g https://docs.coveo.com/en/cli/ or something more specific if available
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Disagreeing here: The create-atomic-(result)-component packages are initializers that are agnostic of the concept of atomic project.
i.e. you can use them without an atomic project.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I personally think it's valid to refer to it as a
valid project
as that isn't specific to an atomic project. I think I'll update the link for this description to instead point to theatomic:cmp
command documentation as it clearly outlines in what contexts the command will work:https://docs.coveo.com/en/cli/#coveo-atomiccmp-name