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
Andrus Diaz 82df950c65 docs: add example of a server in golang for deployment (#33092)
PR Close #33092
2019-10-24 09:51:06 -07:00
Andrew Kushnir 663aba5775 release: cut the v8.2.12 release 8.2.12 2019-10-23 15:00:08 -07:00
Stefanie Fluin 2d465ee37b feat(docs-infra): implement figure styles (#33259)
PR#28396 originally addressed an update via issue #23983 to make images more visible with a white background (implementation of gray "lightbox").

This PR implements those styles defined in PR#28396.

PR Close #33259
2019-10-23 12:59:35 -07:00
ODAVING 70238f7d7d docs: fix spelling error in angular component (#32971)
change component class section of the docs

Closes #32948

PR Close #32971
2019-10-23 11:46:42 -07:00
Keen Yee Liau 704e3543dc docs: Fix appHighlightColor typo (#33331)
In the example, there's no directive nor input that's named `appHighlightColor`.
It should be `appHighlight`, referring to the input binding.

PR Close #33331
2019-10-23 11:08:19 -07:00
George Kalpakas 98e71d31db build(docs-infra): upgrade cli command docs sources to 5bf754195 (#33350)
Updating [angular#8.2.x](https://github.com/angular/angular/tree/8.2.x) from [cli-builds#8.3.x](https://github.com/angular/cli-builds/tree/8.3.x).

##
Relevant changes in [commit range](https://github.com/angular/cli-builds/compare/e21aeeecd...5bf754195):

**Modified**
- help/update.json

##

PR Close #33350
2019-10-23 09:59:37 -07:00
George Kalpakas 7478d0cf4d test(docs-infra): disable es5 size tracking in aio tests (#33356)
PR Close #33356
2019-10-23 09:58:13 -07:00
Paul Gschwendtner ef5c0dae7d build: fix gulp setup not working with node v12 (#33348)
It looks like the gulp setup does not work with NodeJS v12. This
is because we still use gulp for a few tasks, but gulp v3 is not
compatible with NodeJS v12. We had a similar issue for NodeJS v12,
but worked around it by updating the `natives` module version.

To actually solve this in a more future-proof way, without
updating or removing Gulp (for now), we just overwrite the
`graceful-fs` version. The latest version of `graceful-fs`
does no longer depend on the `natives` package and therefore
works properly with NodeJS >= v10.

PR Close #33348
2019-10-23 09:16:21 -07:00
George Kalpakas 57c3a238ea fix(docs-infra): scroll to top when navigating to new page via address bar (#33344)
Previously, when navigating to a new page via a link, the scroll
position was correctly restored to 0, but navigating to a new page via
typing the URL in the browser address bar keeps the old scroll position.

This commit ensures that the scroll position is restored to 0 whenever
the `ScrollService` is instantiated anew (i.e. new page navigation). The
old behavior of retaining the scroll position on reload is kept by
storing the old URL when leaving a page and only applying the stored
scroll position if the new URL matches the stored one.

Fixes #33260

PR Close #33344
2019-10-23 09:12:04 -07:00
Joey Perrott bb284066ca build: update bazel remote build config and documentation (#33304)
PR Close #33304
2019-10-21 16:52:46 -04:00
TinyMan fc147289a9 docs: clarrify use of sw behind redirect (#32915)
Closes #30684

PR Close #32915
2019-10-21 16:50:52 -04:00
David Sánchez 3f3e1bfce9 docs: clarify steps in Hosting on Firebase (#33089)
PR Close #33089
2019-10-21 16:07:05 -04:00
Colum Ferry 2b02e87f4a docs(forms): fix grammar and add clarification to setValue docs (#33126)
Changed `setValue` documentation for throwing an error as it contained a grammar
mistake and also may have caused ambiguity around when exactly the
method would throw.

PR Close #33126
2019-10-21 15:58:39 -04:00
Diego Juliao 88869a2965 docs: update deployers table with ngx-deploy-npm (#33269)
ngx-deploy-npm is a custom deployer to publish Angular libraries to NPM

PR Close #33269
2019-10-21 11:28:21 -04:00
Judy Bogart 958aba9391 docs: edit and organize language service doc (#33202)
PR Close #33202
2019-10-18 18:19:06 -04:00
Paul Gschwendtner d9581bd6a4 ci: fix dev-infra incorrectly matching all ".bzl" files as codeowner (#33249)
The `dev-infra-framework` codeowners section is located after
all the codeowner sections for the individual framework packages.

This means that for certain wildcards, like `*.bzl` take precedence
over the individual package sections (like of `/packages/bazel/**`).
This can be observed in the following PR where `dev-infra` got requested
for file changes to `@angular/bazel`. #32955.

To fix this, we move the `dev-infra-framework` section before all
individual framework package sections. This means that we only match
files which are not matched by other patterns.

Additionally a pattern for `*.BAZEL` has been added to the dev-infra
section. This helps getting changes to `BUILD.bazel` files through
easier as dev-infra can review those (Note: only for bazel files which
are not matched by other patterns).

PR Close #33249
2019-10-18 16:27:30 -04:00
Matias Niemelä 19ada81a08 build: fix tslint issue with String instantiation 2019-10-18 11:47:39 -07:00
Amadou Sall 3d60f2cefc docs: clarify instructions on where to create the proxy.conf.json file (#33244)
PR Close #33244
2019-10-18 14:40:58 -04:00
Sahan Serasinghe f13e40db1b docs: change "patchMatch" to "pathMatch" (#32935)
PR Close #32935
2019-10-18 11:31:54 -04:00
Danny Skoog fab6ea0109 docs: correct vscode clang-format setup instructions (#33190)
PR Close #33190
2019-10-17 14:17:56 -04:00