angular-cn/aio/tools/prerender/copy-to-dist.js
Georgios Kalpakas d0bc83ca27 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
2017-03-17 15:31:22 -05:00

11 lines
196 B
JavaScript

'use strict';
// Imports
const sh = require('shelljs');
const { CONTENT_DIR, TMP_OUTPUT_DIR } = require('./constants');
sh.config.fatal = true;
// Run
sh.cp('-r', TMP_OUTPUT_DIR, CONTENT_DIR);