UNPKG

@nxext/stencil

Version:

Nx plugin for stenciljs

28 lines 1.02 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getDefaultTargets = getDefaultTargets; exports.getLintTarget = getLintTarget; /** * The only target the generator writes explicitly is `lint`. `build`, `serve`, * `test`, and `e2e` are inferred by `@nxext/stencil/plugin` (Project Crystal) * from the presence of `stencil.config.ts`. See `packages/stencil/src/plugins/plugin.ts`. * * The legacy `@nxext/stencil:build|serve|test|e2e` executors remain in * `src/executors/` as a backward-compatibility fallback for workspaces that * still reference them explicitly in their project.json. */ function getDefaultTargets(_projectType, options) { return { lint: getLintTarget(options.projectRoot), }; } function getLintTarget(projectRoot) { return { executor: '@nx/eslint:eslint', outputs: ['{options.outputFile}'], options: { lintFilePatterns: `${projectRoot}/**/*.{ts,tsx}`, }, }; } //# sourceMappingURL=targets.js.map