Skip to content

Conversation

@benbristow
Copy link

@benbristow benbristow commented Oct 6, 2018

Summary

Add semi-colons to generated JavaScript which is created when using the generator.

Seems like good practice and I always end up doing this myself after running the generator anyway for the sake of cleanliness. May as well fix it at the source, eh?

Other Information

N/A

Copy link
Member

@BookOfGreg BookOfGreg left a comment

Choose a reason for hiding this comment

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

Looks good, yep we might as well generate code that passes most people's linters. Thanks for contributing.

There's one small change in the gemspec that looks unintentional, if you could revert that we can get these changes in.

s.add_development_dependency 'selenium-webdriver'
s.add_development_dependency 'test-unit', '~> 2.5'
s.add_development_dependency 'rails', '>= 3.2'
s.add_development_dependency 'turbolinks'
Copy link
Member

Choose a reason for hiding this comment

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

This file probably wants to be reset, turbolinks isn't a dependency of this project.

Copy link
Member

Choose a reason for hiding this comment

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

I see your commit eeef8a3 mentions tests failing without turbolinks but the build before yours ran green. What are you referring to?

Copy link
Author

Choose a reason for hiding this comment

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

@BookOfGreg The first time I ran the tests on my machine (I assume they're ran with a simple rake ?) I was getting tons of errors about not being able to resolve Turbolinks on the controller tests.

I can roll it back if you want.

Copy link
Member

Choose a reason for hiding this comment

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

Yes please. The tests that matter for this project are the ones on Travis. Rake should work locally when using Appraise but it's easy to pollute the environment on this project accidentally.

@benbristow
Copy link
Author

@BookOfGreg reverted.

@BookOfGreg BookOfGreg merged commit 92a5b0a into reactjs:master Oct 8, 2018
@BookOfGreg
Copy link
Member

Thank you Ben 👍

@benbristow benbristow deleted the add-semicolons branch October 8, 2018 20:46
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