From aa213ba3f627a16e69e12f5e50e136b9da61ba75 Mon Sep 17 00:00:00 2001 From: ben Date: Thu, 18 Apr 2019 09:29:28 -0400 Subject: [PATCH] fix(docs): general typos --- docs/getting-started/nx-and-cli.md | 2 +- docs/guides/misc-ngrx.md | 15 +++++++-------- docs/guides/modernize-jest.md | 2 +- docs/guides/monorepo-nx-enterprise.md | 2 +- docs/guides/react-and-angular.md | 6 +++--- docs/guides/react.md | 2 +- docs/tutorial/07-share-code.md | 4 ++-- docs/tutorial/08-create-libs.md | 26 +++++++++++++------------- 8 files changed, 29 insertions(+), 30 deletions(-) diff --git a/docs/getting-started/nx-and-cli.md b/docs/getting-started/nx-and-cli.md index 2e5691b7c87c6..e9d6f6c441b87 100644 --- a/docs/getting-started/nx-and-cli.md +++ b/docs/getting-started/nx-and-cli.md @@ -138,7 +138,7 @@ Adding these tools to the dev workflow is challenging in a regular CLI project. When using Nx, adding Cypress or Jest is easy: ```bash -ng g application myapp --e2e-test-runner=cypress --unit-test-runner=jest # cyrpess and jest are actually defaults +ng g application myapp --e2e-test-runner=cypress --unit-test-runner=jest # cypress and jest are actually defaults ng g application myapp --e2e-test-runner=protractor --unit-test-runner=karma ``` diff --git a/docs/guides/misc-ngrx.md b/docs/guides/misc-ngrx.md index 8db3ee4973282..72d931cb6c8ef 100644 --- a/docs/guides/misc-ngrx.md +++ b/docs/guides/misc-ngrx.md @@ -229,12 +229,12 @@ The files generated are shown below and include placeholders for the _comments_ ###### comments.actions.ts ```typescript -import {Action} from "@ngrx/store"; +import { Action } from '@ngrx/store'; export enum CommentsActionTypes { - LoadComments = "[Comments] Load Comments", - CommentsLoaded = "[Comments] Comments Loaded" - CommentsLoadError = "[Comments] Comments Load Error" + LoadComments = '[Comments] Load Comments', + CommentsLoaded = '[Comments] Comments Loaded', + CommentsLoadError = '[Comments] Comments Load Error' } export class LoadComments implements Action { @@ -247,7 +247,7 @@ export class CommentsLoadError implements Action { export class CommentsLoaded implements Action { readonly type = CommentsActionTypes.CommentsLoaded; - constructor(public payload: any[]) { } + constructor(public payload: any[]) {} } export type CommentsAction = LoadComments | CommentsLoaded | CommentsLoadError; @@ -255,9 +255,8 @@ export type CommentsAction = LoadComments | CommentsLoaded | CommentsLoadError; export const fromCommentsActions = { LoadComments, CommentsLoaded, - CommentsLoadError -} - + CommentsLoadError +}; ``` ###### comments.selectors.ts diff --git a/docs/guides/modernize-jest.md b/docs/guides/modernize-jest.md index c3e5212f84f74..9e2af021a8726 100644 --- a/docs/guides/modernize-jest.md +++ b/docs/guides/modernize-jest.md @@ -48,7 +48,7 @@ By default, Nx will use Jest when creating applications and libraries. └── tslint.json ``` -Older versions of Nx used Karam as a default test runner. For those workspace, you have provide the `--unit-test-runner=jest` option when creating applications or libraries. +Older versions of Nx used Karma as a default test runner. For those workspace, you have provide the `--unit-test-runner=jest` option when creating applications or libraries. ### Running Tests diff --git a/docs/guides/monorepo-nx-enterprise.md b/docs/guides/monorepo-nx-enterprise.md index 8fd2d3de4c010..3ad389b6c1568 100644 --- a/docs/guides/monorepo-nx-enterprise.md +++ b/docs/guides/monorepo-nx-enterprise.md @@ -70,7 +70,7 @@ happynrwl/ │ │ │ └── utils-testing/ │ │ └── shared/ │ │ └── ui/ -| ├── adminapp/ +│ ├── adminapp/ | └── shared/ │ ├── ui/ │ └── utils-testing/ diff --git a/docs/guides/react-and-angular.md b/docs/guides/react-and-angular.md index a5651ff9b2efd..b64adc35cd4ab 100644 --- a/docs/guides/react-and-angular.md +++ b/docs/guides/react-and-angular.md @@ -48,7 +48,7 @@ happynrwl/ │ └── angularapp-e2e/ │ ├── src/ │ │ ├── integrations/ -│ │ │ ├── app.spec.ts +│ │ │ └── app.spec.ts │ │ ├── fixutres/ │ │ ├── plugins/ │ │ └── support/ @@ -134,8 +134,8 @@ happynrwl/ │ └── reactapp-e2e/ │ ├── src/ │ │ ├── integrations/ -│ │ │ ├── app.spec.ts -│ │ ├── fixtures// +│ │ │ └── app.spec.ts +│ │ ├── fixtures/ │ │ ├── plugins/ │ │ └── support/ │ ├── cypress.json diff --git a/docs/guides/react.md b/docs/guides/react.md index eac848e498965..0757cd485942d 100644 --- a/docs/guides/react.md +++ b/docs/guides/react.md @@ -63,7 +63,7 @@ myworkspace/ │   └── frontend-e2e/ │   │   ├── src/ │   │   │   ├── integrations/ -│   │   │   │   ├── app.spec.ts +│   │   │   │   └── app.spec.ts │   │   │   ├── fixutres/ │   │   │   ├── plugins/ │   │   │   └── support/ diff --git a/docs/tutorial/07-share-code.md b/docs/tutorial/07-share-code.md index cc1223b133ac4..71882028f5c7d 100644 --- a/docs/tutorial/07-share-code.md +++ b/docs/tutorial/07-share-code.md @@ -13,8 +13,8 @@ ng g lib data ```treeview myorg/ ├── apps/ -│   ├── frontend/ -│   ├── frontend-e2e/ +│   ├── todos/ +│   ├── todos-e2e/ │   └── api/ ├── libs/ │   └── data/ diff --git a/docs/tutorial/08-create-libs.md b/docs/tutorial/08-create-libs.md index fc431fe55128a..4b614fcff8f46 100644 --- a/docs/tutorial/08-create-libs.md +++ b/docs/tutorial/08-create-libs.md @@ -15,8 +15,8 @@ To illustrate how useful libraries can be, create a library of Angular component ```treeview myorg/ ├── apps/ -│   ├── frontend/ -│   ├── frontend-e2e/ +│   ├── todos/ +│   ├── todos-e2e/ │   └── api/ ├── libs/ │   ├── data/ @@ -24,8 +24,8 @@ myorg/ │      ├── jest.conf.js │      ├── src/ │      │   ├── lib/ -│      │   │ ├── ui.module.spec.ts -│      │   │ └── ui.module.ts +│      │   │ ├── ui.module.spec.ts +│      │   │ └── ui.module.ts │      │   └── index.ts │      ├── tsconfig.app.json │      ├── tsconfig.json @@ -61,8 +61,8 @@ ng g component todos --project=ui --export ```treeview myorg/ ├── apps/ -│   ├── frontend/ -│   ├── frontend-e2e/ +│   ├── todos/ +│   ├── todos-e2e/ │   └── api/ ├── libs/ │   ├── data/ @@ -70,13 +70,13 @@ myorg/ │      ├── jest.conf.js │      ├── src/ │      │   ├── lib/ -│ │ │ ├── todos/ -│ │ │ │ ├── todos.component.css -│ │ │ │ ├── todos.component.html -│ │ │ │ ├── todos.component.spec.ts -│ │ │ │ └── todos.component.ts -│      │   │ ├── ui.module.spec.ts -│      │   │ └── ui.module.ts +│ │ │ ├── todos/ +│ │ │ │ ├── todos.component.css +│ │ │ │ ├── todos.component.html +│ │ │ │ ├── todos.component.spec.ts +│ │ │ │ └── todos.component.ts +│      │   │ ├── ui.module.spec.ts +│      │   │ └── ui.module.ts │      │   └── index.ts │      ├── tsconfig.app.json │      ├── tsconfig.json