Viget’s EE Development Workflow
- Optimize for local-first development
- Manage and sync multiple instances of an EE site
- Deploy from git
- Work from files, not the DB, wherever possible
// better describe() method that nests your describe blocks | |
// if you pass it a string with slashes | |
(function() { | |
var recursiveNestedDescribe = function(title, callback) { | |
var titleChunk = title.shift(); | |
if (title.length === 0) { | |
describe(titleChunk, callback); | |
} else { | |
describe('/' + titleChunk, function() { |
#!/usr/bin/env ruby | |
# coding: utf-8 | |
require 'pbcopy' | |
project_data = File.read('projects.csv') | |
hours_data = File.read('hours.csv') | |
projects = project_data.split(/\n/) | |
projects.shift |
// Macro: "data-track-gtm - get from element" | |
// Returns: Boolean - does this element, or one of its parents, have a data-track-gtm attribute? | |
function() { | |
var isSet = function(val) { | |
return val !== null && val !== ''; | |
}; | |
var el = {{element}}; | |
var val = el.getAttribute('data-track-gtm'); | |
while (el && el !== document.body && !isSet(val)) { |
require 'rmagick' | |
source = ARGV[0] | |
Dir.glob('images/' + source + '/*.*').each do |retina_path| | |
mobile_path = retina_path.sub(/retina/, 'normal') | |
retina_file = File.new(retina_path) | |
mobile_file = File.new(mobile_path) if File.exist?(mobile_path) |
.shureicons-font { | |
font-family: 'shureicons'; | |
-webkit-font-smoothing: subpixel-antialiased; | |
} | |
@mixin logo($height) { | |
@include box-sizing(border-box); | |
display: block; | |
height: $height; | |
padding-top: $height; |
<!doctype html> | |
<html> | |
<head> | |
<title>Easy GA debugging - to test, add ?ga_debug to the URL</title> | |
<script> | |
var _gaq = _gaq || []; | |
var _ga_debug = window.location.href.indexOf('ga_debug') !== -1; | |
_gaq.push(['_setAccount', 'UA-00000000-1']); | |
_gaq.push(['_trackPageview']); |
source 'http://rubygems.org' | |
# Compiling | |
gem 'compass' | |
gem 'compass-growl' | |
# Guard | |
gem 'guard' | |
gem 'guard-compass' | |
gem 'guard-livereload' | |
gem 'guard-process' |
guard 'process', :name => 'minify-screen-js', :command => 'juicer merge js/all.js -o js/all.min.js --force -s' do | |
watch /^js\/brianregan\/screen.js/ | |
end |