Skip to content

NxCloudflareLibraryGeneratorSchema

Defined in: packages/nx-cloudflare/src/generators/library/schema.d.ts:5

optional bundler?: Bundler

Defined in: packages/nx-cloudflare/src/generators/library/schema.d.ts:35

The bundler to use. Choosing ‘none’ means this library is not buildable.


optional config?: "workspace" | "project" | "npm-scripts"

Defined in: packages/nx-cloudflare/src/generators/library/schema.d.ts:33

Determines whether the project’s executors should be configured in workspace.json, project.json or as npm scripts.


directory: string

Defined in: packages/nx-cloudflare/src/generators/library/schema.d.ts:7

The directory of the new library.


optional importPath?: string

Defined in: packages/nx-cloudflare/src/generators/library/schema.d.ts:29

The library name used to import it, like @myorg/my-awesome-lib. Required for publishable library.


optional js?: boolean

Defined in: packages/nx-cloudflare/src/generators/library/schema.d.ts:23

Generate JavaScript files rather than TypeScript files.


optional linter?: Linter

Defined in: packages/nx-cloudflare/src/generators/library/schema.d.ts:13

The tool to use for running lint checks.


optional minimal?: boolean

Defined in: packages/nx-cloudflare/src/generators/library/schema.d.ts:39

Generate a library with a minimal setup. No README.md generated.


optional name?: string

Defined in: packages/nx-cloudflare/src/generators/library/schema.d.ts:9

The name of the library.


optional publishable?: boolean

Defined in: packages/nx-cloudflare/src/generators/library/schema.d.ts:27

Generate a publishable library.


optional rootProject?: boolean

Defined in: packages/nx-cloudflare/src/generators/library/schema.d.ts:41

Whether the library is generated as the workspace root project.


optional setParserOptionsProject?: boolean

Defined in: packages/nx-cloudflare/src/generators/library/schema.d.ts:31

Whether or not to configure the ESLint parserOptions.project option.


optional simpleName?: boolean

Defined in: packages/nx-cloudflare/src/generators/library/schema.d.ts:43

Don’t include the directory in the generated file name.


optional skipFormat?: boolean

Defined in: packages/nx-cloudflare/src/generators/library/schema.d.ts:11

Skip formatting files.


optional skipPackageJson?: boolean

Defined in: packages/nx-cloudflare/src/generators/library/schema.d.ts:19

Do not add dependencies to package.json.


optional skipTsConfig?: boolean

Defined in: packages/nx-cloudflare/src/generators/library/schema.d.ts:17

Do not update tsconfig.json for development experience.


optional skipTypeCheck?: boolean

Defined in: packages/nx-cloudflare/src/generators/library/schema.d.ts:37

Whether to skip TypeScript type checking for SWC compiler.


optional strict?: boolean

Defined in: packages/nx-cloudflare/src/generators/library/schema.d.ts:25

Whether to enable tsconfig strict mode or not.


optional tags?: string

Defined in: packages/nx-cloudflare/src/generators/library/schema.d.ts:15

Add tags to the library (used for linting).


optional unitTestRunner?: "none" | "vitest"

Defined in: packages/nx-cloudflare/src/generators/library/schema.d.ts:21

Test runner to use for unit tests.


optional useProjectJson?: boolean

Defined in: packages/nx-cloudflare/src/generators/library/schema.d.ts:45

Write an explicit project.json instead of relying on target inference.