Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 1.96 KB

README.md

File metadata and controls

35 lines (26 loc) · 1.96 KB

GSB Best Practices

A place to document our standard operating procedures.

Git

  • Commit early, commit often.
  • If you are working on a task that has an associated Jira ticket, please create a branch for the issue using the issue number as the name of the branch, for example, WP-100.
  • Prefix your commits with the ticket number.
  • Never prefix your commits with a # sign, this can cause the commit to be lost during rebase.
  • Use git add -p to stage individual hunks, and use git diff --staged to review before committing.

Dev environment

Drush

  • Use the 6.x branch of drush from github

Ruby

Drupal

Site building

  • Use Display Suite when possible to alter the display of content

Theming

  • Avoid use of template (.tpl.php) files whenever possible
    • When overriding a template file, copy the original and rename as appropriate, and then commit it. Make the actual changes to the file in a separate commit.
  • Favor preprocess hooks over theme functions over template files.

Module dev