|
|
@ -8,7 +8,7 @@ usage() {
|
|
|
|
echo " download the npm, the prod and dev dependencies," >&2
|
|
|
|
echo " download the npm, the prod and dev dependencies," >&2
|
|
|
|
echo " each in their own tarball." >&2
|
|
|
|
echo " each in their own tarball." >&2
|
|
|
|
echo " Also finds licenses prod dependencies." >&2
|
|
|
|
echo " Also finds licenses prod dependencies." >&2
|
|
|
|
echo " All three tarballs and license list are copied to ${OUTPUT_DIR}" >&2
|
|
|
|
echo " All three tarballs and the license list are copied to ${OUTPUT_DIR}" >&2
|
|
|
|
echo >&2
|
|
|
|
echo >&2
|
|
|
|
exit 1
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -56,7 +56,7 @@ if [ $? -ge 1 ] ; then
|
|
|
|
echo " ERROR WILL ROBINSON"
|
|
|
|
echo " ERROR WILL ROBINSON"
|
|
|
|
rm -rf node_modules
|
|
|
|
rm -rf node_modules
|
|
|
|
else
|
|
|
|
else
|
|
|
|
echo " Successful prod dependences download"
|
|
|
|
echo " Successful prod dependencies download"
|
|
|
|
mv node_modules/ node_modules_prod
|
|
|
|
mv node_modules/ node_modules_prod
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "LICENSES IN BUNDLE:"
|
|
|
|
echo "LICENSES IN BUNDLE:"
|
|
|
@ -80,7 +80,7 @@ npm install --no-optional --only=dev
|
|
|
|
if [ $? -ge 1 ] ; then
|
|
|
|
if [ $? -ge 1 ] ; then
|
|
|
|
echo " ERROR WILL ROBINSON"
|
|
|
|
echo " ERROR WILL ROBINSON"
|
|
|
|
else
|
|
|
|
else
|
|
|
|
echo " Successful dev dependences download"
|
|
|
|
echo " Successful dev dependencies download"
|
|
|
|
mv node_modules/ node_modules_dev
|
|
|
|
mv node_modules/ node_modules_dev
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
if [ -d node_modules_prod ] ; then
|
|
|
|
if [ -d node_modules_prod ] ; then
|
|
|
|