angular-docs-cn/aio/scripts
George Kalpakas d07e736f17 build(docs-infra): auto-generate SW `navigationUrls` from Firebase config (#42452)
Previously, redirects had to be configured in both the Firebase config
(`firebase.json`) and the ServiceWorker config (`ngsw-config.json`).
This made it challenging to correctly configure redirects, since one had
to understand the different formats of the two configs, and was also
prone to getting out-of-sync configs.

This commit simplifies the process of adding redirects by removing the
need to update the ServiceWorker config (`ngsw-config.json`) and keep it
in sync with the Firebase config (`firebase.json`). Instead the
ServiceWorker `navigationUrls` are automatically generated from the list
of redirects in the Firebase config.

NOTE:
Currently, the automatic generation only supports the limited set of
patterns that are necessary to translate the existing redirects. It can
be made more sophisticated in the future, should the need arise.

PR Close #42452
2021-06-18 17:32:58 +00:00
..
contributors ci: check that there are no unused contributor images (#41290) 2021-03-23 09:38:43 -07:00
audit-web-app.js test(docs-infra): print the browser version in `audit-web-app.js` to help debugging (#41103) 2021-03-08 08:33:47 -08:00
build-404-page.js fix(docs-infra): generate the `404.html` page correctly (#41163) 2021-03-11 09:30:03 -08:00
build-artifacts.sh ci(docs-infra): reduce verbosity of `yarn build` on CI (#26746) 2018-10-25 21:17:52 -04:00
build-ngsw-config.js build(docs-infra): auto-generate SW `navigationUrls` from Firebase config (#42452) 2021-06-18 17:32:58 +00: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.js ci: reduce flakiness of docs-infra `deploy-to-firebase.js` tests (#40088) 2020-12-14 11:38:32 -08:00
deploy-to-firebase.spec.js ci: reduce flakiness of docs-infra `deploy-to-firebase.js` tests (#40088) 2020-12-14 11:38:32 -08:00
payload.sh ci: start tracking CSS payload sizes for angular.io (#42584) 2021-06-18 17:32:26 +00:00
test-aio-a11y.js test(docs-infra): fix URL for a11y testing of angular.io (#42462) 2021-06-03 10:50:29 -07:00
test-external-urls.js docs: remove/update broken links in resources appearing on aio (#42232) 2021-05-26 14:21:12 -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 ci(docs-infra): ignore node version in `aio_monitoring_stable` CI job (for real) (#35033) 2020-01-29 09:25:46 -08:00