-
Notifications
You must be signed in to change notification settings - Fork 4
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
Create component command #234
Conversation
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.
Works great to me! 🎉
➤ Mike Goulding commented: I'd ideally like to have this have a test written before merging this as we have that for other similar commands. I could help with that part if needed. |
…eate-component-command
@robherba Do you want to give this another go with tests now? We can pull this into 2.x if you want too |
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.
A couple of issues with imports on the component create command but otherwise this looks great. Just remember that relative imports need the .js file extension
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.
This is great. Thank you for adding this!
Summary
Adds a command to generate the basic structure of a new component.
How to review this pull request
npm build && npm link
composer create-project drupal/recommended-project drupal-folder
.emulsify system install compound --all
.emulsify component create componentName -d directoryName
(directoryName: atoms | molecules | organisms | templates)