You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by oy...@apache.org on 2021/04/02 12:49:52 UTC

[tinkerpop] 01/01: TINKERPOP-2544 Include gremlint in generate-home.sh

This is an automated email from the ASF dual-hosted git repository.

oyvindsabo pushed a commit to branch TINKERPOP-2544
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git

commit 966cdf8016fee646ecfd1e6b2596054be1409cc0
Author: oyvindsabo <oy...@gmail.com>
AuthorDate: Fri Apr 2 01:05:54 2021 +0200

    TINKERPOP-2544 Include gremlint in generate-home.sh
    
    Update generate-home.sh to build the gremlint web page to an optimized
    production build which can be hosted by a static server and then copy
    it from docs/gremlint/build to target/site/home/gremlint.
---
 bin/generate-home.sh | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/bin/generate-home.sh b/bin/generate-home.sh
index d2077dd..eba4a0b 100755
--- a/bin/generate-home.sh
+++ b/bin/generate-home.sh
@@ -23,12 +23,20 @@ cd `dirname $0`/..
 rm -rf target/site/home
 mkdir -p target/site/
 
+pushd docs/gremlint
+
+npm run build
+
+popd
+
 hash rsync 2> /dev/null
 
 if [ $? -eq 0 ]; then
   rsync -avq docs/site/home target/site --exclude template
+  rsync -avq docs/gremlint/build/ target/site/home/gremlint
 else
   cp -R docs/site/home target/site
+  cp -R docs/gremlint/build/. target/site/home/gremlint
   rm -rf target/site/home/template
 fi