diff --git a/aio/content/guide/build.md b/aio/content/guide/build.md index 860b7f6785..c5b8f6f360 100644 --- a/aio/content/guide/build.md +++ b/aio/content/guide/build.md @@ -289,8 +289,20 @@ Each budget entry is a JSON object with the following properties: - - + + diff --git a/aio/content/guide/file-structure.md b/aio/content/guide/file-structure.md index 9700723829..0c0135571e 100644 --- a/aio/content/guide/file-structure.md +++ b/aio/content/guide/file-structure.md @@ -38,17 +38,27 @@ The top level of the workspace contains a number of workspace-wide configuration 工作空间的顶级包含一系列工作空间级的配置文件。 -| WORKSPACE CONFIG FILES工作空间配置文件 | PURPOSE用途 | +| WORKSPACE CONFIG FILES | PURPOSE | | :--------------------- | :------------------------------------------| -| `.editorconfig` | Configuration for code editors. See [EditorConfig](https://editorconfig.org/). 代码编辑器配置。参见 [EditorConfig](https://editorconfig.org/) | -| `.gitignore` | Specifies intentionally untracked files that [Git](https://git-scm.com/) should ignore. 指定 [Git](https://git-scm.com/) 要忽略的非跟踪的文件。 | -| `angular.json` | CLI configuration defaults for all projects in the workspace, including configuration options for build, serve, and test tools that the CLI uses, such as [TSLint](https://palantir.github.io/tslint/), [Karma](https://karma-runner.github.io/), and [Protractor](http://www.protractortest.org/). For details, see [Angular Workspace Configuration](guide/workspace-config). 工作区中所有项目的默认 CLI 配置,包括 CLI 使用的构建选项、运行选项、测试工具选项(比如 [TSLint](https://palantir.github.io/tslint/)、[Karma](https://karma-runner.github.io/)、[Protractor](http://www.protractortest.org/))等。欲知详情,参见 [Angular 工作空间配置](guide/workspace-config)。 | -| `node_modules` | Provides [npm packages](guide/npm-packages) to the entire workspace. 提供给整个工作空间的 [npm 包](guide/npm-packages)。 | -| `package.json` | Configures [npm package dependencies](guide/npm-packages) that are available to all projects in the workspace. See [npm documentation](https://docs.npmjs.com/files/package.json) for the specific format and contents of this file.配置用于工作空间中所有项目的包依赖项。有关此文件的特有格式和内容,参见 [npm 文档](https://docs.npmjs.com/files/package.json)。 | -| `package-lock.json` | Provides version information for all packages installed into `node_modules` by the npm client. See [npm documentation](https://docs.npmjs.com/files/package-lock.json) for details. If you use the yarn client, this file will be [yarn.lock](https://yarnpkg.com/lang/en/docs/yarn-lock/) instead. 为 npm 客户端安装到 `node_modules` 中的所有软件包提供版本信息。详情参见 [npm documentation](https://docs.npmjs.com/files/package-lock.json)。如果你使用 yarn 客户端,此文件会由 [yarn.lock](https://yarnpkg.com/lang/en/docs/yarn-lock/) 代替。 | -| `tsconfig.json` | Default [TypeScript](https://www.typescriptlang.org/) configuration for apps in the workspace, including TypeScript and Angular template compiler options. See [TypeScript Configuration](guide/typescript-configuration). 工作空间中所有应用的默认 [TypeScript](https://www.typescriptlang.org/) 配置。包括 TypeScript 选项和 Angular 模板编译器选项。参见 [TypeScript 配置](guide/typescript-configuration)。 | -| `tslint.json` | Default [TSLint](https://palantir.github.io/tslint/) configuration for apps in the workspace. 工作空间中所有应用的默认 [TSLint](https://palantir.github.io/tslint/) 配置。 | -| `README.md` | Introductory documentation. 介绍文档 | +| 工作空间配置文件 | 用途 | +| `.editorconfig` | Configuration for code editors. See [EditorConfig](https://editorconfig.org/). | +| `.editorconfig` | 代码编辑器配置。参见 [EditorConfig](https://editorconfig.org/) | +| `.gitignore` | Specifies intentionally untracked files that [Git](https://git-scm.com/) should ignore. | +| `.gitignore` | 指定 [Git](https://git-scm.com/) 要忽略的非跟踪的文件。 | +| `angular.json` | CLI configuration defaults for all projects in the workspace, including configuration options for build, serve, and test tools that the CLI uses, such as [TSLint](https://palantir.github.io/tslint/), [Karma](https://karma-runner.github.io/), and [Protractor](http://www.protractortest.org/). For details, see [Angular Workspace Configuration](guide/workspace-config). | +| `angular.json` | 工作区中所有项目的默认 CLI 配置,包括 CLI 使用的构建选项、运行选项、测试工具选项(比如 [TSLint](https://palantir.github.io/tslint/)、[Karma](https://karma-runner.github.io/)、[Protractor](http://www.protractortest.org/))等。欲知详情,参见 [Angular 工作空间配置](guide/workspace-config)。 | +| `node_modules` | Provides [npm packages](guide/npm-packages) to the entire workspace. | +| `node_modules` | 提供给整个工作空间的 [npm 包](guide/npm-packages)。 | +| `package.json` | Configures [npm package dependencies](guide/npm-packages) that are available to all projects in the workspace. See [npm documentation](https://docs.npmjs.com/files/package.json) for the specific format and contents of this file. | +| `package.json` | 配置用于工作空间中所有项目的包依赖项。有关此文件的特有格式和内容,参见 [npm 文档](https://docs.npmjs.com/files/package.json)。 | +| `package-lock.json` | Provides version information for all packages installed into `node_modules` by the npm client. See [npm documentation](https://docs.npmjs.com/files/package-lock.json) for details. If you use the yarn client, this file will be [yarn.lock](https://yarnpkg.com/lang/en/docs/yarn-lock/) instead. | +| `package-lock.json` | 为 npm 客户端安装到 `node_modules` 中的所有软件包提供版本信息。详情参见 [npm documentation](https://docs.npmjs.com/files/package-lock.json)。如果你使用 yarn 客户端,此文件会由 [yarn.lock](https://yarnpkg.com/lang/en/docs/yarn-lock/) 代替。 | +| `tsconfig.json` | Default [TypeScript](https://www.typescriptlang.org/) configuration for apps in the workspace, including TypeScript and Angular template compiler options. See [TypeScript Configuration](guide/typescript-configuration). | +| `tsconfig.json` | 工作空间中所有应用的默认 [TypeScript](https://www.typescriptlang.org/) 配置。包括 TypeScript 选项和 Angular 模板编译器选项。参见 [TypeScript 配置](guide/typescript-configuration)。 | +| `tslint.json` | Default [TSLint](https://palantir.github.io/tslint/) configuration for apps in the workspace. | +| `tslint.json` | 工作空间中所有应用的默认 [TSLint](https://palantir.github.io/tslint/) 配置。 | +| `README.md` | Introductory documentation. | +| `README.md` | 介绍文档 | All projects within a workspace share a [CLI configuration context](guide/workspace-config). Project-specific [TypeScript](https://www.typescriptlang.org/) configuration files inherit from the workspace-wide `tsconfig.*.json`, and app-specific [TSLint](https://palantir.github.io/tslint/) configuration files inherit from the workspace-wide `tslint.json`. @@ -86,21 +96,35 @@ Workspace-wide `node_modules` dependencies are visible to this project. `src/` 子目录包含该初始应用的源文件(应用逻辑、数据和资源)以及配置文件。 工作空间级的 `node_modules` 依赖,对于这个项目也是可见的。 -| APP SOURCE & CONFIG FILES应用源码与配置文件 | PURPOSE用途 | +| APP SOURCE & CONFIG FILES | PURPOSE | | :--------------------- | :------------------------------------------| -| `app/` | Contains the component files in which your app logic and data are defined. See details in [App source folder](#app-src) below. 包含组件文件,其中定义了应用逻辑和数据。详情参见稍后的[应用源码目录](#app-src)。 | -| `assets/` | Contains image files and other asset files to be copied as-is when you build your application. 包含图像文件和其它文件,当构建应用时会被原样赋值到构建目标中。 | -| `environments/` | Contains build configuration options for particular target environments. By default there is an unnamed standard development environment and a production ("prod") environment. You can define additional target environment configurations. 包含针对特定目标环境的配置选项。默认情况下有一个未命名的标准开发环境和一个名叫 "prod" 的产品环境。你可以定义一些额外的目标环境配置。 | -| `browserlist` | Configures sharing of target browsers and Node.js versions among various front-end tools. See [Browserlist on GitHub](https://github.com/browserslist/browserslist) for more information. 配置各个目标浏览器和 Node.js 版本之间的市场占有率,供各种前端工具使用。详情参见 [GitHub 上的 Browserlist](https://github.com/browserslist/browserslist)。 | -| `favicon.ico` | An icon to use for this app in the bookmark bar. 一个用在书签栏上的应用图标。 | -| `index.html` | The main HTML page that is served when someone visits your site. The CLI automatically adds all JavaScript and CSS files when building your app, so you typically don't need to add any `
Property属性Value + + Property + + 属性 + + + + Value + + 值 + +