Skip to content

Commit

Permalink
Merge branch 'nrwl:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
sidmonta committed Mar 22, 2022
2 parents 750954c + 0331b38 commit 2a1cea6
Show file tree
Hide file tree
Showing 653 changed files with 14,368 additions and 9,146 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version: 2.1
# ORBS
# -------------------------
orbs:
nx: nrwl/nx@1.0.0
nx: nrwl/nx@1.1.3

# -------------------------
# DEFAULTS
Expand Down
5 changes: 5 additions & 0 deletions community/approved-plugins.json
Original file line number Diff line number Diff line change
Expand Up @@ -253,5 +253,10 @@
"name": "@nxrs/cargo",
"description": "Nx plugin adding first-class support for Rust applications and libraries.",
"url": "https://github.com/nxrs/cargo/tree/main/packages/cargo"
},
{
"name": "nx-uvu",
"description": "An nx executor for the uvu test library",
"url": "https://github.com/jmcdo29/nx-uvu"
}
]
8 changes: 8 additions & 0 deletions docs/generated/api-angular/executors/webpack-browser.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,14 @@ Type: `array`

Budget thresholds to ensure parts of your application stay within boundaries which you set.

### buildLibsFromSource

Default: `true`

Type: `boolean`

Read buildable libraries from source instead of building them separately.

### buildOptimizer

Default: `true`
Expand Down
156 changes: 156 additions & 0 deletions docs/generated/api-angular/generators/component.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,156 @@
---
title: '@nrwl/angular:component generator'
description: 'Generate an Angular Component.'
---

# @nrwl/angular:component

Generate an Angular Component.

## Usage

```bash
nx generate component ...
```

By default, Nx will search for `component` in the default collection provisioned in `workspace.json`.

You can specify the collection explicitly as follows:

```bash
nx g @nrwl/angular:component ...
```

Show what will be generated without writing to disk:

```bash
nx g component ... --dry-run
```

## Options

### name (_**required**_)

Type: `string`

The name of the component.

### changeDetection

Alias(es): c

Default: `Default`

Type: `string`

Possible values: `Default`, `OnPush`

The change detection strategy to use in the new component.

### displayBlock

Alias(es): b

Default: `false`

Type: `boolean`

Specifies if the style will contain `:host { display: block; }`.

### export

Default: `false`

Type: `boolean`

Specifies if the component should be exported in the declaring NgModule. Additionally, if the project is a library, the component will be exported from the project's entry point (normally `index.ts`).

### flat

Default: `false`

Type: `boolean`

Create the new files at the top level of the current project.

### inlineStyle

Alias(es): s

Default: `false`

Type: `boolean`

Include styles inline in the component.ts file. Only CSS styles can be included inline. By default, an external styles file is created and referenced in the component.ts file.

### inlineTemplate

Alias(es): t

Default: `false`

Type: `boolean`

Include template inline in the component.ts file. By default, an external template file is created and referenced in the component.ts file.

### path (**hidden**)

Type: `string`

The path at which to create the component file, relative to the current workspace. Default is a folder with the same name as the component in the project root.

### project

Type: `string`

The name of the project.

### selector

Type: `string`

The HTML selector to use for this component.

### skipSelector

Default: `false`

Type: `boolean`

Specifies if the component should have a selector or not.

### skipTests

Default: `false`

Type: `boolean`

Do not create "spec.ts" test files for the new component.

### style

Default: `css`

Type: `string`

Possible values: `css`, `scss`, `sass`, `less`, `none`

The file extension or preprocessor to use for style files, or 'none' to skip generating the style file.

### type

Default: `component`

Type: `string`

Adds a developer-defined type to the filename, in the format "name.type.ts".

### viewEncapsulation

Alias(es): v

Type: `string`

Possible values: `Emulated`, `None`, `ShadowDom`

The view encapsulation strategy to use in the new component.
60 changes: 60 additions & 0 deletions docs/generated/api-angular/generators/mfe-host.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
---
title: '@nrwl/angular:mfe-host generator'
description: 'Generate a Host Angular Micro Frontend Application.'
---

# @nrwl/angular:mfe-host

Generate a Host Angular Micro Frontend Application.

## Usage

```bash
nx generate mfe-host ...
```

```bash
nx g host ... # same
```

By default, Nx will search for `mfe-host` in the default collection provisioned in `workspace.json`.

You can specify the collection explicitly as follows:

```bash
nx g @nrwl/angular:mfe-host ...
```

Show what will be generated without writing to disk:

```bash
nx g mfe-host ... --dry-run
```

### Examples

Create an Angular app with configuration in place for MFE. If remotes is provided, attach the remote app to this app's configuration.:

```bash
nx g @nrwl/angular:mfe-host appName --remotes=remote1
```

## Options

### name (_**required**_)

Type: `string`

The name to give to the host Angular app.

### host

Type: `string`

The name of the host app to attach this host app to.

### port

Type: `number`

The port on which this app should be served.
60 changes: 60 additions & 0 deletions docs/generated/api-angular/generators/mfe-remote.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
---
title: '@nrwl/angular:mfe-remote generator'
description: 'Generate a Remote Angular Micro-Frontend Application.'
---

# @nrwl/angular:mfe-remote

Generate a Remote Angular Micro-Frontend Application.

## Usage

```bash
nx generate mfe-remote ...
```

```bash
nx g remote ... # same
```

By default, Nx will search for `mfe-remote` in the default collection provisioned in `workspace.json`.

You can specify the collection explicitly as follows:

```bash
nx g @nrwl/angular:mfe-remote ...
```

Show what will be generated without writing to disk:

```bash
nx g mfe-remote ... --dry-run
```

### Examples

Create an Angular app with configuration in place for MFE. If host is provided, attach this remote app to host app's configuration.:

```bash
nx g @nrwl/angular:mfe-remote appName --host=host --port=4201
```

## Options

### name (_**required**_)

Type: `string`

The name to give to the remote Angular app.

### host

Type: `string`

The name of the host app to attach this remote app to.

### port

Type: `number`

The port on which this app should be served.
2 changes: 1 addition & 1 deletion docs/generated/api-angular/generators/scam-directive.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ The name of the directive.

### export

Default: `false`
Default: `true`

Type: `boolean`

Expand Down
2 changes: 1 addition & 1 deletion docs/generated/api-angular/generators/scam-pipe.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ The name of the pipe.

### export

Default: `false`
Default: `true`

Type: `boolean`

Expand Down
2 changes: 1 addition & 1 deletion docs/generated/api-angular/generators/scam.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Specifies if the style will contain `:host { display: block; }`.

### export

Default: `false`
Default: `true`

Type: `boolean`

Expand Down
12 changes: 12 additions & 0 deletions docs/generated/api-jest/executors/jest.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ Type: `array`

A list of reporter names that Jest uses when writing coverage reports. Any istanbul reporter

### detectLeaks

Type: `boolean`

**EXPERIMENTAL**: Detect memory leaks in tests. After executing a test, it will try to garbage collect the global object used, and fail if it was leaked

### detectOpenHandles

Type: `boolean`
Expand All @@ -101,6 +107,12 @@ Type: `boolean`

Prints the test results in JSON. This mode will send all other test output and user messages to stderr. (https://jestjs.io/docs/cli#--json)

### logHeapUsage

Type: `boolean`

Logs the heap usage after every test. Useful to debug memory leaks. Use together with --runInBand and --expose-gc in node.

### maxWorkers

Alias(es): w
Expand Down
10 changes: 10 additions & 0 deletions docs/generated/api-node/generators/library.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,16 @@ Type: `boolean`

Generate a buildable library.

### compiler

Default: `tsc`

Type: `string`

Possible values: `tsc`, `swc`

The compiler used by the build and test targets

### directory

Alias(es): dir
Expand Down

0 comments on commit 2a1cea6

Please sign in to comment.