build(aio): implement prerendering

The current implementation is based on @igorminar's [angular-io-v42][1]. It is
using Protractor to request all docs URLs, let them fallback to `/index.html`
and save the rendered page.

[1]: https://github.com/IgorMinar/angular-io-v42/tree/05508ab3/tools/prerenderer

Fixes #15104
This commit is contained in:
Georgios Kalpakas
2017-03-13 12:39:22 +02:00
committed by Miško Hevery
parent b5b2fed54d
commit d0bc83ca27
12 changed files with 320 additions and 8 deletions

View File

@ -11,7 +11,7 @@ UPLOAD_URL=$AIO_BUILDS_HOST/create-build/$TRAVIS_PULL_REQUEST/$TRAVIS_PULL_REQUE
cd "`dirname $0`/.."
yarn run build
# Assumes the build step has already run
tar --create --gzip --directory "$INPUT_DIR" --file "$OUTPUT_FILE" .
exec 3>&1