@nxext/stencil
Version:
Nx plugin for stenciljs
24 lines (23 loc) • 1.04 kB
TypeScript
import { CreateNodesV2 } from '@nx/devkit';
export interface StencilPluginOptions {
buildTargetName?: string;
serveTargetName?: string;
testTargetName?: string;
e2eTargetName?: string;
}
/**
* Infers stencil tasks for any project containing a `stencil.config.ts`.
*
* Scope-by-design: targets shell out to the local `stencil` CLI via
* `nx:run-commands` with `cwd: projectRoot`. No custom executor, no runtime
* path rewriting — the stencil config itself is the source of truth for where
* output lands (typically `<projectRoot>/www` or `<projectRoot>/dist`, plus
* the `<workspaceRoot>/dist/<projectRoot>` convention the @nxext/stencil
* generator templates write).
*
* `{workspaceRoot}/dist/{projectRoot}` is listed as the cache output. That
* covers the nxext-generated template's configured output directory. Users
* with non-standard stencil output paths should override the inferred `outputs`
* locally in their project.json.
*/
export declare const createNodesV2: CreateNodesV2<StencilPluginOptions>;