From 278495e27d2cd9b0ca9dc4faac0f5180ca0f22bd Mon Sep 17 00:00:00 2001 From: Harry Hedger Date: Thu, 10 Dec 2015 04:34:59 -0500 Subject: [PATCH] Removed bin/builder script. Updated .gitignore. --- .gitignore | 3 ++- bin/builder | 61 ----------------------------------------------------- 2 files changed, 2 insertions(+), 62 deletions(-) delete mode 100755 bin/builder diff --git a/.gitignore b/.gitignore index b5a670e87..c77e5b86d 100644 --- a/.gitignore +++ b/.gitignore @@ -5,10 +5,11 @@ node_modules dist/ lib/ + website/db.json website/*.log website/node_modules/ website/public/ website/.deploy*/ website/src/_drafts -website/src/examples/uppy.js +website/src/examples/**/static/js/app.js diff --git a/bin/builder b/bin/builder deleted file mode 100755 index c9406138a..000000000 --- a/bin/builder +++ /dev/null @@ -1,61 +0,0 @@ -#!/bin/bash - -# Setup -####################################################### -transformations="[ babelify ]" -toolpath="${1:-node_modules/.bin/browserify}" -toolname="$(basename "${toolpath}")" - -if [ "${toolname}" = "node-sass" ]; then - srcExtension="scss" - dstExtension="css" -else - srcExtension="js" - dstExtension="js" -fi - -if [ "${toolname}" = "watchify" ]; then - extraArgs="-t ${transformations} --ignore-watch=**/build/** --verbose" -elif [ "${toolname}" = "browserify" ]; then - extraArgs="-t ${transformations} --ignore-watch=**/build/** --verbose" -else - extraArgs="" -fi - - -bundleTarget="build/uppy.${dstExtension}" - -# Individual files, built seperately -####################################################### -allSourceFiles="" -for src in $(find src -name "*.${srcExtension}" -type f); do - allSourceFiles="${allSourceFiles} ${src}" - dst="build/$(basename $(dirname ${src}))/$(basename ${src})" - echo "--> ${src} -> ${dst}" - - # Argument should be `browserify`, or `node-sass` - if [ "${toolname}" = "node-sass" ]; then - "${toolpath}" "${src}" "${dst}" ${extraArgs} - else - "${toolpath}" "${src}" -o "${dst}" ${extraArgs} - fi -done - -# All files in one bundle -####################################################### -echo "--> *.${srcExtension} -> ${bundleTarget}" -if [ "${toolname}" = "node-sass" ]; then - "${toolpath}" ${allSourceFiles} "${bundleTarget}" ${extraArgs} -else - "${toolpath}" ${allSourceFiles} -o "${bundleTarget}" ${extraArgs} -fi - -# Install into examples -for path in $(find examples -maxdepth 1 -mindepth 1 -type d); do - exampleProject="$(basename "${path}")" - rsync \ - -ai \ - --exclude='.DS_Store' \ - --exclude='.empty' \ - build/ "examples/${exampleProject}/static/uppy" -done