From db3c7891aaf146faabd577c3fbeab97366e09bad Mon Sep 17 00:00:00 2001 From: Mark Probst Date: Fri, 16 Mar 2018 16:47:36 -0700 Subject: [PATCH] quickertype isn't any quicker than quicktype --- script/quickertype | 9 --------- script/quickesttype | 9 +++++++++ script/quicktype | 4 +++- 3 files changed, 12 insertions(+), 10 deletions(-) delete mode 100755 script/quickertype create mode 100755 script/quickesttype diff --git a/script/quickertype b/script/quickertype deleted file mode 100755 index fc9ea94d..00000000 --- a/script/quickertype +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -# This runs quicktype, without installing dependencies. -# -# In practice this runs 75% faster. - -SCRIPTDIR=$(dirname "$0") - -SKIP_INSTALL_PREREQUISITES=true "$SCRIPTDIR/quicktype" "$@" diff --git a/script/quickesttype b/script/quickesttype new file mode 100755 index 00000000..46558239 --- /dev/null +++ b/script/quickesttype @@ -0,0 +1,9 @@ +#!/bin/bash + +# This runs quicktype, without building. +# +# In practice this runs an order of magnitude faster. + +SCRIPTDIR=$(dirname "$0") + +SKIP_BUILD=true "$SCRIPTDIR/quicktype" "$@" diff --git a/script/quicktype b/script/quicktype index 008d086e..e46f0d20 100755 --- a/script/quicktype +++ b/script/quicktype @@ -10,5 +10,7 @@ SCRIPTDIR=$(dirname "$0") BASEDIR="$SCRIPTDIR/.." -( cd "$BASEDIR" ; npm run build &>/dev/null ) +if [ x"$SKIP_BUILD" = x ] ; then + ( cd "$BASEDIR" ; npm run build &>/dev/null ) +fi node --stack_trace_limit=100 "$BASEDIR/dist/cli.js" "$@"