Skip to content
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

WIP try rajasegar/ember-cli-update-codemods-manifest/ember-angle-brackets-codemod #606

Closed
wants to merge 1 commit into from

Conversation

kellyselden
Copy link
Member

@kellyselden kellyselden force-pushed the rajasegar/ember-angle-brackets-codemod branch 6 times, most recently from 227f603 to b81af95 Compare July 27, 2019 17:14
@kellyselden kellyselden changed the title try rajasegar/ember-cli-update-codemods-manifest/ember-angle-brackets-codemod WIP try rajasegar/ember-cli-update-codemods-manifest/ember-angle-brackets-codemod Jul 28, 2019
@kellyselden kellyselden force-pushed the rajasegar/ember-angle-brackets-codemod branch from f78da75 to 664598b Compare August 17, 2019 09:15
@kellyselden kellyselden force-pushed the rajasegar/ember-angle-brackets-codemod branch from 664598b to 3edc156 Compare October 10, 2019 10:54
@kellyselden
Copy link
Member Author

@kellyselden
Copy link
Member Author

      + expected - actual

           "styles": {
             "app.css": ""
           }
           "templates": {
      -      "application.hbs": "{{!-- The following component displays Ember's default welcome message. --}}\r\n<WelcomePage />\r\n{{!-- Feel free to remove this! --}}\r\n\r\n{{outlet}}\r\n\r\n<Ui::Button @text=\"Click me\" />"
      +      "application.hbs": "{{! The following component displays Ember's default welcome message. }}\r\n<WelcomePage />\r\n{{! Feel free to remove this! }}\r\n{{outlet}}\r\n<Ui::Button @text=\"Click me\" />"
             "components": {
               ".gitkeep": ""
             }
           }

Copy link
Member

@rwjblue rwjblue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kellyselden - I actually think this PR has the expected wrong, in that last diff you pasted just above it shows that the line endings are fine (AFAICT).

@@ -1,5 +1,5 @@
{{!-- The following component displays Ember's default welcome message. --}}
{{! The following component displays Ember's default welcome message. }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are the -- removed here? The original (assuming that test/fixtures/codemod/local/my-app/app/templates/application.hbs represents the input) uses {{!--, so I would expect the output to continue to use them.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These were remnants from when the codemod did a lot more formatting, and the expected was altered to match. This has been reverted now.

{{! Feel free to remove this! }}
{{outlet}}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There should be a newline both just before and just after {{outlet}} (based on the input template in test/fixtures/codemod/local/my-app/app/templates/application.hbs)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These were remnants from when the codemod did a lot more formatting, and the expected was altered to match. This has been reverted now.

@kellyselden kellyselden force-pushed the rajasegar/ember-angle-brackets-codemod branch from 379ce73 to d014463 Compare November 15, 2019 15:32
kellyselden pushed a commit to rajasegar/ember-cli-update-codemods-manifest that referenced this pull request Nov 17, 2019
@kellyselden
Copy link
Member Author

@kellyselden kellyselden deleted the rajasegar/ember-angle-brackets-codemod branch November 17, 2019 21:41
@kellyselden
Copy link
Member Author

Line endings used to be a problem, but aren't anymore. Thanks to everyone involved!

kellyselden pushed a commit to ember-cli/ember-cli-update-codemods-manifest that referenced this pull request Nov 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants