Commit a20e3ec4 authored by Sigurd Schneider's avatar Sigurd Schneider Committed by Commit Bot

[turbolizer] Add deploy script

Bug: v8:7327
Change-Id: I445a6589612f12c5fffa2bd23831b961c94d960e
Reviewed-on: https://chromium-review.googlesource.com/1092535Reviewed-by: 's avatarTobias Tebbi <tebbi@chromium.org>
Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
Cr-Commit-Position: refs/heads/master@{#53633}
parent 8cc87a7a
#!/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
echo "Deploying..."
cp *.jpg $DEST/
cp *.png $DEST/
cp *.css $DEST/
cp index.html $DEST/
cp -R build $DEST/
echo "Deployed to $DEST/."
......@@ -5,7 +5,8 @@
"main": "index.html",
"scripts": {
"build": "tsc",
"watch": "tsc --watch"
"watch": "tsc --watch",
"deploy": "./deploy.sh"
},
"author": "The V8 team",
"license": "MIT",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment