Zhicheng WANG
b035e68480
Merge remote-tracking branch 'en/master' into aio
...
# Conflicts:
# .travis.yml
# aio/content/guide/aot-compiler.md
# aio/content/guide/architecture.md
# aio/content/guide/build.md
# aio/content/guide/dependency-injection-in-action.md
# aio/content/guide/deployment.md
# aio/content/guide/elements.md
# aio/content/guide/file-structure.md
# aio/content/guide/glossary.md
# aio/content/guide/hierarchical-dependency-injection.md
# aio/content/guide/lifecycle-hooks.md
# aio/content/guide/ngmodule-faq.md
# aio/content/guide/pipes.md
# aio/content/guide/router.md
# aio/content/guide/rx-library.md
# aio/content/guide/service-worker-communications.md
# aio/content/guide/service-worker-config.md
# aio/content/guide/singleton-services.md
# aio/content/guide/template-syntax.md
# aio/content/guide/testing.md
# aio/content/guide/typescript-configuration.md
# aio/content/guide/universal.md
# aio/content/marketing/docs.md
# aio/content/marketing/features.html
# aio/content/tutorial/toh-pt0.md
# aio/content/tutorial/toh-pt6.md
# aio/package.json
# aio/src/app/layout/footer/footer.component.html
# aio/tools/transforms/templates/api/lib/memberHelpers.html
# aio/yarn.lock
# integration/cli-hello-world-ivy-minimal/src/polyfills.ts
# modules/benchmarks/e2e_test/largetable_perf.ts
# modules/benchmarks/e2e_test/largetable_spec.ts
# packages/animations/src/animation_metadata.ts
# packages/common/http/src/headers.ts
# packages/common/http/src/interceptor.ts
# packages/common/src/directives/ng_for_of.ts
# packages/common/src/directives/ng_if.ts
# packages/common/src/directives/ng_style.ts
# packages/common/src/directives/ng_switch.ts
# packages/core/src/change_detection/change_detection_util.ts
# packages/core/src/di/injectable.ts
# packages/core/src/interface/lifecycle_hooks.ts
# packages/core/src/linker/template_ref.ts
# packages/core/src/metadata/di.ts
# packages/core/src/metadata/directives.ts
# packages/core/src/metadata/ng_module.ts
# packages/core/src/render/api.ts
# packages/forms/src/form_providers.ts
# packages/forms/src/model.ts
# packages/router/src/config.ts
# packages/router/src/directives/router_link.ts
2019-02-17 00:00:16 +08:00
Zhicheng WANG
a4fc5f8e37
fix: 并行渲染,提高效率
2019-02-15 07:12:41 +08:00
Zhicheng WANG
54c67e6294
fix: 改用 puppeteer 进行 prerender,放弃 prerender 库
2019-02-15 07:12:41 +08:00
Zhicheng WANG
9ccc6de90f
fix: 移除字典
2019-02-15 07:12:41 +08:00
Zhicheng WANG
5aa7fbfe64
fix: 不再处理 span 和 a
2019-02-15 07:12:40 +08:00
Marc Laval
3842dd6a6d
fix(ivy): OnChanges should support updating one Input among many ( #28693 )
...
PR Close #28693
2019-02-13 19:15:44 -08:00
Kapunahele Wong
5cafd44654
fix(docs-infra): fix filtering in run-example-e2e.js ( #28663 )
...
PR Close #28663
2019-02-13 12:04:51 -08:00
Marc Laval
f8b9e61469
test(ivy): enable more docs examples e2e tests ( #28688 )
...
PR Close #28688
2019-02-13 09:53:13 -08:00
Brandon
1e64f37257
fix(docs-infra): add progression files to exclude list for docs examples ( #28650 )
...
Also disables Http guide under Ivy tests with documented error
PR Close #28650
2019-02-11 13:26:39 -08:00
Brandon
99e3a04ea2
ci(docs-infra): test docs examples with Ivy ( #28463 )
...
PR Close #28463
2019-02-11 17:16:52 +00:00
Brandon
0a95f8af9f
docs: add more files to be ignored during app compilation ( #28592 )
...
PR Close #28592
2019-02-11 17:09:25 +00:00
Brandon
d29f781685
docs: ignore progression filenames from compilation ( #28592 )
...
PR Close #28592
2019-02-11 17:09:24 +00:00
Brandon
425e0ee416
ci(docs-infra): run docs examples tests in production mode ( #28592 )
...
PR Close #28592
2019-02-11 17:09:23 +00:00
George Kalpakas
3de06dd794
build(docs-infra): use pinned dependencies when possible in ng-packages-installer ( #28510 )
...
Previously, `ng-packages-installer` would replace the version ranges for
all dependencies that were peer dependencies of an Angular package with
the version range used in the Angular package. This effectively meant
that the pinned version (from `yarn.lock`) for that dependency was
ignored (even if the pinned version satisfied the new version range).
This commit reduces non-determinism in CI jobs using the locally built
Angular packages by always using pinned versions of dependencies for
Angular package peer dependencies if possible.
For example, assuming the following versions for the RxJS dependency:
- **aio/package.json**: `rxjs: ^6.3.0`
- **aio/yarn.lock**: `rxjs@^6.3.0: 6.3.3`
- **@angular/core#peerDependencies**: `rxjs: ^6.0.0`
...the following versions would be used with `ng-packages-installer`:
- Before this commit:
- **aio/package.json**: `rxjs: ^6.0.0`
- **node_modules/rxjs/**: `6.4.0` (latest version satisfying `^6.0.0`)
- After this commit:
- **aio/package.json**: `rxjs: ^6.3.0`
- **node_modules/rxjs/**: `6.3.3` (because it satisfies `^6.0.0`)
PR Close #28510
2019-02-06 21:23:02 -08:00
George Kalpakas
9ce0c23c77
build(docs-infra): keep other dependencies pinned when installing local Angular packages ( #28510 )
...
`ng-packages-installer` can be used to replace Angular packages with
locally built ones (from `dist/packages-dist/`) along with their peer
dependencies.
Previously, in order to achieve this, `yarn install` was called with the
`--no-lockfile` option, which resulted in installing the latest versions
of all dependencies (including transitive ones) permitted by the
corresponding version ranges in `package.json` files. As a result, newly
released versions would be picked, resulting in unexpected,
non-deterministic breakages in CI.
This commit calls `yarn install` with the `--pure-lockfile` option
instead. As a result, only the Angular packages (for which the locally
built ones are used) and their peer dependencies are unpinned; the
pinned versions from `yarn.lock` are used for all other (direct and
transitive) dependencies.
While this does not eliminate non-determinism across builds, it
significantly reduces it.
PR Close #28510
2019-02-06 21:23:02 -08:00
George Kalpakas
08f55b35a5
perf(docs-infra): avoid unnecessary I/O operation in ng-packages-installer ( #28510 )
...
PR Close #28510
2019-02-06 21:23:02 -08:00
George Kalpakas
2b9811dad4
refactor(docs-infra): format package.json for readability in ng-packages-installer ( #28510 )
...
PR Close #28510
2019-02-06 21:23:02 -08:00
George Kalpakas
df74da02c6
build(docs-infra): remove unnecessary workaround for RxJS in ng-packages-installer ( #28510 )
...
Since b43f8bc7d , RxJS does not need to be patched any more in the
top-level `node_modules/`, so we don't need to special-case RxJS in
`ng-package-installer` and use `node_modules/rxjs/`.
PR Close #28510
2019-02-06 21:23:02 -08:00
George Kalpakas
72c36956de
ci: pin ChromeDriver to a version compatible with docker image's Chrome ( #28494 )
...
By default, `webdriver-manager update` will download the latest
ChromeDriver version, which might not be compatible with the Chrome
version included in the [docker image used on CI], causing CI failures.
Previously, we used to pin the ChromeDriver version on CI in
[ngcontainer's Dockerfile][2]. This was accidentally broken in #26691 ,
while moving from ngcontainer to default CircleCI docker images.
This commit fixes the issue by pinning ChromeDriver to a known
compatible version.
[1]: https://github.com/angular/angular/blob/bfd48d156d5663cc49d1ec40c2d73ff76a2fe62f/.circleci/config.yml#L16
[2]: https://github.com/angular/angular/blob/bfd48d156d5663cc49d1ec40c2d73ff76a2fe62f/tools/ngcontainer/Dockerfile#L63
PR Close #28494
2019-02-01 20:22:03 -05:00
jithil-kore
ec414b432e
perf: yarn version upgrade ( #28360 )
...
PR Close #28360
2019-01-29 11:58:47 -08:00
Alan Agius
d940b5541f
fix(docs-infra): boolean options default value is incorrect when it's undefined ( #27024 )
...
In the CLI when it's undefined it can mean `false`, or sometimes it will be overwritten by a runtime value.
PR Close #27024
2019-01-28 20:43:15 -08:00
WilliamKoza
e2c98fbe11
fix(docs-infra): change the key used to find out the cli section ( #28293 )
...
PR Close #28293
2019-01-24 15:41:44 -08:00
Zhicheng WANG
a58c6a846d
fix: 增补翻译
2019-01-17 20:06:15 +08:00
Zhicheng WANG
da1d1aefef
fix: 翻译默认 PR 文字
2019-01-17 20:06:15 +08:00
Zhicheng WANG
322397781b
fix: force change repo to angular-cn
2019-01-17 20:06:15 +08:00
Eriice
2d83508e82
fix
...
完善翻译
2019-01-16 20:07:29 +08:00
WilliamKoza
4c0104c846
fix(docs-infra): Add crossed through styling ( #28111 )
...
PR Close #28111
2019-01-14 10:45:46 -08:00
WilliamKoza
72f2428cd8
fix(docs-infra): change style of deprecated markers ( #28111 )
...
PR Close #28111
2019-01-14 10:45:46 -08:00
WilliamKoza
d577b8df75
fix(docs-infra): render deprecated markers for CLI command options ( #28111 )
...
fixes #27563
fixes #27423
PR Close #28111
2019-01-14 10:45:46 -08:00
Pete Bacon Darwin
cd51775390
build(docs-infra): render @see information in members ( #28069 )
...
Previously `@see` tags were only rendered for top level class-like
docs. Now these tags are rendered for methods and properties too.
PR Close #28069
2019-01-11 14:35:23 -08:00
George Kalpakas
76104f395f
feat(docs-infra): add support for custom test commands in cli-based docs examples ( #28020 )
...
Previously, cli-based docs examples were tested using `yarn e2e ...`. In
some cases, it might make sense to run different or additional checks
for a docs example (when running `yarn example-e2e` in `aio/`).
Currently, the only option is to define a custom project type and
overwrite the `e2e` yarn script in `package.json`. Doing so (in addition
to being cumbersome and verbose) would also end up in the `.zip` archive
that users can download to run the example locally. This would be
confusing, if these custom tests are specific to our CI needs.
This commit adds support for defining a custom list of commands per
example. These commands (if specified) would be run instead of the
default `yarn e2e ...`, when testing the docs examples on CI (via
`yarn example-e2e`).
(This feature will be used to verify that the
`service-worker-getting-started` example is set up correctly in a
subsequent commit, but can be useful in other cases as well.)
PR Close #28020
2019-01-11 11:17:18 -08:00
George Kalpakas
18ccfc6d73
feat(docs-infra): add service-worker project type ( #28020 )
...
File overwrites:
- **angular.json**: Add `serviceWorker: true` to production config.
- **package.json**: Add `@angular/service-worker` to dependencies.
This will make any `service-worker` examples work out-of-the-box, when
downloading and running locally from the `.zip` archives.
PR Close #28020
2019-01-11 11:17:17 -08:00
Adam Plumer
a100472b5d
build: bump year ( #27880 )
...
PR Close #27880
2019-01-11 11:15:59 -08:00
Paul Gschwendtner
c7d1890aaa
build: remove travisci leftovers ( #27979 )
...
PR Close #27979
2019-01-09 10:41:16 -08:00
Paul Gschwendtner
0199e26167
ci: remove travis ci setup ( #27937 )
...
we no longer need it... yay!!!
PR Close #27937
2019-01-07 15:35:09 -08:00
Zhicheng WANG
dd5e3f9ff9
fix: change edit branch to aio
2019-01-06 20:32:17 +08:00
Zhicheng WANG
23b4d5acd0
fix: 成功时返回 0
2019-01-05 22:55:01 +08:00
Zhicheng WANG
9e203ce92a
fix: 换成基于 Prerender 库的 prerender 方式
2019-01-05 14:58:41 +08:00
Zhicheng WANG
8957bbf209
fix: 翻译 CLI 模板
2019-01-04 14:39:52 +08:00
Zhicheng WANG
22e745af57
fix: 翻译 API 模板
2019-01-04 14:35:16 +08:00
Zhicheng WANG
9a86efc8ea
fix: 翻译 API 模板
2019-01-04 14:33:26 +08:00
Zhicheng WANG
b86481285a
fix: 翻译 API 模板
2019-01-04 14:06:54 +08:00
Zhicheng WANG
4c9e1a6a3d
fix: 为 Hn 添加 id,以便和英文锚点保持一致
2019-01-04 10:59:10 +08:00
Zhicheng WANG
178778222f
fix: 防止不同元素的对照文本混淆
2019-01-03 22:17:27 +08:00
Zhicheng WANG
1d65a38dcf
Revert "fix: move mark code to post-process-html step"
...
This reverts commit 0cb8d723
2019-01-01 19:16:14 +08:00
Zhicheng WANG
0cb8d723ac
fix: move mark code to post-process-html step
2019-01-01 16:16:02 +08:00
Zhicheng WANG
b018382e7d
refactor: use standalone library instead of translator.js
2019-01-01 16:16:02 +08:00
Zhicheng WANG
8744f17f5d
Merge remote-tracking branch 'en/master' into aio
...
# Conflicts:
# aio/content/cli/index.md
# aio/content/file-not-found.md
# aio/content/guide/architecture-modules.md
# aio/content/guide/architecture-services.md
# aio/content/guide/build.md
# aio/content/guide/deployment.md
# aio/content/guide/elements.md
# aio/content/guide/feature-modules.md
# aio/content/guide/file-structure.md
# aio/content/guide/forms-overview.md
# aio/content/guide/glossary.md
# aio/content/guide/i18n.md
# aio/content/guide/npm-packages.md
# aio/content/guide/releases.md
# aio/content/guide/router.md
# aio/content/guide/service-worker-config.md
# aio/content/guide/service-worker-intro.md
# aio/content/guide/testing.md
# aio/content/guide/upgrade-performance.md
# aio/content/navigation.json
# aio/content/tutorial/toh-pt0.md
# aio/content/tutorial/toh-pt5.md
# aio/content/tutorial/toh-pt6.md
# aio/package.json
# aio/src/app/custom-elements/api/api-list.component.ts
# aio/src/app/documents/document.service.ts
# aio/src/app/layout/top-menu/top-menu.component.ts
# aio/src/index.html
# aio/src/styles/2-modules/_api-pages.scss
# aio/tools/transforms/templates/api/base.template.html
# aio/tools/transforms/templates/api/lib/memberHelpers.html
# aio/tools/transforms/templates/cli/cli-container.template.html
# aio/tools/transforms/templates/lib/githubLinks.html
# aio/yarn.lock
# packages/animations/src/animation_metadata.ts
# packages/common/http/src/backend.ts
# packages/common/http/src/client.ts
# packages/common/http/src/headers.ts
# packages/common/http/src/interceptor.ts
# packages/common/http/src/module.ts
# packages/common/http/src/params.ts
# packages/common/http/src/request.ts
# packages/common/http/src/response.ts
# packages/common/src/common_module.ts
# packages/common/src/directives/ng_class.ts
# packages/common/src/directives/ng_style.ts
# packages/common/src/directives/ng_switch.ts
# packages/common/src/i18n/format_date.ts
# packages/common/src/pipes/number_pipe.ts
# packages/core/src/change_detection/change_detection_util.ts
# packages/core/src/change_detection/pipe_transform.ts
# packages/core/src/di/injectable.ts
# packages/core/src/linker/element_ref.ts
# packages/core/src/linker/template_ref.ts
# packages/core/src/metadata/di.ts
# packages/core/src/metadata/directives.ts
# packages/core/src/metadata/lifecycle_hooks.ts
# packages/core/src/metadata/ng_module.ts
# packages/core/src/render/api.ts
# packages/forms/src/directives/form_interface.ts
# packages/forms/src/directives/ng_form.ts
# packages/forms/src/directives/ng_model.ts
# packages/forms/src/directives/reactive_directives/form_control_name.ts
# packages/forms/src/directives/select_control_value_accessor.ts
# packages/forms/src/directives/validators.ts
# packages/forms/src/form_builder.ts
# packages/forms/src/form_providers.ts
# packages/forms/src/model.ts
# packages/forms/src/validators.ts
# packages/platform-browser/src/browser.ts
# packages/platform-browser/src/security/dom_sanitization_service.ts
# packages/router/src/config.ts
# packages/router/src/events.ts
# packages/router/src/router.ts
# packages/router/src/router_module.ts
# packages/router/src/shared.ts
2018-12-29 16:04:37 +08:00
Zhicheng WANG
57afc8bf19
feat: 增加日志
2018-12-26 09:51:33 +08:00
Zhicheng WANG
577a18e2ac
fix: 链接错误(#347)
2018-12-20 09:54:34 +08:00