mirror of
https://github.com/nodejs/node.git
synced 2025-05-15 10:01:49 +00:00

PR-URL: https://github.com/nodejs/node/pull/44741 Fixes: https://github.com/nodejs/node/issues/44650 Fixes: https://github.com/nodejs/node/issues/37472 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
25 lines
396 B
Bash
Executable File
25 lines
396 B
Bash
Executable File
#!/bin/bash
|
|
|
|
DEST=$1
|
|
|
|
if [ ! -d "$DEST" ]; then
|
|
echo -e "Destination \"$DEST\" is not a directory. Run\n\tnpm deploy -- [destination-directory]"
|
|
exit 1
|
|
fi
|
|
|
|
function copy() {
|
|
echo -n "."
|
|
cp "$@"
|
|
}
|
|
|
|
echo -n "Deploying..."
|
|
copy *.png $DEST/
|
|
copy index.html $DEST/
|
|
copy info-view.html $DEST/
|
|
copy -R build $DEST/
|
|
copy -R img $DEST/
|
|
copy -R css $DEST/
|
|
echo "done!"
|
|
|
|
echo "Deployed to $DEST/."
|