NxCloudflareLibraryGeneratorSchema
Defined in: packages/nx-cloudflare/src/generators/library/schema.d.ts:5
Properties
Section titled “Properties”bundler?
Section titled “bundler?”
optionalbundler?: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.
config?
Section titled “config?”
optionalconfig?:"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
Section titled “directory”directory:
string
Defined in: packages/nx-cloudflare/src/generators/library/schema.d.ts:7
The directory of the new library.
importPath?
Section titled “importPath?”
optionalimportPath?: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.
optionaljs?:boolean
Defined in: packages/nx-cloudflare/src/generators/library/schema.d.ts:23
Generate JavaScript files rather than TypeScript files.
linter?
Section titled “linter?”
optionallinter?:Linter
Defined in: packages/nx-cloudflare/src/generators/library/schema.d.ts:13
The tool to use for running lint checks.
minimal?
Section titled “minimal?”
optionalminimal?:boolean
Defined in: packages/nx-cloudflare/src/generators/library/schema.d.ts:39
Generate a library with a minimal setup. No README.md generated.
optionalname?:string
Defined in: packages/nx-cloudflare/src/generators/library/schema.d.ts:9
The name of the library.
publishable?
Section titled “publishable?”
optionalpublishable?:boolean
Defined in: packages/nx-cloudflare/src/generators/library/schema.d.ts:27
Generate a publishable library.
rootProject?
Section titled “rootProject?”
optionalrootProject?:boolean
Defined in: packages/nx-cloudflare/src/generators/library/schema.d.ts:41
Whether the library is generated as the workspace root project.
setParserOptionsProject?
Section titled “setParserOptionsProject?”
optionalsetParserOptionsProject?:boolean
Defined in: packages/nx-cloudflare/src/generators/library/schema.d.ts:31
Whether or not to configure the ESLint parserOptions.project option.
simpleName?
Section titled “simpleName?”
optionalsimpleName?:boolean
Defined in: packages/nx-cloudflare/src/generators/library/schema.d.ts:43
Don’t include the directory in the generated file name.
skipFormat?
Section titled “skipFormat?”
optionalskipFormat?:boolean
Defined in: packages/nx-cloudflare/src/generators/library/schema.d.ts:11
Skip formatting files.
skipPackageJson?
Section titled “skipPackageJson?”
optionalskipPackageJson?:boolean
Defined in: packages/nx-cloudflare/src/generators/library/schema.d.ts:19
Do not add dependencies to package.json.
skipTsConfig?
Section titled “skipTsConfig?”
optionalskipTsConfig?:boolean
Defined in: packages/nx-cloudflare/src/generators/library/schema.d.ts:17
Do not update tsconfig.json for development experience.
skipTypeCheck?
Section titled “skipTypeCheck?”
optionalskipTypeCheck?:boolean
Defined in: packages/nx-cloudflare/src/generators/library/schema.d.ts:37
Whether to skip TypeScript type checking for SWC compiler.
strict?
Section titled “strict?”
optionalstrict?:boolean
Defined in: packages/nx-cloudflare/src/generators/library/schema.d.ts:25
Whether to enable tsconfig strict mode or not.
optionaltags?:string
Defined in: packages/nx-cloudflare/src/generators/library/schema.d.ts:15
Add tags to the library (used for linting).
unitTestRunner?
Section titled “unitTestRunner?”
optionalunitTestRunner?:"none"|"vitest"
Defined in: packages/nx-cloudflare/src/generators/library/schema.d.ts:21
Test runner to use for unit tests.
useProjectJson?
Section titled “useProjectJson?”
optionaluseProjectJson?:boolean
Defined in: packages/nx-cloudflare/src/generators/library/schema.d.ts:45
Write an explicit project.json instead of relying on target inference.