[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:
parent
8cc87a7af2
commit
a20e3ec485
18
tools/turbolizer/deploy.sh
Executable file
18
tools/turbolizer/deploy.sh
Executable 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/."
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user