@nxext/stencil:application
Generate Stencil application
Usage
nx generate application ...nx g app ... # sameBy default, Nx will search for application in the default collection provisioned in nx.json.
You can specify the collection explicitly as follows:
nx g @nxext/stencil:application ...Show what will be generated without writing to disk:
nx g application ... --dry-runOptions
directory (required)
Alias(es): d
Type: string
A directory where the project is placed.
e2eTestRunner
Default: puppeteer
Type: string
Possible values: puppeteer, none
Test runner to use for end to end (e2e) tests
linter
Default: eslint
Type: string
Possible values: eslint, none
The tool to use for running lint checks.
name
Alias(es): n
Type: string
A name of the project.
skipFormat
Default: false
Type: boolean
style
Alias(es): s
Default: css
Type: string
Possible values: css, scss
The file extension to be used for style files.
tags
Alias(es): t
Type: string
Add tags to the project (used for linting)
unitTestRunner
Default: jest
Type: string
Possible values: jest, none
Test runner to use for unit tests.
@nxext/stencil:library
Generate Stencil Library
Usage
nx generate library ...nx g lib ... # sameBy default, Nx will search for library in the default collection provisioned in nx.json.
You can specify the collection explicitly as follows:
nx g @nxext/stencil:library ...Show what will be generated without writing to disk:
nx g library ... --dry-runOptions
directory (required)
Alias(es): d
Type: string
A directory where the project is placed.
buildable
Default: false
Type: boolean
component
Default: true
Type: boolean
Generate a default component.
e2eTestRunner
Default: puppeteer
Type: string
Possible values: puppeteer, none
Test runner to use for end to end (e2e) tests
importPath
Type: string
The library name used to import it, like @myorg/my-awesome-lib
linter
Default: eslint
Type: string
Possible values: eslint, none
The tool to use for running lint checks.
name
Alias(es): n
Type: string
A name of the project.
publishable
Type: boolean
Create a publishable library.
skipFormat
Default: false
Type: boolean
style
Alias(es): s
Default: css
Type: string
Possible values: css, scss
The file extension to be used for style files.
tags
Alias(es): t
Type: string
Add tags to the project (used for linting)
unitTestRunner
Default: jest
Type: string
Possible values: jest, none
Test runner to use for unit tests.
@nxext/stencil:component
Add a component to a ui library
Usage
nx generate component ...nx g c ... # sameBy default, Nx will search for component in the default collection provisioned in nx.json.
You can specify the collection explicitly as follows:
nx g @nxext/stencil:component ...Show what will be generated without writing to disk:
nx g component ... --dry-runOptions
name (required)
Type: string
project (required)
Alias(es): p
Type: string
Project where the component is generated
directory
Alias(es): d
Type: string
A directory where the project is placed.
skipFormat
Default: false
Type: boolean
@nxext/stencil:add-outputtarget
Add react/angular/vue libraries for the component library
Usage
nx generate add-outputtarget ...By default, Nx will search for add-outputtarget in the default collection provisioned in nx.json.
You can specify the collection explicitly as follows:
nx g @nxext/stencil:add-outputtarget ...Show what will be generated without writing to disk:
nx g add-outputtarget ... --dry-runOptions
outputType (required)
Type: string
Possible values: angular, react, svelte, vue
Select what kind of library you want to generate.
projectName (required)
Type: string
Project for that the library should be generated.
importPath
Type: string
The library name used to import it, like @myorg/my-awesome-lib
publishable
Default: false
Type: boolean
skipFormat
Default: false
Type: boolean
unitTestRunner
Default: jest
Type: string
Possible values: jest, none
Adds the specified unit test runner.
@nxext/stencil:make-lib-buildable
Make a library buildable
Usage
nx generate make-lib-buildable ...By default, Nx will search for make-lib-buildable in the default collection provisioned in nx.json.
You can specify the collection explicitly as follows:
nx g @nxext/stencil:make-lib-buildable ...Show what will be generated without writing to disk:
nx g make-lib-buildable ... --dry-runOptions
name (required)
Type: string
importPath
Type: string
The library name used to import it, like @myorg/my-awesome-lib
style
Alias(es): s
Default: css
Type: string
Possible values: css, scss
The file extension to be used for style files.
@nxext/stencil:storybook-configuration
storybook-configuration generator
Usage
nx generate storybook-configuration ...By default, Nx will search for storybook-configuration in the default collection provisioned in nx.json.
You can specify the collection explicitly as follows:
nx g @nxext/stencil:storybook-configuration ...Show what will be generated without writing to disk:
nx g storybook-configuration ... --dry-runOptions
name (required)
Type: string
Library or application name
configureCypress
Type: boolean
Run the cypress-configure generator
cypressDirectory
Type: string
A directory where the Cypress project will be placed. Added at root by default.
linter
Default: eslint
Type: string
Possible values: eslint, none
The tool to use for running lint checks.
standaloneConfig
Default: false
Type: boolean
Split the project configuration into <projectRoot>/project.json rather than including it inside workspace.json