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

Add grunt (WIP) #37

Merged
merged 33 commits into from
Mar 29, 2016
Merged

Add grunt (WIP) #37

merged 33 commits into from
Mar 29, 2016

Conversation

georgestephanis
Copy link
Contributor

This is doing a number of things:

  • Setting up Grunt with JSHint, phplint, and wp-i18n-tools and such
  • Fix some i18n such
  • Lots of JS style fixes to bring in line with jshint code style.
  • Add text domains and generate a pot file.

Adds jshint and phplint, as well as some i18n tools.
We can rely on Core's `$wp_locale` global for this info.
This function got redid in r100098-wpcom but the variable declarations
from the old version stuck around.  Tidy them up.
Setting up a timeout anonymous function that calls something else that's
never re-called is overly complicated.
var fragment = $( window.location.hash );
// Scroll to the fragment identifer
setTimeout( function () {
var fragment = $( document.body).find( window.location.hash );
Copy link
Member

Choose a reason for hiding this comment

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

Whitespace.

Looks good to me otherwise.

@georgestephanis georgestephanis merged commit 1110a2e into master Mar 29, 2016
@georgestephanis georgestephanis deleted the add/grunt branch March 29, 2016 21:37
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