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
#!/usr/bin/env bash | |
set -u | |
set -e | |
export GIT_WORK_TREE="/var/www/example.com" | |
export NODE_VERSION="0.10" | |
echo "--> Checking out..." | |
git checkout -f |
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
const immutable = (() => { | |
const getValue = obj => key => obj[key]; | |
const isObject = obj => Object(obj) === obj; | |
const isMutable = obj => isObject(obj) && !Object.isFrozen(obj); | |
return obj => { | |
Object.keys(obj).map(getValue(obj)).filter(isMutable).forEach(immutable); | |
return Object.freeze(obj); | |
}; | |
})(); |
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
browserify ./screens/*.js -p [ factor-bundle -o 'tee > bundle/`basename $FILE`' ] -o bundle/common.js |
OlderNewer