quickertype isn't any quicker than quicktype
This commit is contained in:
Родитель
42e5b60398
Коммит
db3c7891aa
|
@ -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" "$@"
|
|
@ -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" "$@"
|
|
@ -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" "$@"
|
||||
|
|
Загрузка…
Ссылка в новой задаче