-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
JSHint Uber PR #206
JSHint Uber PR #206
Conversation
Awesome. Thanks, @gauntface! I'll take look a the PR and
(The reason why I originally went with |
If we extracted javascript from the pages, this wouldn't be an issue and adding JSCS to external JS files would still be better than nothing. |
Would you want to rely on the Jekyll build process to stitch together the external I think there are some educational benefits to the current setup, where you can do a View Source... and see the JavaScript inline with the corresponding HTML. But maybe we could get creative and unconditionally include the entire contents of the external As long as we don't sacrifice the experience of reading the samples and understanding how everything works in context for the benefit of better tooling, I'm on board. |
Personally I would just reference the external file. Using something to inline the snippet would be best of both worlds from that. Best bit of this approach:
|
Cool. I've created #207 to track externalizing the JS files. Would you rather I review this PR as-is, or would you like to modify it to include the JS externalization? |
I think reviewing as is would be ideal. There may be strong votes against externalisation, plus this is a fairly big PR as it stands. |
@@ -1,3 +1,5 @@ | |||
[![Build Status](https://travis-ci.org/gauntface/samples.svg?branch=gh-pages)](https://travis-ci.org/gauntface/samples) |
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.
gauntface
→ GoogleChrome
Reviewed the current PR. What do you think about wrapping the |
* upstream/gh-pages: Review feedback. Review feedback. Added array method includes sample CSS.escape() sample Typo new.target sample Review feedback. Nicer HTTPS redirection for non-localhost. Added Event.isTrusted sample CSS motion path example
Updated to upstream gh-pages and addressed your concerns @jeffposnick to get something suitable for the repo. Would ideally like to get something close to this in the repo so future samples are linted and then address externalising JS and simplifying the gulp.src rules in that PR. |
@@ -1,3 +1,5 @@ | |||
[![Build Status](https://travis-ci.org/gauntface/samples.svg?branch=gh-pages)](https://travis-ci.org/GoogleChrome/samples) |
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.
There's still a gauntface
in there.
👍 other than the two small comments. Feel free to merge once those are addressed, and thanks! |
I've gone through and made the changes to pass JSHint rules for the current set up and added it to the travis build process so that we should be able to see build status for PR's.
Problems / Questions: