-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(js): add nrwl/js:node executor to serve node apps
- Loading branch information
Showing
45 changed files
with
1,378 additions
and
636 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
--- | ||
title: '@nrwl/js:node executor' | ||
description: 'Build Node.js applications' | ||
--- | ||
|
||
# @nrwl/js:node | ||
|
||
Build Node.js applications | ||
|
||
Options can be configured in `angular.json` when defining the executor, or when invoking it. Read more about how to configure targets and executors here: https://nx.dev/core-concepts/configuration#targets. | ||
|
||
## Options | ||
|
||
### buildTarget (_**required**_) | ||
|
||
Type: `string` | ||
|
||
The target to run to build you the app | ||
|
||
### args | ||
|
||
Type: `array` | ||
|
||
Extra args when starting the app | ||
|
||
### host | ||
|
||
Default: `localhost` | ||
|
||
Type: `string` | ||
|
||
The host to inspect the process on | ||
|
||
### inspect | ||
|
||
Default: `inspect` | ||
|
||
Type: `string | boolean ` | ||
|
||
Ensures the app is starting with debugging | ||
|
||
### port | ||
|
||
Default: `9229` | ||
|
||
Type: `number` | ||
|
||
The port to inspect the process on. Setting port to 0 will assign random free ports to all forked processes. | ||
|
||
### runtimeArgs | ||
|
||
Type: `array` | ||
|
||
Extra args passed to the node process | ||
|
||
### waitUntilTargets | ||
|
||
Type: `array` | ||
|
||
The targets to run to before starting the node app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
--- | ||
title: '@nrwl/js:node executor' | ||
description: 'Build Node.js applications' | ||
--- | ||
|
||
# @nrwl/js:node | ||
|
||
Build Node.js applications | ||
|
||
Options can be configured in `workspace.json` when defining the executor, or when invoking it. Read more about how to configure targets and executors here: https://nx.dev/core-concepts/configuration#targets. | ||
|
||
## Options | ||
|
||
### buildTarget (_**required**_) | ||
|
||
Type: `string` | ||
|
||
The target to run to build you the app | ||
|
||
### args | ||
|
||
Type: `array` | ||
|
||
Extra args when starting the app | ||
|
||
### host | ||
|
||
Default: `localhost` | ||
|
||
Type: `string` | ||
|
||
The host to inspect the process on | ||
|
||
### inspect | ||
|
||
Default: `inspect` | ||
|
||
Type: `string | boolean ` | ||
|
||
Ensures the app is starting with debugging | ||
|
||
### port | ||
|
||
Default: `9229` | ||
|
||
Type: `number` | ||
|
||
The port to inspect the process on. Setting port to 0 will assign random free ports to all forked processes. | ||
|
||
### runtimeArgs | ||
|
||
Type: `array` | ||
|
||
Extra args passed to the node process | ||
|
||
### waitUntilTargets | ||
|
||
Type: `array` | ||
|
||
The targets to run to before starting the node app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
--- | ||
title: '@nrwl/js:node executor' | ||
description: 'Build Node.js applications' | ||
--- | ||
|
||
# @nrwl/js:node | ||
|
||
Build Node.js applications | ||
|
||
Options can be configured in `workspace.json` when defining the executor, or when invoking it. Read more about how to configure targets and executors here: https://nx.dev/core-concepts/configuration#targets. | ||
|
||
## Options | ||
|
||
### buildTarget (_**required**_) | ||
|
||
Type: `string` | ||
|
||
The target to run to build you the app | ||
|
||
### args | ||
|
||
Type: `array` | ||
|
||
Extra args when starting the app | ||
|
||
### host | ||
|
||
Default: `localhost` | ||
|
||
Type: `string` | ||
|
||
The host to inspect the process on | ||
|
||
### inspect | ||
|
||
Default: `inspect` | ||
|
||
Type: `string | boolean ` | ||
|
||
Ensures the app is starting with debugging | ||
|
||
### port | ||
|
||
Default: `9229` | ||
|
||
Type: `number` | ||
|
||
The port to inspect the process on. Setting port to 0 will assign random free ports to all forked processes. | ||
|
||
### runtimeArgs | ||
|
||
Type: `array` | ||
|
||
Extra args passed to the node process | ||
|
||
### waitUntilTargets | ||
|
||
Type: `array` | ||
|
||
The targets to run to before starting the node app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,5 +30,5 @@ | |
"outputs": ["coverage/e2e/cli"] | ||
} | ||
}, | ||
"implicitDependencies": ["cli"] | ||
"implicitDependencies": ["cli", "js"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
1139c61
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: