Skip to content

Commit

Permalink
feat(react): nx serve --maxWorkers --memoryLimit should work
Browse files Browse the repository at this point in the history
  • Loading branch information
czaplej committed Feb 25, 2020
1 parent 55bde7b commit 884b887
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/angular/api-web/builders/dev-server.md
Expand Up @@ -34,6 +34,18 @@ Type: `boolean`

Whether to reload the page on change, using live-reload.

### maxWorkers

Type: `number`

Number of workers to use for type checking.

### memoryLimit

Type: `number`

Memory limit for type checking service process in MB.

### open

Default: `false`
Expand Down
12 changes: 12 additions & 0 deletions docs/react/api-web/builders/dev-server.md
Expand Up @@ -35,6 +35,18 @@ Type: `boolean`

Whether to reload the page on change, using live-reload.

### maxWorkers

Type: `number`

Number of workers to use for type checking.

### memoryLimit

Type: `number`

Memory limit for type checking service process in MB.

### open

Default: `false`
Expand Down
12 changes: 12 additions & 0 deletions docs/web/api-web/builders/dev-server.md
Expand Up @@ -35,6 +35,18 @@ Type: `boolean`

Whether to reload the page on change, using live-reload.

### maxWorkers

Type: `number`

Number of workers to use for type checking.

### memoryLimit

Type: `number`

Memory limit for type checking service process in MB.

### open

Default: `false`
Expand Down
2 changes: 2 additions & 0 deletions packages/web/src/builders/dev-server/dev-server.impl.ts
Expand Up @@ -35,6 +35,8 @@ export interface WebDevServerOptions extends JsonObject {
liveReload: boolean;
watch: boolean;
allowedHosts: string;
maxWorkers?: number;
memoryLimit?: number;
}

export default createBuilder<WebDevServerOptions>(run);
Expand Down
8 changes: 8 additions & 0 deletions packages/web/src/builders/dev-server/schema.json
Expand Up @@ -52,6 +52,14 @@
"allowedHosts": {
"type": "string",
"description": "This option allows you to whitelist services that are allowed to access the dev server."
},
"memoryLimit": {
"type": "number",
"description": "Memory limit for type checking service process in MB."
},
"maxWorkers": {
"type": "number",
"description": "Number of workers to use for type checking."
}
}
}

0 comments on commit 884b887

Please sign in to comment.