[turbolizer] Add deploy script

Bug: v8:7327
Change-Id: I445a6589612f12c5fffa2bd23831b961c94d960e
Reviewed-on: https://chromium-review.googlesource.com/1092535
Reviewed-by: Tobias Tebbi <tebbi@chromium.org>
Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
Cr-Commit-Position: refs/heads/master@{#53633}
This commit is contained in:
Sigurd Schneider 2018-06-08 13:26:52 +02:00 committed by Commit Bot
parent 8cc87a7af2
commit a20e3ec485
2 changed files with 20 additions and 1 deletions

18
tools/turbolizer/deploy.sh Executable file
View File

@ -0,0 +1,18 @@
#!/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/."

View File

@ -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",