Skip to content

gsbitse/gsb_best_practices

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

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

About

A place to document our standard operating procedures

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published