Skip to content

Instantly share code, notes, and snippets.

View averyvery's full-sized avatar

Doug Avery averyvery

View GitHub Profile
require('colors');
import webpack from 'webpack';
import prettysize from 'prettysize';
import fs from 'fs';
import { execSync } from 'child_process';
import Table from 'cli-table';
import config from '../config/build.js';
webpack(config).run((error, stats) => {
if (error) console.log(error.red);
// 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() {
@averyvery
averyvery / dimension.scss
Created January 31, 2017 19:54
lil trick
/*
example:
dimension(foo, bar, 2, 10px);
- gets the value bar inside foo map
- multiplies it by two
- adds 10px
*/
$dimensions: (
global: (