angular-cn/aio/scripts
George Kalpakas 11eef85133 build(docs-infra): change `build-with-ivy` script to `switch-to-ivy` (#29989)
Previously, the `build-with-ivy` script could be used to build the `aio`
project with Ivy (once it had been prepared with `ivy-ngcc`, etc.) and
then restored the configuration (e.g. `tsconfig.json`) to non-ivy mode.

As a result, it was not useful for running other commands (e.g. unit/e2e
tests) in Ivy mode.

This commit renames the script to `switch-to-ivy` and employs a
different model (similar to `ng-packages-installer`), where the project
is setup to run in Ivy mode and then all subsequent commands are
executed in that mode (until restored).

Since this is currently only used on CI, there is no automatic way to
switch back to non-ivy mode (but it could be implemented in the future
if needed).

Finally, the script now modifies `src/tsconfig.app/json` instead of
`tsconfig.json` to ensure that the `angularCompilerOptions` are not
ignored/overwritten. This is also closer to what the cli generates
with the `--enable-ivy` option.

PR Close #29989
2019-04-19 09:46:48 -07:00
..
contributors docs(aio): add missing mentors for collaborators (#29142) 2019-04-11 08:06:18 -07:00
_payload-limits.json build(docs-infra): update to CLI 8 beta.13 (#29764) 2019-04-15 11:14:04 -07:00
build-404-page.js refactor: remove unused parameter in _main method invocation (#28203) 2019-01-23 10:58:38 -08:00
build-artifacts.sh ci(docs-infra): reduce verbosity of `yarn build` on CI (#26746) 2018-10-25 21:17:52 -04:00
check-environment.js build(aio): do not fail if `check-env` for the main angular project fails 2017-06-16 07:51:18 +01:00
create-preview.js ci(docs-infra): manually trigger the preview server webhook (#27458) 2018-12-04 13:59:54 -08:00
deploy-to-firebase.sh build(docs-infra): remove unnecessary script to workaround cli issue (#28012) 2019-01-09 10:29:43 -08:00
deploy-to-firebase.test.sh ci(docs-infra): move deployment to CircleCI (#26377) 2018-10-23 14:35:38 -07:00
payload.sh build: fix aio size tracking, we need to use node_modules local to aio (#23328) 2018-04-11 23:14:23 -07:00
switch-to-ivy.js build(docs-infra): change `build-with-ivy` script to `switch-to-ivy` (#29989) 2019-04-19 09:46:48 -07:00
test-preview.js test(docs-infra): run basic smoke tests against PR previews (#26649) 2018-10-29 13:00:20 -04:00
test-production.sh test(docs-infra): fix smoke tests (#26649) 2018-10-29 13:00:20 -04:00
test-pwa-score.js ci(docs-infra): increase wait for SW on localhost to avoid CI flakes (#29953) 2019-04-17 12:14:39 -07:00
verify-guide-codeownership.js test(docs-infra): add script for verifying all guides/examples/images have owners (#28597) 2019-03-07 13:24:01 -08:00