This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| example: | |
| dimension(foo, bar, 2, 10px); | |
| - gets the value bar inside foo map | |
| - multiplies it by two | |
| - adds 10px | |
| */ | |
| $dimensions: ( | |
| global: ( |
OlderNewer