Skip to content

Commit

Permalink
feat(repo): docs generator prints options
Browse files Browse the repository at this point in the history
  • Loading branch information
AgentEnder committed May 21, 2021
1 parent a7828c5 commit bddc5b5
Show file tree
Hide file tree
Showing 25 changed files with 398 additions and 83 deletions.
42 changes: 0 additions & 42 deletions docs/core/core.md

This file was deleted.

31 changes: 31 additions & 0 deletions docs/core/executors/app.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# app

## NxDotnet Application Generator

## Options

### name (string)

### tags (string)

Add tags to the project (used for linting)

### directory (string)

A directory where the project is placed

### template (string)

The template to instantiate when the command is invoked. Each template might have specific options you can pass.

### language (string)

Which language should the project use?

### testTemplate (string)

Which template should be used for creating the tests project?

### skipOutputPathManipulation (boolean)

Skip XML changes for default build path
3 changes: 3 additions & 0 deletions docs/core/executors/init.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# init

## Initialize NxDotnet
27 changes: 27 additions & 0 deletions docs/core/executors/lib.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# lib

## NxDotnet Library Generator

## Options

### name (string)

### tags (string)

Add tags to the project (used for linting)

### directory (string)

A directory where the project is placed

### template (string)

The template to instantiate when the command is invoked. Each template might have specific options you can pass.

### language (string)

Which language should the project use?

### testTemplate (string)

Which template should be used for creating the tests project?
37 changes: 37 additions & 0 deletions docs/core/executors/nuget-reference.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# nuget-reference

## Options

### project (string)

### packageName (string)

Which package should be added?

### version (string)

The package version to add.

### framework (string)

Adds a package reference only when targeting a specific framework.

### packageDirectory (string)

The directory where to restore the packages. The default package restore location is %userprofile%\.nuget\packages on Windows and ~/.nuget/packages on macOS and Linux. For more information, see [Managing the global packages, cache, and temp folders in NuGet](https://docs.microsoft.com/en-us/nuget/consume-packages/managing-the-global-packages-and-cache-folders).

### prerelease (boolean)

Allows prerelease packages to be installed. Available since .NET Core 5 SDK

### source (string)

The URI of the NuGet package source to use during the restore operation.

### noRestore (boolean)

Adds a package reference without performing a restore preview and compatibility check.

### allowVersionMismatch (boolean)

Ignores single version principle for this package across all apps in the workspace
13 changes: 13 additions & 0 deletions docs/core/executors/project-reference.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# project-reference

## NxDotnet Application Generator

## Options

### project (string)

Host project

### reference (string)

Source project
1 change: 1 addition & 0 deletions docs/core/executors/restore.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# restore
1 change: 1 addition & 0 deletions docs/core/executors/sync.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# sync
31 changes: 31 additions & 0 deletions docs/core/generators/app.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# app

## NxDotnet Application Generator

## Options

### name (string)

### tags (string)

Add tags to the project (used for linting)

### directory (string)

A directory where the project is placed

### template (string)

The template to instantiate when the command is invoked. Each template might have specific options you can pass.

### language (string)

Which language should the project use?

### testTemplate (string)

Which template should be used for creating the tests project?

### skipOutputPathManipulation (boolean)

Skip XML changes for default build path
3 changes: 3 additions & 0 deletions docs/core/generators/init.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# init

## Initialize NxDotnet
27 changes: 27 additions & 0 deletions docs/core/generators/lib.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# lib

## NxDotnet Library Generator

## Options

### name (string)

### tags (string)

Add tags to the project (used for linting)

### directory (string)

A directory where the project is placed

### template (string)

The template to instantiate when the command is invoked. Each template might have specific options you can pass.

### language (string)

Which language should the project use?

### testTemplate (string)

Which template should be used for creating the tests project?
37 changes: 37 additions & 0 deletions docs/core/generators/nuget-reference.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# nuget-reference

## Options

### project (string)

### packageName (string)

Which package should be added?

### version (string)

The package version to add.

### framework (string)

Adds a package reference only when targeting a specific framework.

### packageDirectory (string)

The directory where to restore the packages. The default package restore location is %userprofile%\.nuget\packages on Windows and ~/.nuget/packages on macOS and Linux. For more information, see [Managing the global packages, cache, and temp folders in NuGet](https://docs.microsoft.com/en-us/nuget/consume-packages/managing-the-global-packages-and-cache-folders).

### prerelease (boolean)

Allows prerelease packages to be installed. Available since .NET Core 5 SDK

### source (string)

The URI of the NuGet package source to use during the restore operation.

### noRestore (boolean)

Adds a package reference without performing a restore preview and compatibility check.

### allowVersionMismatch (boolean)

Ignores single version principle for this package across all apps in the workspace
13 changes: 13 additions & 0 deletions docs/core/generators/project-reference.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# project-reference

## NxDotnet Application Generator

## Options

### project (string)

Host project

### reference (string)

Source project
1 change: 1 addition & 0 deletions docs/core/generators/restore.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# restore
1 change: 1 addition & 0 deletions docs/core/generators/sync.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# sync
53 changes: 53 additions & 0 deletions docs/core/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# core

## Generators

### [lib](./generators/lib.md)

nx-dotnet generator

### [app](./generators/app.md)

Generate a new C# project.

### [project-reference](./generators/project-reference.md)

Adds a reference from one project to another.

### [init](./generators/init.md)

init generator

### [sync](./generators/sync.md)

sync generator

### [nuget-reference](./generators/nuget-reference.md)

nuget-reference generator

### [restore](./generators/restore.md)

Restores NuGet packages and .NET tools used by the workspace

## Executors

### [build](./executors/build.md)

build executor

### [serve](./executors/serve.md)

serve executor

### [test](./executors/test.md)

test executor

### [publish](./executors/publish.md)

publish executor

### [format](./executors/format.md)

Formats and lints a project using the dotnet-format tool
1 change: 1 addition & 0 deletions docs/typescript/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# typescript
12 changes: 0 additions & 12 deletions docs/typescript/typescript.md

This file was deleted.

1 change: 1 addition & 0 deletions packages/core/src/generators/app/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"type": "string",
"description": "Which template should be used for creating the tests project?",
"default": "nunit",
"enum": ["nunit", "xunit", "mstest", "none"],
"x-prompt": {
"message": "Which template should be used for creating the tests project",
"type": "list",
Expand Down
10 changes: 5 additions & 5 deletions packages/typescript/executors.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"$schema": "http://json-schema.org/schema",
"executors": {
"build": {
"implementation": "./src/executors/build/executor",
"schema": "./src/executors/build/schema.json",
"description": "build executor"
}
// "build": {
// "implementation": "./src/executors/build/executor",
// "schema": "./src/executors/build/schema.json",
// "description": "build executor"
// }
}
}
10 changes: 5 additions & 5 deletions packages/typescript/generators.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"name": "typescript",
"version": "0.0.1",
"generators": {
"typescript": {
"factory": "./src/generators/typescript/generator",
"schema": "./src/generators/typescript/schema.json",
"description": "typescript generator"
}
// "typescript": {
// "factory": "./src/generators/typescript/generator",
// "schema": "./src/generators/typescript/schema.json",
// "description": "typescript generator"
// }
}
}
Loading

0 comments on commit bddc5b5

Please sign in to comment.