15190 Commits
Author SHA1 Message Date
Pete Bacon Darwin 6e30b83267 build(docs-infra): ensure that deployment works on CI (#39542)
The actual "main" part of the script that is executed was using
an uninitialized variable. This is fixed and a test is added to
check.

PR Close #39542
2020-11-02 12:29:26 -08:00
George Kalpakas 206f87af04 build(docs-infra): upgrade firebase-tools to v8.14.1 (#39479)
This commit upgrades `firebase-tools` (used to deploy angular.io to
Firebase hosting) to the latest version. This gives us access to the
latest fixes/improvements and also new features, such as
[version cloning][1].

[1]: https://firebase.google.com/docs/hosting/manage-hosting-resources#cli-commands-cloning

PR Close #39479
2020-11-02 07:55:46 -08:00
George Kalpakas bd016a248c build(docs-infra): deploy angular.io to new Firebase sites (#39479)
Previously, the documentation for each major Angular version was hosted
on each own Firebase project. This required creating a new project for
each major release and increased the administrative/maintenance cost.

Now that Firebase supports hosting [multiple websites][1] as part of the
same project, we are switching to deploying all major versions to sites
created on `angular-io` project.

This is part of the work needed to prepare angular.io for our
[new versioning/branching process][2] (also tracked in #39366).

[1]: https://firebase.google.com/docs/hosting/multisites
[2]: https://docs.google.com/document/d/197kVillDwx-RZtSVOBtPb4BBIAw0E9RT3q3v6DZkykU

PR Close #39479
2020-11-02 07:55:46 -08:00
George Kalpakas 5293b3f69e refactor(docs-infra): break up deploy-to-firebase.js script into functions (#39479)
This commit breaks up the code in `deploy-to-firebase.js` script, that
we use for deploying angular.io to production, to smaller functions
(instead of a monolithic block). This makes the script easier to
maintain and also makes testing individual operations easier.

The commit also updates the `deploy-to-firebase.spec.js` spec file to
take advantage of the standalone functions to speed up testing by
calling the corresponding function instead of having to spawn a new
process and run the `deploy-to-firebase.js` script with the `--dry-run`
flag.

NOTE: Before updating the tests, I verified that the updated
      `deploy-to-firebase.js` script passed the old tests.

PR Close #39479
2020-11-02 07:55:46 -08:00
George Kalpakas 0565aeeeb9 build(docs-infra): add support for RC deployments to deployment script (#39479)
This commit updates the angular.io deployment script
(`deploy-to-firebase.js`) to support deploying release-candidate
versions.

This is part of the work needed to prepare angular.io for our
[new versioning/branching process][1] (also tracked in #39366).

[1]: https://docs.google.com/document/d/197kVillDwx-RZtSVOBtPb4BBIAw0E9RT3q3v6DZkykU

PR Close #39479
2020-11-02 07:55:46 -08:00
George Kalpakas 9fe8bbb3b6 build(docs-infra): add new angular.io build configuration for release-candidates (#39479)
This commit adds a new build configuration/deployment mode (`rc`) for
deploying release-candidate versions to angular.io.

This is part of the work needed to prepare angular.io for our
[new versioning/branching process][1] (also tracked in #39366).

[1]: https://docs.google.com/document/d/197kVillDwx-RZtSVOBtPb4BBIAw0E9RT3q3v6DZkykU

PR Close #39479
2020-11-02 07:55:46 -08:00
George Kalpakas bab2351885 refactor(docs-infra): use Sass mixin to simplify the creation of deployment mode themes (#39479)
Different deployment modes (such as `archive` and `next`) are identified
by the different colors used in prominent elements of the page, such as
the topbar and the footer.

Previously, the necessary styles for creating such a deployment mode
"theme" were duplicated for each mode.

This commit simplifies the creation/modification of a deployment mode
theme by introducing a Sass mixin that generates the necessary styles
(when provided with necessary theme colors).

PR Close #39479
2020-11-02 07:55:46 -08:00
George Kalpakas a18e99bfe6 test(docs-infra): ensure deploy-to-firebase tests pass locally (#39479)
Previously, the `deploy-to-firebase.js` script and the accompanying
`deploy-to-firebase.spec.js` spec file were using the `origin` remote
alias in certain commands. This works fine on CI, where `origin` points
to the `angular/angular` GitHub repo, but might not work locally.

This commit ensures that the correct remote is used by explicitly
specifying it by the URL, thus ensuring that the tests will behave
identically on CI and locally.

PR Close #39479
2020-11-02 07:55:46 -08:00
George Kalpakas 18c44de3aa build(docs-infra): switch deploy-to-firebase.sh script to JS (#39479)
This commit switches the `deploy-to-firebase.sh` script, that we use for
deploying angular.io to production, from Bash to JavaScript. This makes
the script easier to maintain.

For the same reasons, it also switches the `deploy-to-firebase.test.sh`
script, that we use for testing the `deploy-to-firebase` script, from
Bash to JavaScript (using jasmine as the test runner).

Finally, this commit also updates ShellJS to the latest version to get
better error messages (including the actual error) when `exec()` fails.

NOTE: Before switching the test script to JS, I verified that the new
      `deploy-to-firebase.js` script passed the tests with the old
      `deploy-to-firebase.test.sh` script.

PR Close #39479
2020-11-02 07:55:46 -08:00
Stephen Fluin 72c3ebe682 docs: remove the release schedule from docs (#34474)
Removing for now, since the info is stale, and we need to determine how to adjust the schedule due to the unexpected and significant version 9 delay.

PR Close #34474
2020-02-06 14:32:13 -08:00
George Kalpakas 8b88269ae1 docs: update events page
Fixes #34971
2020-01-29 21:36:57 +02:00
frosty fb5eb5f337 docs: ng-conf 2020 date change (#35019)
Update the range of dates where ng-conf will appear on angular.io.

PR Close #35019
2020-01-29 21:25:57 +02:00
owenmecham afc8100d12 docs: ng-conf 2020 the musical (#34342)
Added event and announcement info for ng-conf 2020

PR Close #34342
2020-01-29 21:23:41 +02:00
George Kalpakas 015f833f8e ci(docs-infra): ignore node version in aio_monitoring_stable CI job
In #34955, we switched to Node.js v12 on master and 9.0.x. This causes
the `aio_monitoring_job` CI job (which checks out files from the stable
branch; currently 8.2.x) to start failing yarn's engines check (since
the 8.2.x branch expects Node.js version <11).
Example failure: https://circleci.com/gh/angular/angular/602499

Since the job is expected to run with files from both the stable and the
master branches (and since the version of Node.js is not important
here), this commit uses the `--ignore-engines` option to prevent
failures due to Node.js version mismatch.

NOTE:
Typically, the stable and master branch are on the same Node.js version,
because related PRs land on both master and the patch branch. One
exception is during RC periods, when the stable branch is different than
the patch branch. These periods are usually short, but in the case of
9.0.0 the period has lasted several months causing the CI environments
between master and the stable branch to get significantly out-of-sync.
2020-01-28 16:06:26 +02:00
George Kalpakas d2aad91569 build: update firebase-tools to the latest version
This is a backport of #34682 to the 8.2.x branch.

It fixes `Server Error. certificate has expired` errors that cause AIO
deployment to fail.
(Example CI failure: https://circleci.com/gh/angular/angular/599109)
2020-01-25 11:52:00 +02:00
George Kalpakas e35d9eaa7d build: vendor yarn using the .yarnrc yarn-path value
This is a backport of #34902 to the 8.2.x branch (except that yarn
v1.17.3 is used to satisfy the yarn version requirements of the 8.2.x
branch).
This will ensure that an appropriate yarn version will be used in the
`aio_monitoring_stable` CI job, which checks out files from the git
branch corresponding to the latest stable Angular version (currently the
8.2.x branch).

(Example of the current failure:
https://circleci.com/gh/angular/angular/598455)
2020-01-24 19:43:13 +02:00
Kara Erickson bbeac0727b release: cut the v8.2.14 release 8.2.14 2019-11-13 12:21:39 -08:00
Joey Perrott 03b3a3881a build: set up all packages to publish via wombot proxy 2019-11-13 12:15:30 -08:00
Judy Bogart 2c74996b7c docs: reorganize get-started to emphasize ready-made app 2019-11-11 14:46:57 -08:00
Michael Prentice 28406707e0 fix(service-worker): ensure initialization before handling messages (#32525)
- resolves "Invariant violated (initialize): latest hash null has no known manifest"
- Thanks to @gkalpak and @hsta for helping test and investigate this fix

Fixes #25611

PR Close #32525
2019-11-11 14:39:09 -08:00
Alan Agius b43ae44d84 fix(bazel): exclude @angular/cli from metadata build
Closes #33502
2019-10-31 18:35:16 +01:00
Joey Perrott 2174827fe5 build: ensure that version stamping is applied when the npm_package publish action is called (#33512)
PR Close #33512
2019-10-31 10:21:43 -07:00
Andrew Kushnir 8bce694c2f release: cut the v8.2.13 release 8.2.13 2019-10-30 14:03:06 -07:00
thanhpd 38e9959cf0 docs: remove redundant whitespaces and fix minor typos (#33483)
PR Close #33483
2019-10-30 10:42:37 -07:00
Joey Perrott 1fc778644a build: remove --nowatchfs flag as --watchfs is a noop on windows now (#33471)
PR Close #33471
2019-10-29 14:05:49 -07:00
John Ralph Umandal a08b1816d5 docs: fixed cli ng update reference link (#33320)
The automated link for ng update is currently going to the 
wrong page. Edit directs them to the correct page.
PR Close #33320
2019-10-29 14:03:53 -07:00
Pete Bacon Darwin f97c464a9e fix(compiler): i18n - ignore alt-trans tags in XLIFF 1.2 (#33464)
The parser was accidentally reading the `target` tag
below the `alt-trans` target and overriding the correct
`target` tag.

Fixes #33161

PR Close #33464
2019-10-29 11:49:58 -07:00
thanhpd ac4353ce8a docs: added missing whitespaces (#33424)
PR Close #33424
2019-10-29 11:40:50 -07:00
George Kalpakas 26a6db208c docs(docs-infra): document running docs examples in ivy mode (#33399)
PR Close #33399
2019-10-25 09:19:36 -07:00
Geoff Bass e0428fe83c docs: fix typo in getting started guide (#33372)
Add a missing word to make the phrase grammatically correct
PR Close #33372
2019-10-24 09:51:37 -07:00